Scene class base

Represents a 3D scene, which is a collection of nodes that can be rendered onto the screen.

Scene manages the scene graph and handles rendering operations. It contains a root Node that serves as the entry point for all nodes in this Scene, and it provides methods for adding and removing nodes from the scene graph.

Implemented types

Constructors

Scene()

Properties

antiAliasingMode AntiAliasingMode
getter/setter pair
environment Environment
Manages the lighting for this Scene.
final
hashCode int
The hash code for this object.
no setterinherited
root Node
The root Node of the scene graph.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
surface Surface
Handles the creation and management of render targets for this Scene.
final

Methods

add(Node child) → void
Add a child node.
override
addAll(Iterable<Node> children) → void
Add a list of child nodes.
override
addMesh(Mesh mesh) → void
Add a mesh as a child node.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(Node child) → void
Remove a child node.
override
removeAll() → void
Remove all children nodes.
override
render(Camera camera, Canvas canvas, {Rect? viewport}) → void
Renders the current state of this Scene onto the given ui.Canvas using the specified Camera.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

initializeStaticResources() Future<void>
Prepares the rendering resources, such as textures and shaders, that are used to display models in this Scene.