UNITY LINK

Find Game Objects

You can find game objects in the current scene through different methods.

Click for copyable input

By Name

Find a single game object with a specific name:

In[3]:=
Click for copyable input

Find all game objects with names that match a given string expression:

In[4]:=
Click for copyable input

Find three game objects with names that match a given expression:

In[5]:=
Click for copyable input

From a Component

Find a component in the current scene:

In[30]:=
Click for copyable input

Get the game object that the component is attached to:

In[31]:=
Click for copyable input

From the Transform Hierarchy

Show the transform hierarchy graph for the current scene:

In[14]:=
Click for copyable input

Find one of the wall game objects:

In[18]:=
Click for copyable input

Get the parent of the wall game object:

In[19]:=
Click for copyable input

Get all of the children of the wall parent:

In[20]:=
Click for copyable input

In the Open Scenes

Find which scenes are currently open:

In[29]:=
Click for copyable input

Find all the game objects in the open scenes:

In[28]:=
Click for copyable input