UnityLink`
UnityLink`

DeleteUnityLight

DeleteUnityLight[obj]

delete the Unity light component obj.

DeleteUnityLight["name"]

delete the Unity light component with the specified name.

更多信息

  • DeleteUnityLight destroys the Unity light component, and releases any references to obj.
  • DeleteUnityLight[All] destroys all the lights in the current scene.
  • DeleteUnityLight is Listable.

范例

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

基本范例  (1)

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

Open a Unity project:

Find and delete a Light component:

Delete a Light component by name:

Scope  (5)

Find and delete a Unity light component:

Delete the Unity light component by name:

Delete the Unity light component on a given game object:

Delete all lights in the current scene:

DeleteUnityLight is Listable:

Possible Issues  (1)

A UnityLight cannot be accessed after deletion:

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

文本

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

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