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

https://wolfram.com/xid/0q218sgmn4p28l2x07roas15hztjz56-0ggby4
Create a Unity physics raycaster component:

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

Delete a Unity physics raycaster component:

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

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


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

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


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