DeleteUnityImage
deletes the Unity image component comp.
deletes the Unity image component attached to the UnityGameObject obj.
deletes the Unity image component with the specified name.
Details
- DeleteUnityImage destroys the Unity image component, and releases all references to it.
- DeleteUnityImage[All] destroys all the image components in the current scene.
- DeleteUnityImage 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/0g3rupit2hnjfwif7b8n2-yj1drt

https://wolfram.com/xid/0g3rupit2hnjfwif7b8n2-0ggby4
Create a Unity image component:

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

Delete a Unity image component:

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

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


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

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


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