UnityLink`
UnityLink`

UnityGameObjectQ

UnityGameObjectQ[expr]

gives True if expr is a UnityGameObject, and False otherwise.

Examples

Basic Examples  (1)

To use UnityLink, you need first to load the package:

In[1]:=
Click for copyable input

Open a Unity project:

In[2]:=
Click for copyable input

Test whether an object is a UnityGameObject:

In[3]:=
Click for copyable input
Out[3]=
In[4]:=
Click for copyable input
Out[4]=

A UnityMesh is not a UnityGameObject:

In[5]:=
Click for copyable input
Out[5]=
In[6]:=
Click for copyable input
Out[6]=