UnityLink`
UnityLink`

CreateUnityMesh

CreateUnityMesh ["name",expr]

creates a Unity mesh component from expr with the specified name.

Details

Examples

open all close all

Basic Examples  (1)

To use UnityLink, you need first to load the package:

In[1]:=
Click for copyable input

Open a Unity project:

In[2]:=
Click for copyable input

Create a UnityMesh from a region:

In[3]:=
Click for copyable input
Out[3]=

Create a GameObject from the UnityMesh:

In[4]:=
Click for copyable input
Out[4]=

Convert the UnityMesh to a MeshRegion:

In[5]:=
Click for copyable input
Out[5]=

Scope  (6)