Makes RawGltfAssetpub so that a user could in theory preload it, but that's super ugly.
Restricts some access modifiers while we're on it
Runs cargo fmt
Uses from_slice_without_validation and not from_reader_without_validation because our reader is async only, which does not implement the general Reader trait.
Future work:
Improve preloading story (not sure how?)
Only parse relevant parts of gltf
Run blueprints_prepare_spawn only on AssetEvent::LoadedWithDependencies
Notes:
RawGltfAsset
pub
so that a user could in theory preload it, but that's super ugly.cargo fmt
from_slice_without_validation
and notfrom_reader_without_validation
because our reader isasync
only, which does not implement the generalReader
trait.Future work:
blueprints_prepare_spawn
only onAssetEvent::LoadedWithDependencies