on trigger start unity code example
Example 1: on trigger stay unity
private void OnTriggerStay(Collider other)
{
// Do some stuff
}
Example 2: unity event trigger click
There are two possible ways I can think of:
- Try extending EventTrigger
- Override OnPointerClick