using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class onClick1 : MonoBehaviour
{
public bool mouseDown1;
// Start is called before the first frame update
void Start()
{
}
private void OnMouseOver()
{
Debug.Log("Test");
}
private void OnMouseDown()
{
}
// Update is called once per frame
void Update()
{
}
}
The object that have the script attached to is a UI Image. No idea why doesn’t it detect.