CreateUnityMaterial
CreateUnityMaterial ["name",expr]
creates a Unity material component from expr with the specified name.
Details
- CreateUnityMaterial returns a UnityMaterial 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 UnityMaterial from a color:
Set the material of a GameObject using UnityMaterial :
Capture the GameObject with the displayed UnityMaterial using UnityCameraImage:
Text
Wolfram Research (2019), CreateUnityMaterial, Wolfram Language function, https://reference.wolfram.com/language/UnityLink/ref/CreateUnityMaterial.html.
CMS
Wolfram Language. 2019. "CreateUnityMaterial." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/UnityLink/ref/CreateUnityMaterial.html.
APA
Wolfram Language. (2019). CreateUnityMaterial. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/UnityLink/ref/CreateUnityMaterial.html