static void UpdateInputs( Sandbox.Gizmo/Instance self, SceneCamera camera, Widget canvas, bool hasMouseFocus )

book_4_sparkGenerated
code_blocksInput

Description

The UpdateInputs method is a static extension method for the Gizmo.Instance class, provided by the Editor.SceneEditorExtensions class. This method is used to update input states for a given gizmo instance within a scene editor context. It processes input from the user, such as mouse and keyboard interactions, and updates the gizmo's state accordingly.

Usage

To use the UpdateInputs method, you need to have a Gizmo.Instance object, a SceneCamera object, and a Widget object representing the canvas. Additionally, you need to provide a boolean indicating whether the mouse currently has focus on the canvas.

Call this method within your scene editor update loop to ensure that the gizmo's input states are correctly updated based on user interactions.

Example

// Example usage of UpdateInputs method

// Assume 'gizmoInstance' is a valid Gizmo.Instance object
// 'sceneCamera' is a valid SceneCamera object
// 'editorCanvas' is a valid Widget object
// 'mouseFocus' is a boolean indicating mouse focus state

Editor.SceneEditorExtensions.UpdateInputs(gizmoInstance, sceneCamera, editorCanvas, mouseFocus);