switchEffectWithSlot method

Future<void> switchEffectWithSlot({
  1. required String slot,
  2. required String path,
  3. String? targetGameObject,
  4. int? face,
})

Load contents of a DeepAR Studio file as an effect/filter in the scene

Implementation

Future<void> switchEffectWithSlot(
    {required String slot,
    required String path,
    String? targetGameObject,
    int? face}) async {
  await platformRun(
      androidFunction: () =>
          _deepArPlatformHandler.switchEffectWithSlot(slot: slot, path: path),
      iOSFunction: () => _deepArPlatformHandler
          .switchEffectWithSlotIos(_textureId!, slot: slot, path: path));
}