UnityLink`
UnityLink`

UnityStep

UnityStep[]

executes an update cycle while the Unity editor is paused.

UnityStep[n]

executes n update cycles in a row.

Details

  • Unity has an update cycle that is executed each frame. These cycles can be stepped through one at a time while the Unity editor is both in Play mode and paused.
  • UnityPause returns Null if it successfully executed the update cycle, $Failed if it did not.
  • The Unity editor can be paused before starting Play mode.

Examples

open all close all

Basic Examples  (2)

Load the UnityLink:

In[1]:=
Click for copyable input

Open a Unity project:

In[2]:=
Click for copyable input

Pause the Unity editor:

In[1]:=
Click for copyable input

Start Play mode:

In[2]:=
Click for copyable input

Step through frames manually:

In[3]:=
Click for copyable input

Stop Play mode:

In[4]:=
Click for copyable input

Properties & Relations  (1)