GameRun

Description

Game running service.

Functions

    IsClientType()
    Queries whether the script runs on the client or not.

    IsEditStatus()
    Queries whether it runs in the edit state or not.

    IsRunningStatus()
    Queries whether it runs in the game environment or not.

    IsServerType()
    Queries whether the script runs on the server or not.

    IsStudioType()
    Queries whether the script runs in the editor or not.

Events

    Update()
    Runs the functions in Update once per frame.

    FixedUpdate()
    This function is executed at regular intervals. The difference from Update is that Update will be affected by the device performance, which causes various time intervals. On the contrary, FixUpdate is executed strictly by the setting frame rate, so the time intervals are consistent.