DeleteUnityGameObject
delete the Unity game object obj.
DeleteUnityGameObject["name"]
delete the Unity game object with the specified name.
Details
- DeleteUnityGameObject destroys the game object, and releases any references to obj.
- DeleteUnityGameObject[All] destroys all the game objects in the current scene.
- DeleteUnityGameObject is Listable.
Examples
open allclose allBasic Examples (2)
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:
Text
Wolfram Research (2019), DeleteUnityGameObject, Wolfram Language function, https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityGameObject.html.
CMS
Wolfram Language. 2019. "DeleteUnityGameObject." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityGameObject.html.
APA
Wolfram Language. (2019). DeleteUnityGameObject. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityGameObject.html