GameModeclass

Registers a widget with the input system to use SDL and manages inputs and focus as it relates to the editor's game widget.

object→GameMode
Namespace
Editor
Assembly
Sandbox.Tools
Declaration
public static abstract sealed class Editor.GameMode

Methods2

Showing 2 methods

public static void ClearPlayMode()PUBLICSTATIC

Releases the active play widget and its borrowed input and render targets.

Returns:void—

public static void SetPlayWidget(Editor.SceneRenderingWidget widget)PUBLICSTATIC

Given a widget, register it for SDL input, and tell the engine this is the swapchain we have

ParameterTypeDescription
widgetSceneRenderingWidget—
Returns:void—

On this page