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


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

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