DeleteUnityGUILayer
deletes the Unity GUI layer component comp.
deletes the Unity GUI layer component attached to the UnityGameObject obj.
deletes the Unity GUI layer component with the specified name.
Details
- DeleteUnityGUILayer destroys the Unity GUI layer component, and releases all references to it.
- DeleteUnityGUILayer[All] destroys all the GUI layer components in the current scene.
- DeleteUnityGUILayer is Listable.
Examples
open allclose allBasic Examples (1)Summary of the most common use cases
Load the package and open a project:

https://wolfram.com/xid/0cnbytpswhdmsl2h4id44xm7tt9llu-yj1drt

https://wolfram.com/xid/0cnbytpswhdmsl2h4id44xm7tt9llu-0ggby4
Create a Unity GUI layer component:

https://wolfram.com/xid/0cnbytpswhdmsl2h4id44xm7tt9llu-z8r6tu

Delete a Unity GUI layer component:

https://wolfram.com/xid/0cnbytpswhdmsl2h4id44xm7tt9llu-lqhihh
Possible Issues (1)Common pitfalls and unexpected behavior
A UnityGUILayer cannot be accessed after deletion:

https://wolfram.com/xid/0cnbytpswhdmsl2h4id44xm7tt9llu-qfg4jm


https://wolfram.com/xid/0cnbytpswhdmsl2h4id44xm7tt9llu-ji5ikx

https://wolfram.com/xid/0cnbytpswhdmsl2h4id44xm7tt9llu-yh8es3


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