UnityLink`
UnityLink`

DeleteUnityPhysicsMaterial2D

DeleteUnityPhysicsMaterial2D [comp]

deletes the Unity physics material 2D component comp.

DeleteUnityPhysicsMaterial2D [obj]

deletes the Unity physics material 2D component attached to the UnityGameObject obj.

DeleteUnityPhysicsMaterial2D ["name"]

deletes the Unity physics material 2D component with the specified name.

Details

Examples

open allclose all

Basic Examples  (1)

Load the package and open a project:

Delete a Unity physics material 2D component:

Possible Issues  (1)

A UnityPhysicsMaterial2D cannot be accessed after deletion:

Wolfram Research (2019), DeleteUnityPhysicsMaterial2D, Wolfram Language function, https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityPhysicsMaterial2D.html.

Text

Wolfram Research (2019), DeleteUnityPhysicsMaterial2D, Wolfram Language function, https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityPhysicsMaterial2D.html.

CMS

Wolfram Language. 2019. "DeleteUnityPhysicsMaterial2D." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityPhysicsMaterial2D.html.

APA

Wolfram Language. (2019). DeleteUnityPhysicsMaterial2D. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityPhysicsMaterial2D.html

BibTeX

@misc{reference.wolfram_2022_deleteunityphysicsmaterial2d, author="Wolfram Research", title="{DeleteUnityPhysicsMaterial2D}", year="2019", howpublished="\url{https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityPhysicsMaterial2D.html}", note=[Accessed: 16-June-2026 ]}

BibLaTeX

@online{reference.wolfram_2022_deleteunityphysicsmaterial2d, organization={Wolfram Research}, title={DeleteUnityPhysicsMaterial2D}, year={2019}, url={https://reference.wolfram.com/language/UnityLink/ref/DeleteUnityPhysicsMaterial2D.html}, note=[Accessed: 16-June-2026 ]}