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


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

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