0
Answered

Multiple Mouse triggers in one place.

Kamil 1 month ago in Game Creator updated by Marti (Lead Developer) 1 month ago 2

Ok. I make a marker to maker what objects are interactive. It is on mouse enter show ring, and hide on mouse out. 

But under this mechanic I need to put trigger what actually does an interaction, so start actions when was clicked.  

But Marker trigger blocks the possibility of click on the interaction trigger. 

It looks like only one mouse oriented trigger can be in one place. 


Unity version:
2019.3.0f3
Game Creator version:
1.1.1

Answer

Answer

Well. All the triggers should work on one collider. This worked fine. 

Answer

Well. All the triggers should work on one collider. This worked fine. 

Answered

Yup! Just to expand your answer, if you add multiple Triggers but all have a collider of the same size (overlapping each other), Unity will have trouble detecting which one is on top of which. This leads to arbitrary execution of one of them.

The solution, as you mention, is to have one single Collider and place all Triggers as components of the Collider's game object.

Cheers!