UNITY LINK

Add a Component to a Game Object

Load the UnityLink:

In[18]:=
Click for copyable input

Open an empty project:

In[19]:=
Click for copyable input

To an Existing Game Object...

Components can be added to an existing game object by passing the UnityGameObject reference to the components create function.

In[8]:=
Click for copyable input
Out[8]=
Click for copyable input
In[9]:=
Click for copyable input
Out[9]=
Click for copyable input

To a New Game Object...

Create a new game object and add a component to it by passing the name of the new game object to the components create function.

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