API ReferenceEditor
public class Editor.SceneRenderingWidget : Editor.Frame
Render a scene to a native widget. This replaces NativeRenderingWidget.
Constructors
Showing 1 constructors
public SceneRenderingWidget(Editor.Widget parent = null)
Parameters
parent: Default: null
No results match this filter.
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.
protected virtual void PreFrame()
Called just before rendering.
public void UpdateGizmoInputs(bool hasMouseFocus = True)
Update common inputs for gizmo.
Parameters
hasMouseFocus: Default: True
No results match this filter.
Properties
Showing 5 properties
public Sandbox.CameraComponent Editor.SceneRenderingWidget.Camera { get; set; }
The camera to render from. We will fallback to Scene.Camera if this is null
public Ray Editor.SceneRenderingWidget.CursorRay { get; set; }
Return a ray for the current cursor position
public bool Editor.SceneRenderingWidget.EnableEngineOverlays { get; set; }
public Sandbox.Gizmo.Instance Editor.SceneRenderingWidget.GizmoInstance { get; set; }
This widget manages it's own gizmo instance.
public Sandbox.Scene Editor.SceneRenderingWidget.Scene { get; set; }
The active scene that we're rendering
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Editor |
| Type | class |
| Assembly | Sandbox.Tools |
| Doc ID | T:Editor.SceneRenderingWidget |