add getters from animation names and play animation method
This commit is contained in:
@@ -15,6 +15,7 @@ abstract class FilamentController {
|
||||
Future rotateEnd();
|
||||
Future applyWeights(List<double> weights);
|
||||
Future<List<String>> getTargetNames(String meshName);
|
||||
Future<List<String>> getAnimationNames();
|
||||
Future releaseSourceAssets();
|
||||
Future playAnimation(int index);
|
||||
Future setCamera(String name);
|
||||
@@ -102,6 +103,12 @@ class PolyvoxFilamentController extends FilamentController {
|
||||
return result;
|
||||
}
|
||||
|
||||
Future<List<String>> getAnimationNames() async {
|
||||
var result = (await _channel.invokeMethod("getAnimationNames"))
|
||||
.cast<String>();
|
||||
return result;
|
||||
}
|
||||
|
||||
Future animate(List<double> weights, int numWeights, double frameRate) async {
|
||||
await _channel
|
||||
.invokeMethod("animateWeights", [weights, numWeights, frameRate]);
|
||||
|
||||
Reference in New Issue
Block a user