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


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

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