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)Summary of the most common use cases

https://wolfram.com/xid/0vt5c1zy07bwgvxzulbm3pu-buodkt

https://wolfram.com/xid/0vt5c1zy07bwgvxzulbm3pu-c28u0u
Create an empty Unity game object:

https://wolfram.com/xid/0vt5c1zy07bwgvxzulbm3pu-w1cgep

Create a Unity game object from a geometric region:

https://wolfram.com/xid/0vt5c1zy07bwgvxzulbm3pu-mzonmu

Create a Unity game object from graphics:

https://wolfram.com/xid/0vt5c1zy07bwgvxzulbm3pu-jv63h2


https://wolfram.com/xid/0vt5c1zy07bwgvxzulbm3pu-erpkat

Scope (6)Survey of the scope of standard use cases
Create an empty Unity game object:

https://wolfram.com/xid/0vt5c1zy07bwgvxzulbm3pu-8uvlyf

Create a Unity game object from a 2D region:

https://wolfram.com/xid/0vt5c1zy07bwgvxzulbm3pu-uly54i

Create a Unity game object from a 3D region:

https://wolfram.com/xid/0vt5c1zy07bwgvxzulbm3pu-k13qkl

Create a Unity game object from Graphics3D:

https://wolfram.com/xid/0vt5c1zy07bwgvxzulbm3pu-ncwjze

Create a Unity game object from a BoundaryMeshRegion:

https://wolfram.com/xid/0vt5c1zy07bwgvxzulbm3pu-3ae26i

Create a Unity game object from a MeshRegion:

https://wolfram.com/xid/0vt5c1zy07bwgvxzulbm3pu-sevnva

Wolfram Research (2019), CreateUnityGameObject, Wolfram Language function, https://reference.wolfram.com/language/UnityLink/ref/CreateUnityGameObject.html.
Text
Wolfram Research (2019), CreateUnityGameObject, Wolfram Language function, https://reference.wolfram.com/language/UnityLink/ref/CreateUnityGameObject.html.
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.
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
Wolfram Language. (2019). CreateUnityGameObject. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/UnityLink/ref/CreateUnityGameObject.html
BibTeX
@misc{reference.wolfram_2022_createunitygameobject, author="Wolfram Research", title="{CreateUnityGameObject}", year="2019", howpublished="\url{https://reference.wolfram.com/language/UnityLink/ref/CreateUnityGameObject.html}", note=[Accessed: 24-March-2025
]}
BibLaTeX
@online{reference.wolfram_2022_createunitygameobject, organization={Wolfram Research}, title={CreateUnityGameObject}, year={2019}, url={https://reference.wolfram.com/language/UnityLink/ref/CreateUnityGameObject.html}, note=[Accessed: 24-March-2025
]}