UnityLink`
UnityLink`

DeleteUnityAudioSource

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)

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

CMS

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

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: 17-May-2024 ]}

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: 17-May-2024 ]}