GltfParser class
Lightweight glTF 2.0 JSON parser for vrlizate. Handles meshes, materials, and node hierarchy. Does NOT handle textures (use PBRMaterial.colorMap for that).
For full glTF support (animations, skins, cameras), use a dedicated glTF package as an optional dependency.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Static Methods
-
parseGlb(
Uint8List glbData) → GltfResult - Parses a GLB binary buffer.
-
parseJson(
String jsonString, {Uint8List? binaryBuffer}) → GltfResult - Parses a glTF JSON string and returns the root node.