Table of Contents

Class SceneViewElement

Namespace
Velvet
Assembly
Velvet.Docs.dll

The element behind SceneView(Camera?, string?, string?, string?, float, StyleOverrides?, Func<VisualElement, Action>?, string?, string?, string?, IReadOnlyDictionary<string, string>?, IReadOnlyDictionary<string, string>?, FiberEventBinding[]?): displays a Camera's output over its content box, from a framework-owned RenderTexture sized to that box, above the element's own background. A dedicated subclass (rather than reusing another element type) so a type change to or from any other element remounts instead of patching, and so the element is never recycled through the shared primitive pools while it owns a live RenderTexture.

public sealed class SceneViewElement : VisualElement
Inheritance
object
CallbackEventHandler
Focusable
VisualElement
SceneViewElement