deletes the Unity toggle component comp.
deletes the Unity toggle component attached to the UnityGameObject obj.
deletes the Unity toggle component with the specified name.


DeleteUnityToggle
deletes the Unity toggle component comp.
deletes the Unity toggle component attached to the UnityGameObject obj.
deletes the Unity toggle component with the specified name.
Details and Options
- DeleteUnityToggle destroys the Unity toggle component, and releases all references to it.
- DeleteUnityToggle[All] destroys all the toggle components in the current scene.
- DeleteUnityToggle is Listable.
Examples
open all close allBasic Examples (1)
Possible Issues (1)
A UnityToggle cannot be accessed after deletion:

Related Guides
Text
Wolfram Research (2019), DeleteUnityToggle, Wolfram Language function, https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityToggle.html.
CMS
Wolfram Language. 2019. "DeleteUnityToggle." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityToggle.html.
APA
Wolfram Language. (2019). DeleteUnityToggle. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityToggle.html
BibTeX
@misc{reference.wolfram_2025_deleteunitytoggle, author="Wolfram Research", title="{DeleteUnityToggle}", year="2019", howpublished="\url{https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityToggle.html}", note=[Accessed: 16-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_deleteunitytoggle, organization={Wolfram Research}, title={DeleteUnityToggle}, year={2019}, url={https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityToggle.html}, note=[Accessed: 16-August-2025]}