fixes for Android transparency and add removeAsset method

This commit is contained in:
Nick Fisher
2022-07-11 19:12:49 +10:00
parent 84c27faa07
commit a8ef628316
10 changed files with 139 additions and 500 deletions

View File

@@ -17,6 +17,7 @@ abstract class FilamentController {
Future<List<String>> getTargetNames(String meshName);
Future<List<String>> getAnimationNames();
Future releaseSourceAssets();
Future removeAsset();
Future playAnimation(int index, {bool loop = false});
Future stopAnimation();
Future setCamera(String name);
@@ -122,6 +123,10 @@ class PolyvoxFilamentController extends FilamentController {
await _channel.invokeMethod("releaseSourceAssets");
}
Future removeAsset() async {
await _channel.invokeMethod("removeAsset");
}
Future zoom(double z) async {
await _channel.invokeMethod("zoom", z);
}