Horje
Gameobject.Find in unityC# Code Example
Gameobject.Find in unityC#
GameObject sphere = Gameobject.Find("Player");
// above code will search whole scene for the gameobject named "Player"
//
GameObject sphere = Gameobject.Find("/Player"); 
//above code will search the gameobject named "Player" but this gameobject cannot be a child

GameObject sphere = Gameobject.Find("/player/gun");
//above code will search the gun gameobject which must be the child of Player 
// and player must not be the child of any other.




Csharp

Related
Include multiple siblings at the Level Code Example Include multiple siblings at the Level Code Example
how to stream video from vlc in c# Code Example how to stream video from vlc in c# Code Example
il c# Code Example il c# Code Example
unity I run exe second monitor Code Example unity I run exe second monitor Code Example
microsoft flight simulator 2020 camera Code Example microsoft flight simulator 2020 camera Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9