UnityLink`
UnityLink`

DeleteUnityAudioSource

DeleteUnityAudioSource[obj]

delete the Unity audio source component obj.

DeleteUnityAudioSource["name"]

delete the Unity audio source component with the specified name.

更多信息

  • DeleteUnityAudioSource destroys the Unity audio source component, and releases any references to obj.
  • DeleteUnityAudioSource[All] destroys all the audio sources in the current scene.
  • DeleteUnityAudioSource is Listable

范例

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

基本范例  (1)

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

Open a Unity project:

Find and delete an AudioSource component:

Delete an AudioSource component by name:

Scope  (4)

Find and delete a Unity audio source component:

Delete the Unity audio source component by name:

Delete the Unity audio source component on a given game object:

Delete all audio sources in the current scene:

Possible Issues  (1)

A UnityAudioSource cannot be accessed after deletion:

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

文本

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

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