SerializeContext class
Context handed to a ComponentCodec when serializing a live Component into a ComponentSpec. Carries the destination document so a codec can register resources or mint ids.
Constructors
- SerializeContext(SceneDocument document)
-
Creates a serialize context over
document.
Properties
- document → SceneDocument
-
The document being written into.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
serializedResources
→ Map<
Object, LocalId> -
Live hand-built resources already serialized into document this pass,
keyed by instance, so a geometry or material shared by several nodes is
emitted once and referenced everywhere.
final
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