GltfAsset

class GltfAsset

A loaded glTF asset whose GPU resources are ready. Obtain via rememberGltfAsset.

Pass this to one or more GltfInstance composables to place copies of the model in the scene without re-importing the asset each time.

Instance lifetime

gltfio has no API to destroy a single instance — every GltfInstance created from this asset stays alive until the asset itself is destroyed (i.e. until the rememberGltfAsset call that produced it leaves composition). Reusing one asset across many instances is cheap, but avoid churning hundreds of short-lived instances from a single long-lived asset.

Properties

Link copied to clipboard

True when all GPU resources (textures, buffers) have been uploaded. GltfInstance uses this to avoid rendering incomplete models.