Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to make a destroy reference in unity

 private void OnMouseDown()
    {
        Destroy(gameObject);
    }
 
PREVIOUS NEXT
Tagged: #destroy #reference #unity
ADD COMMENT
Topic
Name
2+9 =