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,
{int numInstances = 1,
bool keepData = false,
int priority = 4,
int layer = 0,
bool loadResourcesAsync = false,
String relativeResourcePath});
{
String? relativeResourcePath,
int numInstances = 1,
bool keepData = false,
int priority = 4,
int layer = 0,
bool loadResourcesAsync = false,
});
///
/// Destroys [asset] and all underlying resources