UnityLink`
UnityLink`

DeleteUnityGameObject

DeleteUnityGameObject[obj]

delete the Unity game object obj.

DeleteUnityGameObject["name"]

delete the Unity game object with the specified name.

更多信息

  • 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.

范例

打开所有单元关闭所有单元

基本范例  (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 (2017),DeleteUnityGameObject,Wolfram 语言函数,https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityGameObject.html.

文本

Wolfram Research (2017),DeleteUnityGameObject,Wolfram 语言函数,https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityGameObject.html.

CMS

Wolfram 语言. 2017. "DeleteUnityGameObject." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityGameObject.html.

APA

Wolfram 语言. (2017). DeleteUnityGameObject. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityGameObject.html 年

BibTeX

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

BibLaTeX

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