Class UnityInstance | Project Tiny | 0.29.0-preview.22
docs.unity3d.com
    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

    Environment

    Declaration
    public TinyEnvironment Environment { get; }
    Property Value
    Type Description
    TinyEnvironment

    Phase

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

    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
    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 © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023