s&box docs

public class Editor.SceneRenderingWidget : Editor.Frame

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

Constructors

Showing 1 constructors

Methods

Showing 4 methods

public Sandbox.CameraComponent CreateSceneEditorCamera()

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

public Ray GetRay(Vector2 localPosition)

Given a local widget position, return a Ray

protected virtual void PreFrame()

Called just before rendering.

public void UpdateGizmoInputs(bool hasMouseFocus = True)

Update common inputs for gizmo.

Parameters

  • hasMouseFocus: Default: True

Properties

Showing 5 properties

public Sandbox.Gizmo.Instance Editor.SceneRenderingWidget.GizmoInstance { get; set; }

This widget manages it's own gizmo instance.

Metadata

FieldValue
NamespaceEditor
Typeclass
AssemblySandbox.Tools
Doc IDT:Editor.SceneRenderingWidget

On this page