Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to find any component of gameobject itself in untiy

GetComponent<ObstacleSpawner>().enabled = false;
GetComponent<CameraScript>().enabled = false;
 
PREVIOUS NEXT
Tagged: #find #component #gameobject #untiy
ADD COMMENT
Topic
Name
5+3 =