delete the UnityLensFlare comp.
delete the Unity lens flare component attached to the UnityGameObject obj.
delete the Unity lens flare component with the specified name.


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

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