CreateUnityPhysicMaterial["name",expr]
creates a Unity physic material component from expr with the specified name.


CreateUnityPhysicMaterial
CreateUnityPhysicMaterial["name",expr]
creates a Unity physic material component from expr with the specified name.
Details and Options
- CreateUnityPhysicMaterial returns a UnityPhysicMaterial object if created, and $Failed if it cannot be created.
Examples
Basic Examples (1)
To use UnityLink, you need first to load the package:
Create a UnityPhysicMaterial:
Set the physic material of a GameObject using UnityPhysicMaterial:
Find the UnityPhysicMaterial of a collider:
Text
Wolfram Research (2019), CreateUnityPhysicMaterial, Wolfram Language function, https://reference.wolfram.com/language/UnityLink/ref/CreateUnityPhysicMaterial.html.
CMS
Wolfram Language. 2019. "CreateUnityPhysicMaterial." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/UnityLink/ref/CreateUnityPhysicMaterial.html.
APA
Wolfram Language. (2019). CreateUnityPhysicMaterial. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/UnityLink/ref/CreateUnityPhysicMaterial.html
BibTeX
@misc{reference.wolfram_2025_createunityphysicmaterial, author="Wolfram Research", title="{CreateUnityPhysicMaterial}", year="2019", howpublished="\url{https://reference.wolfram.com/language/UnityLink/ref/CreateUnityPhysicMaterial.html}", note=[Accessed: 18-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_createunityphysicmaterial, organization={Wolfram Research}, title={CreateUnityPhysicMaterial}, year={2019}, url={https://reference.wolfram.com/language/UnityLink/ref/CreateUnityPhysicMaterial.html}, note=[Accessed: 18-August-2025]}