AssetModelSource class
Loads a .glb model from the asset bundle.
- Inheritance
-
- Object
- SceneModelSource
- AssetModelSource
Constructors
- AssetModelSource(String assetPath)
-
const
Properties
- assetPath → String
-
The bundle path of the
.glbasset.final - cacheKey → String
-
Identifies the model. A rebuild whose source has the same key keeps the
loaded model; a different key discards it and loads the new source.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createNode(
) → Future< Node> -
Loads and imports the model, producing the shared template node tree.
inherited
-
load(
) → Future< Uint8List> -
Loads the model's
.glbbytes.override -
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