deletes the Unity physics 2D raycaster component comp.
deletes the Unity physics 2D raycaster component attached to the UnityGameObject obj.
deletes the Unity physics 2D raycaster component with the specified name.


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

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