SceneRenderingWidgetclass

Render a scene to a native widget. This replaces NativeRenderingWidget.

objectFrameSceneRenderingWidget
Namespace
Editor
Assembly
Sandbox.Tools
Declaration
public class Editor.SceneRenderingWidget : Editor.Frame

Constructors1

Showing 1 constructors

Methods4

Showing 4 methods

public Sandbox.CameraComponent CreateSceneEditorCamera()PUBLIC

Create a hidden scene editor camera, post processing will be copied from a main camera in the scene.

Returns:CameraComponent

public Ray GetRay(Vector2 localPosition)PUBLIC

Given a local widget position, return a Ray

ParameterTypeDescription
localPositionVector2
Returns:Ray

protected virtual void PreFrame()PROTECTEDVIRTUAL

Called just before rendering.

Returns:void

public void UpdateGizmoInputs(bool hasMouseFocus = True)PUBLICPER-FRAMEINGEST

Update common inputs for gizmo.

ParameterTypeDescription
hasMouseFocus = Truebool
Returns:void

Properties5

Showing 5 properties

public Ray Editor.SceneRenderingWidget.CursorRay { get; set; }PUBLICGETSET

Return a ray for the current cursor position

Returns:Ray

public bool Editor.SceneRenderingWidget.EnableEngineOverlays { get; set; }PUBLICGETSET

Returns:bool

On this page