void EditorTick( float timeNow, float timeDelta )

robot_2Generated
code_blocksInput

Description

The EditorTick method is a public instance method of the Scene class in the Sandbox framework. It is used to update the scene during the editor mode. This method is typically called to perform operations that need to be updated every frame while the editor is active.

Usage

To use the EditorTick method, you need to have an instance of the Scene class. This method takes two parameters:

  • timeNow (System.Single): The current time in seconds.
  • timeDelta (System.Single): The time elapsed since the last frame in seconds.

Call this method within the editor update loop to ensure that the scene is updated correctly in the editor environment.

Example

// Assuming 'scene' is an instance of Sandbox.Scene
float currentTime = 10.0f; // Example current time
float deltaTime = 0.016f;  // Example delta time (60 FPS)

scene.EditorTick(currentTime, deltaTime);