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


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

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