So, in Unity3d, when I use this following script below, the console does not say the message given by the Debug.Log. Here is the script:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
public class Gui : MonoBehaviour
{
void OnMouseDown()
{
Debug.Log("It Works");
}
}
However, when I click on the object that includes this script, nothing shows up on the console. What am I doing wrong? Any help would be appreciated.