Class UnityInstance
Inheritance
UnityInstance
Syntax
public class UnityInstance
Fields
OnTick
Declaration
public RunLoop.RunLoopDelegate OnTick
Field Value
Type |
Description |
RunLoop.RunLoopDelegate |
|
Properties
Environment
Declaration
public TinyEnvironment Environment { get; }
Property Value
Phase
Declaration
public UnityInstance.BootPhase Phase { get; }
Property Value
World
Declaration
public World World { get; }
Property Value
Type |
Description |
Unity.Entities.World |
|
Methods
BurstInit()
Declaration
public static void BurstInit()
Deinitialize()
Declaration
public void Deinitialize()
Initialize()
Declaration
public static UnityInstance Initialize()
Returns
Update(Double)
Updates UnityInstance state. In Running Phase will set time and update world/worlds
Declaration
public bool Update(double timestampInSeconds)
Parameters
Type |
Name |
Description |
Double |
timestampInSeconds |
Timestamp in seconds as a double since some platform-dependent point in time, that will be used to calculate delta and elapsed time.
It is expected to be a timestamp from monotonic high-frequency timer, but on some platforms it is received from a wallclock timer (emscripten, html5)
|
Returns
Type |
Description |
Boolean |
True if Update should be called again, or False if not (fatal error / quit command received)
|