Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to detect when a gameobject has exited a trigger c#

//for 2D 
//remeber to set your collider to trigger 
//and to give the gameobject a rigidbody and collider of its own
private void OnTriggerExit2D(Collider2D collision)
    {
        
    }
 
PREVIOUS NEXT
Tagged: #detect #gameobject #exited #trigger
ADD COMMENT
Topic
Name
9+4 =