UnityLink`
UnityLink`

CreateUnityCube

CreateUnityCube []

creates a Unity cube primitive.

CreateUnityCube ["name"]

creates a Unity cube primitive named "name".

CreateUnityCube ["name",p]

creates a Unity cube primitive named "name" centered at p.

CreateUnityCube ["name",p,l]

creates a Unity cube primitive named "name" centered at p with edge length l.

Details

Examples

open allclose all

Basic Examples  (2)

Load the Unity Link:

Open a Unity project:

Create the default Unity cube primitive:

Get the mesh of the cube primitive:

Scope  (5)

Create the default Unity cube primitive:

Create a Unity cube primitive with a custom name:

Create a Unity cube primitive with a custom name and center:

Create a Unity cube primitive with a custom name, center, and length:

CreateUnitySphere is Listable: