delete the UnityScript comp.
delete the Unity script component attached to the UnityGameObject obj.
delete the Unity script component with the specified name.


DeleteUnityScript
delete the UnityScript comp.
delete the Unity script component attached to the UnityGameObject obj.
delete the Unity script component with the specified name.
Details and Options
- DeleteUnityScript destroys the Unity script component, and releases any references to it.
- DeleteUnityScript[All] destroys all the script components in the current scene.
- DeleteUnityScript is Listable.
Examples
open all close allBasic Examples (2)
Possible Issues (1)
A UnityScript cannot be accessed after deletion:
See Also
Text
Wolfram Research (2019), DeleteUnityScript, Wolfram Language function, https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityScript.html.
CMS
Wolfram Language. 2019. "DeleteUnityScript." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityScript.html.
APA
Wolfram Language. (2019). DeleteUnityScript. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityScript.html
BibTeX
@misc{reference.wolfram_2025_deleteunityscript, author="Wolfram Research", title="{DeleteUnityScript}", year="2019", howpublished="\url{https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityScript.html}", note=[Accessed: 18-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_deleteunityscript, organization={Wolfram Research}, title={DeleteUnityScript}, year={2019}, url={https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityScript.html}, note=[Accessed: 18-August-2025]}