API ReferenceEditor
SceneRenderingWidgetclass
Render a scene to a native widget. This replaces NativeRenderingWidget.
Constructors1
Showing 1 constructors
public SceneRenderingWidget(Editor.Widget parent = null)
| Parameter | Type | Description |
|---|---|---|
| parent = null | Widget | — |
No results match this filter.
Methods4
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
| Parameter | Type | Description |
|---|---|---|
| localPosition | Vector2 | — |
protected virtual void PreFrame()
Called just before rendering.
Returns:
void—public void UpdateGizmoInputs(bool hasMouseFocus = True)
Update common inputs for gizmo.
| Parameter | Type | Description |
|---|---|---|
| hasMouseFocus = True | bool | — |
Returns:
void—No results match this filter.
Properties5
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; }
Returns:
bool—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.