Description
The SceneEditorTick
method is a static method within the Editor.EditorScene
class. It is called once per frame to ensure that the game camera remains synchronized with the main camera in the editor scene. This synchronization is crucial for maintaining a consistent view between the game and the editor, allowing developers to accurately preview and edit scenes.
Usage
To use the SceneEditorTick
method, ensure that it is called within the frame update loop of your editor extension or tool. This method does not require any parameters and does not return a value. It is automatically attributed with Editor.EditorEvent/FrameAttribute
, indicating its role in frame-based updates.
Example
// Example usage of SceneEditorTick
// This method is typically called automatically by the editor framework
Editor.EditorScene.SceneEditorTick();