CreateUnityGameObject
CreateUnityGameObject["name"]
creates an empty game object with the specified name.
CreateUnityGameObject["name",expr]
creates a Unity game object from expr with the specified name.
Details
- CreateUnityGameObject returns a UnityGameObject it created, and $Failed if it cannot be created.
- The following expressions can be used:
-
Graphics graphics (2D) Graphics3D graphics (3D) Region region MeshRegion mesh region BoundaryMeshRegion boundary mesh region UnityMesh unity mesh
Examples
open allclose allBasic Examples (2)
Scope (6)
Create an empty Unity game object:
Create a Unity game object from a 2D region:
Create a Unity game object from a 3D region:
Create a Unity game object from Graphics3D:
Create a Unity game object from a BoundaryMeshRegion:
Create a Unity game object from a MeshRegion:
Text
Wolfram Research (2019), CreateUnityGameObject, Wolfram Language function, https://reference.wolfram.com/language/UnityLink/ref/CreateUnityGameObject.html.
CMS
Wolfram Language. 2019. "CreateUnityGameObject." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/UnityLink/ref/CreateUnityGameObject.html.
APA
Wolfram Language. (2019). CreateUnityGameObject. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/UnityLink/ref/CreateUnityGameObject.html