UnityLink`
UnityLink`

DeleteUnityGameObject

DeleteUnityGameObject[obj]

delete the Unity game object obj.

DeleteUnityGameObject["name"]

delete the Unity game object with the specified name.

Details

Examples

open allclose all

Basic Examples  (2)

Load the Unity Link:

Open a Unity project:

Delete a Unity game object by name:

Find and delete a Unity game object:

Scope  (4)

Delete a Unity game object by name:

Find and delete a Unity game object:

DeleteUnityGameObject is Listable:

DeleteUnityGameObject[All] destroys all the Unity game objects in the current scene:

Possible Issues  (1)

A UnityGameObject cannot be accessed after deletion: