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

https://wolfram.com/xid/0kwzupp3157ckra9kapdiccjj9pu3-0ggby4
Create a Unity 2D distance joint component:

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

Delete a Unity 2D distance joint component:

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

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


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

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


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