allow multiple simultaneous gltf animatiosn

This commit is contained in:
Nick Fisher committed 2023-08-09 13:59:10 +08:00
1 parent fa8c6b1ca0
commit e62bf64c04
7 files changed
+130 -141

No files matched your search

+5 -1
View File
@@ -332,13 +332,17 @@ class FilamentController {
}
void playAnimation(FilamentEntity asset, int index,
{bool loop = false, bool reverse = false, double crossfade = 0.0}) async {
{bool loop = false,
bool reverse = false,
bool replaceActive = true,
double crossfade = 0.0}) async {
await _channel.invokeMethod("playAnimation", [
_assetManager,
asset,
index,
loop ? 1 : 0,
reverse ? 1 : 0,
replaceActive,
crossfade
]);
}