Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to remove a component from an object in unity

Destroy(GetComponent<TheComponentYouWantToDestroy>());
 
PREVIOUS NEXT
Tagged: #remove #component #object #unity
ADD COMMENT
Topic
Name
9+5 =