UnityLink`
UnityLink`

FindUnityGameObject

FindUnityGameObject["name"]

finds the Unity game object with the specified name.

FindUnityGameObject[patt]

finds the Unity game object with the name that matches the string pattern patt.

FindUnityGameObject[RegularExpression["regex"]]

finds the Unity game object with the name that matches the specified regular expression.

FindUnityGameObject[,n]

finds at most n Unity game objects.

Details

Examples

open all close all

Basic Examples  (3)

Load the Unity Link:

In[1]:=
Click for copyable input

Open a Unity project:

In[2]:=
Click for copyable input

Find a game object by name:

In[1]:=
Click for copyable input
Out[1]=

Get the position of the game object:

In[2]:=
Click for copyable input
Out[2]=

Find all game objects in the open scene:

In[1]:=
Click for copyable input
Out[1]//Short=

Scope  (9)

Applications  (2)