Class UnityInstance | Project Tiny | 0.31.0-preview.24
docs.unity.cn
    Show / Hide Table of Contents

    Class UnityInstance

    Inheritance
    Object
    UnityInstance
    Namespace: Unity.Tiny
    Syntax
    public class UnityInstance

    Fields

    OnTick

    Declaration
    public RunLoop.RunLoopDelegate OnTick
    Field Value
    Type Description
    RunLoop.RunLoopDelegate

    Properties

    Phase

    Declaration
    public UnityInstance.BootPhase Phase { get; }
    Property Value
    Type Description
    UnityInstance.BootPhase

    Suspended

    Declaration
    public bool Suspended { get; set; }
    Property Value
    Type Description
    Boolean

    World

    Declaration
    public World World { get; }
    Property Value
    Type Description
    World

    Methods

    BurstInit()

    Declaration
    public static void BurstInit()

    Deinitialize()

    Declaration
    public void Deinitialize()

    Initialize()

    Declaration
    public static UnityInstance Initialize()
    Returns
    Type Description
    UnityInstance

    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)

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 06 November 2020