I only need the collider to check if other objects entered its region or not, i dont want it to block other gameobjects OnMouseDown() function
any help please
I only need the collider to check if other objects entered its region or not, i dont want it to block other gameobjects OnMouseDown() function
any help please
What about setting it to Ignore Raycast layer?
Hi, you can do this…
[SerializeField] private LayerMask inputLayerMask;
private void Start()
{
Camera.main.eventMask = inputLayerMask;
}
Then in the game object’s inspector set what layer mask, or masks, you want to receive mouse input.