add fixes for setting camera

This commit is contained in:
Nick Fisher
2022-02-07 13:19:20 +08:00
parent acec3fc2e1
commit b28097b054
7 changed files with 228 additions and 183 deletions

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);
}
}