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


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

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