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:

Wolfram Research (2019), DeleteUnityGameObject, Wolfram Language function, https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityGameObject.html.

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

BibTeX

@misc{reference.wolfram_2022_deleteunitygameobject, author="Wolfram Research", title="{DeleteUnityGameObject}", year="2019", howpublished="\url{https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityGameObject.html}", note=[Accessed: 30-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2022_deleteunitygameobject, organization={Wolfram Research}, title={DeleteUnityGameObject}, year={2019}, url={https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityGameObject.html}, note=[Accessed: 30-December-2024 ]}