allow relativeResourcePath to be null for loadGltfFromBuffer

This commit is contained in:
Nick Fisher
2025-04-17 13:36:02 +08:00
parent b4f3d865b4
commit 454ec14b40

View File

@@ -149,12 +149,14 @@ abstract class ThermionViewer {
/// ///
/// ///
Future<ThermionAsset> loadGltfFromBuffer(Uint8List data, Future<ThermionAsset> loadGltfFromBuffer(Uint8List data,
{int numInstances = 1, {
bool keepData = false, String? relativeResourcePath,
int priority = 4, int numInstances = 1,
int layer = 0, bool keepData = false,
bool loadResourcesAsync = false, int priority = 4,
String relativeResourcePath}); int layer = 0,
bool loadResourcesAsync = false,
});
/// ///
/// Destroys [asset] and all underlying resources /// Destroys [asset] and all underlying resources