WOLFRAM

DeleteUnityAudioSource[obj]

delete the Unity audio source component obj.

DeleteUnityAudioSource["name"]

delete the Unity audio source component with the specified name.

Details

Examples

open allclose all

Basic Examples  (1)Summary of the most common use cases

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

Open a Unity project:

Find and delete an AudioSource component:

Out[3]=3

Delete an AudioSource component by name:

Scope  (4)Survey of the scope of standard use cases

Find and delete a Unity audio source component:

Out[1]=1

Delete the Unity audio source component by name:

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

Out[1]=1

Delete all audio sources in the current scene:

Possible Issues  (1)Common pitfalls and unexpected behavior

A UnityAudioSource cannot be accessed after deletion:

Out[1]=1
Out[3]=3
Wolfram Research (2019), DeleteUnityAudioSource, Wolfram Language function, https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityAudioSource.html.
Wolfram Research (2019), DeleteUnityAudioSource, Wolfram Language function, https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityAudioSource.html.

Text

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

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

CMS

Wolfram Language. 2019. "DeleteUnityAudioSource." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityAudioSource.html.

Wolfram Language. 2019. "DeleteUnityAudioSource." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityAudioSource.html.

APA

Wolfram Language. (2019). DeleteUnityAudioSource. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityAudioSource.html

Wolfram Language. (2019). DeleteUnityAudioSource. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityAudioSource.html

BibTeX

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

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

BibLaTeX

@online{reference.wolfram_2022_deleteunityaudiosource, organization={Wolfram Research}, title={DeleteUnityAudioSource}, year={2019}, url={https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityAudioSource.html}, note=[Accessed: 05-April-2025 ]}

@online{reference.wolfram_2022_deleteunityaudiosource, organization={Wolfram Research}, title={DeleteUnityAudioSource}, year={2019}, url={https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityAudioSource.html}, note=[Accessed: 05-April-2025 ]}