RenderView class Rendering
One view of a Scene: a camera plus where and how its image is drawn.
A scene can be rendered as a list of views (split-screen, picture-in- picture, and more). Each view binds a camera to a target (an offscreen RenderTexture, or null for the screen), a viewport sub-rectangle of the target, a layerMask selecting which nodes it sees, an order controlling how overlapping views composite, and an optional antiAliasingMode override.
Constructors
- RenderView({required Camera camera, RenderTexture? target, Rect? viewport, int layerMask = kRenderLayerAll, int order = 0, AntiAliasingMode? antiAliasingMode, double? renderScale, FilterQuality? filterQuality})
-
Creates a render view for
camera.
Properties
- antiAliasingMode ↔ AntiAliasingMode?
-
The anti-aliasing strategy for this view, or null (the default) to
inherit the scene's
Scene.antiAliasingMode.getter/setter pair - camera ↔ Camera
-
The camera whose view and projection this view renders.
getter/setter pair
- filterQuality ↔ FilterQuality?
-
The sampling quality this view's image is composited onto the canvas
with, or null (the default) to inherit the scene's
Scene.filterQuality(which documents how the values map to concrete sampling modes per backend).getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- layerMask ↔ int
-
A bitmask selecting which
Nodelayers this view renders. A node is drawn only whennode.layers & layerMask != 0. Defaults to kRenderLayerAll (every layer).getter/setter pair - order ↔ int
-
The compositing order among views sharing a target: a lower order
renders first, a higher one draws on top.
getter/setter pair
- renderScale ↔ double?
-
Scales the resolution this view renders at relative to the display's
native resolution, or null (the default) to inherit the scene's
Scene.renderScale.getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- target ↔ RenderTexture?
-
The offscreen texture this view renders into, or null to render to
the screen.
getter/setter pair
- viewport ↔ Rect?
-
The sub-rectangle of the render target this view draws into, in
normalized coordinates (
0..1, with a top-left origin).nullfills the whole target.getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited