add fixes for setting camera

This commit is contained in:
Nick Fisher committed 2022-02-07 13:19:20 +08:00
1 parent 05a6f2fe81
commit 61e12975b4
7 files changed
+228 -183

No files matched your search

+5
View File
@@ -17,6 +17,7 @@ abstract class FilamentController {
Future<List<String>> getTargetNames(String meshName);
Future releaseSourceAssets();
Future playAnimation(int index);
Future setCamera(String name);
///
/// Set the weights of all morph targets in the mesh to the specified weights at successive frames (where [framerate] is the number of times per second the weights should be updated).
@@ -121,4 +122,8 @@ class PolyvoxFilamentController extends FilamentController {
Future playAnimation(int index) async {
await _channel.invokeMethod("playAnimation", index);
}
Future setCamera(String name) async {
await _channel.invokeMethod("setCamera", name);
}
}