UNITY LINK

Create a Game Object

Game objects in Unity can be created and modified from the Wolfram Language. Put the components that you want to add inside CreateUnityGameObject and specify the name of the game object:

  • You must have UnityLink package loaded and a project opened in the Unity editor. See Open a Unity Project for detailed information.

From a Plot

Create a game object from a plot. The plot is automatically converted to a mesh in Unity and added to the UnityMeshFilter component:

  • Due to different coordinate systems and shaders in the Wolfram Language and Unity, converted mesh objects have a different orientation and look. See Export a Geometric Region for detailed information.
  • From 2D Geometry

    Create a game object from a 2D region:

    From 3D Geometry

    Create a game object from a 3D region:

    From Graphics

    Create a game object from Graphics or Graphics3D:

    From Text

    Create a game object from a String:

    From a File

    Create a game object from a file: