The ZegoEffects SDK provides the beauty makeup feature, which can put virtual makeups on your facial features, such as eyeliner, eyelashes, blusher, lipstick, and colored eye contacts, and also provides various makeup looks.
Prerequisites
Before you begin to use the beauty makeup feature, make sure:
Integrate the ZegoEffects SDK into your project. For details, see Integrate the SDK.
You can't superimpose the styles of each feature. Once you apply a new style, the previous one (if any) will be overridden.
You can superimpose the effects of eyeliner, eyeshadow, eyelashes, blusher, lipstick, and colored eye contacts, but you can't superimpose those with the makeup looks.
You can choose to use any beauty makeup feature as needed by specifying the corresponding beauty makeup resource.
In general, take the following steps to use a beauty makeup feature:
Enable the feature.
Specify the parameters of the beauty makeup feature as needed. If not specified, the SDK uses the default settings.
Eyeliner
Use the eyeliner
To apply the eyeliner, call the setEyeliner method with the path of the eyeliner resource passed to the path parameter.
The value range of the intensity property of ZegoEffectsEyelinerParam is [0, 100]. As this value gets larger, the effect gets stronger.
// Enable the eyeliner feature.
// 1. Enable the feature, and pass the path of the eyeliner resource.
[self.effects setEyeliner:@"/xxx/xxx/eyelinerdir/eyelinerdir_natural.bundle"];
// 2. Set the intensity, value range [0, 100].
ZegoEffectsEyelinerParam* param = [[ZegoEffectsEyelinerParam alloc] init];
param.intensity = 100;
[self.effects setEyelinerParam:param];
// Enable the eyeliner feature.
// 1. Enable the feature, and pass the path of the eyeliner resource.
[self.effects setEyeliner:@"/xxx/xxx/eyelinerdir/eyelinerdir_natural.bundle"];
// 2. Set the intensity, value range [0, 100].
ZegoEffectsEyelinerParam* param = [[ZegoEffectsEyelinerParam alloc] init];
param.intensity = 100;
[self.effects setEyelinerParam:param];
// Enable the eyeliner feature.
// 1. Enable the feature, and pass the path of the eyeliner resource.
mEffects.setEyeliner("/xxx/xxx/eyelinerdir/eyelinerdir_natural.bundle");
// 2. Set the intensity, value range [0, 100].
ZegoEffectsEyelinerParam param = new ZegoEffectsEyelinerParam();
param.intensity = 100;
mEffects.setEyelinerParam(param);
// Enable the eyeliner feature.
// 1. Enable the feature, and pass the path of the eyeliner resource.
mEffects.setEyeliner("/xxx/xxx/eyelinerdir/eyelinerdir_natural.bundle");
// 2. Set the intensity, value range [0, 100].
ZegoEffectsEyelinerParam param = new ZegoEffectsEyelinerParam();
param.intensity = 100;
mEffects.setEyelinerParam(param);
// Enable the eyeliner feature.
// 1. Enable the feature, and pass the path of the eyeliner resource.
ZegoEffectsPlugin.instance.setEyeliner('eyelinerdir_natural');
// 2. Set the intensity, value range [0, 100].
ZegoEffectsEyelinerParam param = ZegoEffectsEyelinerParam();
param.intensity = 100;
ZegoEffectsPlugin.instance.setEyelinerParam(param);
// Enable the eyeliner feature.
// 1. Enable the feature, and pass the path of the eyeliner resource.
ZegoEffectsPlugin.instance.setEyeliner('eyelinerdir_natural');
// 2. Set the intensity, value range [0, 100].
ZegoEffectsEyelinerParam param = ZegoEffectsEyelinerParam();
param.intensity = 100;
ZegoEffectsPlugin.instance.setEyelinerParam(param);
// Enable the eyeliner feature.
// 1. Enable the feature, and pass the path of the eyeliner resource.
mEffects.setEyeliner("/xxx/xxx/eyelinerdir/eyelinerdir_natural.bundle");
// 2. Set the intensity, value range [0, 100].
mEffects.setEyelinerParam({ intensity: 100 });
// Enable the eyeliner feature.
// 1. Enable the feature, and pass the path of the eyeliner resource.
mEffects.setEyeliner("/xxx/xxx/eyelinerdir/eyelinerdir_natural.bundle");
// 2. Set the intensity, value range [0, 100].
mEffects.setEyelinerParam({ intensity: 100 });
Remove the eyeliner
To remove the eyeliner, pass an empty string to the setEyeliner interface.
// Remove the eyeliner.
[self.effects setEyeliner:nil];
// Remove the eyeliner.
[self.effects setEyeliner:nil];
// Remove the eyeliner.
mEffects.setEyeliner(null);
// Remove the eyeliner.
mEffects.setEyeliner(null);
// Remove the eyeliner.
ZegoEffectsPlugin.instance.setEyeliner('');
// Remove the eyeliner.
ZegoEffectsPlugin.instance.setEyeliner('');
// Remove the eyeliner.
mEffects.setEyeliner(null);
// Remove the eyeliner.
mEffects.setEyeliner(null);
Eyeshadow
Use the eyeshadow
To apply the eyeshadow, call the setEyeshadow method with the path of the eyeshadow resource passed to the path parameter.
The value range of the intensity property of ZegoEffectsEyeshadowParam is [0, 100]. As this value gets larger, the effect gets stronger.
// Enable the eyeshadow feature.
// 1. Enable the feature, and pass the path of the eyeshadow resource.
[self.effects setEyeshadow:@"/xxx/xxx/eyeshadowdir/eyeshadowdir_mist_pink.bundle"];
// 2. Set the intensity, value range [0, 100].
ZegoEffectsEyeshadowParam* param = [[ZegoEffectsEyeshadowParam alloc] init];
param.intensity = 100;
[self.effects setEyeshadowParam:param];
// Enable the eyeshadow feature.
// 1. Enable the feature, and pass the path of the eyeshadow resource.
[self.effects setEyeshadow:@"/xxx/xxx/eyeshadowdir/eyeshadowdir_mist_pink.bundle"];
// 2. Set the intensity, value range [0, 100].
ZegoEffectsEyeshadowParam* param = [[ZegoEffectsEyeshadowParam alloc] init];
param.intensity = 100;
[self.effects setEyeshadowParam:param];
// Enable the eyeshadow feature.
// 1. Enable the feature, and pass the path of the eyeshadow resource.
mEffects.setEyeshadow("/xxx/xxx/eyeshadowdir/eyeshadowdir_mist_pink.bundle");
// 2. Set the intensity, value range [0, 100].
ZegoEffectsEyeshadowParam param = new ZegoEffectsEyeshadowParam();
param.intensity = 100;
mEffects.setEyeshadowParam(param);
// Enable the eyeshadow feature.
// 1. Enable the feature, and pass the path of the eyeshadow resource.
mEffects.setEyeshadow("/xxx/xxx/eyeshadowdir/eyeshadowdir_mist_pink.bundle");
// 2. Set the intensity, value range [0, 100].
ZegoEffectsEyeshadowParam param = new ZegoEffectsEyeshadowParam();
param.intensity = 100;
mEffects.setEyeshadowParam(param);
// Enable the eyeshadow feature.
// 1. Enable the feature, and pass the path of the eyeshadow resource.
ZegoEffectsPlugin.instance.setEyeshadow('eyeshadowdir_mist_pink');
// 2. Set the intensity, value range [0, 100].
ZegoEffectsEyeshadowParam param = ZegoEffectsEyeshadowParam();
param.intensity = 100;
ZegoEffectsPlugin.instance.setEyeshadowParam(param);
// Enable the eyeshadow feature.
// 1. Enable the feature, and pass the path of the eyeshadow resource.
ZegoEffectsPlugin.instance.setEyeshadow('eyeshadowdir_mist_pink');
// 2. Set the intensity, value range [0, 100].
ZegoEffectsEyeshadowParam param = ZegoEffectsEyeshadowParam();
param.intensity = 100;
ZegoEffectsPlugin.instance.setEyeshadowParam(param);
// Enable the eyeshadow feature.
// 1. Enable the feature, and pass the path of the eyeshadow resource.
mEffects.setEyeshadow("/xxx/xxx/eyeshadowdir/eyeshadowdir_mist_pink.bundle");
// 2. Set the intensity, value range [0, 100].
mEffects.setEyeshadowParam({ intensity: 100 });
// Enable the eyeshadow feature.
// 1. Enable the feature, and pass the path of the eyeshadow resource.
mEffects.setEyeshadow("/xxx/xxx/eyeshadowdir/eyeshadowdir_mist_pink.bundle");
// 2. Set the intensity, value range [0, 100].
mEffects.setEyeshadowParam({ intensity: 100 });
Remove the eyeshadow
To remove the eyeshadow, pass an empty string to the setEyeshadow interface.
// Remove the eyeshadow.
[self.effects setEyeshadow:nil];
// Remove the eyeshadow.
[self.effects setEyeshadow:nil];
// Remove the eyeshadow.
mEffects.setEyeshadow(null);
// Remove the eyeshadow.
mEffects.setEyeshadow(null);
// Remove the eyeshadow.
ZegoEffectsPlugin.instance.setEyeshadow('');
// Remove the eyeshadow.
ZegoEffectsPlugin.instance.setEyeshadow('');
// Remove the eyeshadow.
mEffects.setEyeshadow(null);
// Remove the eyeshadow.
mEffects.setEyeshadow(null);
Eyelashes
Use the eyelashes
To apply the eyelashes, call the setEyelashes method with the path of the eyelashes resource passed to the path parameter.
The value range of the intensity property of ZegoEffectsEyelashesParam is [0, 100]. As this value gets larger, the effect gets stronger.
// Enable the eyelashes feature.
// 1. Enable the feature, and pass the path of the eyelashes resource.
[self.effects setEyelashes:@"/xxx/xxx/eyelashesdir/eyelashesdir_bushy.bundle"];
// 2. Set the intensity, value range [0, 100].
ZegoEffectsEyelashesParam* param = [[ZegoEffectsEyelashesParam alloc] init];
param.intensity = 100;
[self.effects setEyelashesParam:param];
// Enable the eyelashes feature.
// 1. Enable the feature, and pass the path of the eyelashes resource.
[self.effects setEyelashes:@"/xxx/xxx/eyelashesdir/eyelashesdir_bushy.bundle"];
// 2. Set the intensity, value range [0, 100].
ZegoEffectsEyelashesParam* param = [[ZegoEffectsEyelashesParam alloc] init];
param.intensity = 100;
[self.effects setEyelashesParam:param];
// Enable the eyelashes feature.
// 1. Enable the feature, and pass the path of the eyelashes resource.
mEffects.setEyelashes("/xxx/xxx/eyelashesdir/eyelashesdir_bushy.bundle");
// 2. Set the intensity, value range [0, 100].
ZegoEffectsEyelashesParam param = new ZegoEffectsEyelashesParam();
param.intensity = 100;
mEffects.setEyelashesParam(param);
// Enable the eyelashes feature.
// 1. Enable the feature, and pass the path of the eyelashes resource.
mEffects.setEyelashes("/xxx/xxx/eyelashesdir/eyelashesdir_bushy.bundle");
// 2. Set the intensity, value range [0, 100].
ZegoEffectsEyelashesParam param = new ZegoEffectsEyelashesParam();
param.intensity = 100;
mEffects.setEyelashesParam(param);
// Enable the eyelashes feature.
// 1. Enable the feature, and pass the path of the eyelashes resource.
ZegoEffectsPlugin.instance.setEyelashes('eyelashesdir_bushy');
// 2. Set the intensity, value range [0, 100].
ZegoEffectsEyelashesParam param = ZegoEffectsEyelashesParam();
param.intensity = 100;
ZegoEffectsPlugin.instance.setEyelashesParam(param);
// Enable the eyelashes feature.
// 1. Enable the feature, and pass the path of the eyelashes resource.
ZegoEffectsPlugin.instance.setEyelashes('eyelashesdir_bushy');
// 2. Set the intensity, value range [0, 100].
ZegoEffectsEyelashesParam param = ZegoEffectsEyelashesParam();
param.intensity = 100;
ZegoEffectsPlugin.instance.setEyelashesParam(param);
// Enable the eyelashes feature.
// 1. Enable the feature, and pass the path of the eyelashes resource.
mEffects.setEyelashes("/xxx/xxx/eyelashesdir/eyelashesdir_bushy.bundle");
// 2. Set the intensity, value range [0, 100].
mEffects.setEyelashesParam({ intensity: 100 });
// Enable the eyelashes feature.
// 1. Enable the feature, and pass the path of the eyelashes resource.
mEffects.setEyelashes("/xxx/xxx/eyelashesdir/eyelashesdir_bushy.bundle");
// 2. Set the intensity, value range [0, 100].
mEffects.setEyelashesParam({ intensity: 100 });
Remove the eyelashes
To remove the eyelashes, pass an empty string to the setEyelashes interface.
// Remove the eyelashes.
[self.effects setEyelashes:nil];
// Remove the eyelashes.
[self.effects setEyelashes:nil];
// Remove the eyelashes.
mEffects.setEyelashes(null);
// Remove the eyelashes.
mEffects.setEyelashes(null);
Blusher
Use the blusher
To apply the blusher, call the setBlusher method with the path of the blusher resource passed to the path parameter.
The value range of the intensity property of ZegoEffectsBlusherParam is [0, 100]. As this value gets larger, the effect gets stronger.
// Enable the blusher feature.
// 1. Enable the feature, and pass the path of the blusher resource.
[self.effects setBlusher:@"/xxx/xxx/blusherdir/blusherdir_apricot_pink.bundle"];
// 2. Set the intensity, value range [0, 100].
ZegoEffectsBlusherParam* param = [[ZegoEffectsBlusherParam alloc] init];
param.intensity = 100;
[self.effects setBlusherParam:param];
// Enable the blusher feature.
// 1. Enable the feature, and pass the path of the blusher resource.
[self.effects setBlusher:@"/xxx/xxx/blusherdir/blusherdir_apricot_pink.bundle"];
// 2. Set the intensity, value range [0, 100].
ZegoEffectsBlusherParam* param = [[ZegoEffectsBlusherParam alloc] init];
param.intensity = 100;
[self.effects setBlusherParam:param];
// Enable the blusher feature.
// 1. Enable the feature, and pass the path of the blusher resource.
mEffects.setBlusher("/xxx/xxx/blusherdir/blusherdir_apricot_pink.bundle");
// 2. Set the intensity, value range [0, 100].
ZegoEffectsBlusherParam param = new ZegoEffectsBlusherParam();
param.intensity = 100;
mEffects.setBlusherParam(param);
// Enable the blusher feature.
// 1. Enable the feature, and pass the path of the blusher resource.
mEffects.setBlusher("/xxx/xxx/blusherdir/blusherdir_apricot_pink.bundle");
// 2. Set the intensity, value range [0, 100].
ZegoEffectsBlusherParam param = new ZegoEffectsBlusherParam();
param.intensity = 100;
mEffects.setBlusherParam(param);
Remove the blusher
To remove the blusher, call the setBlusher method with the path parameter set to nil.
// Remove the blusher.
[self.effects setBlusher:nil];
// Remove the blusher.
[self.effects setBlusher:nil];
// Remove the blusher.
mEffects.setBlusher(null);
// Remove the blusher.
mEffects.setBlusher(null);
// Remove the blusher.
ZegoEffectsPlugin.instance.setBlusher('');
// Remove the blusher.
ZegoEffectsPlugin.instance.setBlusher('');
// Remove the blusher.
mEffects.setBlusher(null);
// Remove the blusher.
mEffects.setBlusher(null);
Lipstick
Use the lipstick
To apply the lipstick, call the setLipStick method with the path of the lipstick resource passed to the path parameter.
The value range of the intensity property of ZegoEffectsLipstickParam is [0, 100]. As this value gets larger, the effect gets stronger.
// Enable the lipstick feature.
// 1. Enable the feature, and pass the path of the lipstick resource.
[self.effects setLipStick:@"/xxx/xxx/lipstickdir/lipstickdir_bean_paste_pink.bundle"];
// 2. Set the intensity, value range [0, 100].
ZegoEffectsLipstickParam* param = [[ZegoEffectsLipstickParam alloc] init];
param.intensity = 100;
[self.effects setLipstickParam:param];
// Enable the lipstick feature.
// 1. Enable the feature, and pass the path of the lipstick resource.
[self.effects setLipStick:@"/xxx/xxx/lipstickdir/lipstickdir_bean_paste_pink.bundle"];
// 2. Set the intensity, value range [0, 100].
ZegoEffectsLipstickParam* param = [[ZegoEffectsLipstickParam alloc] init];
param.intensity = 100;
[self.effects setLipstickParam:param];
// Enable the lipstick feature.
// 1. Enable the feature, and pass the path of the lipstick resource.
mEffects.setLipStick("/xxx/xxx/lipstickdir/lipstickdir_bean_paste_pink.bundle");
// 2. Set the intensity, value range [0, 100].
ZegoEffectsLipstickParam param = new ZegoEffectsLipstickParam();
param.intensity = 100;
mEffects.setLipstickParam(param);
// Enable the lipstick feature.
// 1. Enable the feature, and pass the path of the lipstick resource.
mEffects.setLipStick("/xxx/xxx/lipstickdir/lipstickdir_bean_paste_pink.bundle");
// 2. Set the intensity, value range [0, 100].
ZegoEffectsLipstickParam param = new ZegoEffectsLipstickParam();
param.intensity = 100;
mEffects.setLipstickParam(param);
// Enable the lipstick feature.
// 1. Enable the feature, and pass the path of the lipstick resource.
ZegoEffectsPlugin.instance.setLipStick('lipstickdir_bean_paste_pink');
// 2. Set the intensity, value range [0, 100].
ZegoEffectsLipstickParam param = ZegoEffectsLipstickParam();
param.intensity = 100;
ZegoEffectsPlugin.instance.setLipstickParam(param);
// Enable the lipstick feature.
// 1. Enable the feature, and pass the path of the lipstick resource.
ZegoEffectsPlugin.instance.setLipStick('lipstickdir_bean_paste_pink');
// 2. Set the intensity, value range [0, 100].
ZegoEffectsLipstickParam param = ZegoEffectsLipstickParam();
param.intensity = 100;
ZegoEffectsPlugin.instance.setLipstickParam(param);
// Enable the lipstick feature.
// 1. Enable the feature, and pass the path of the lipstick resource.
mEffects.setLipStick("/xxx/xxx/lipstickdir/lipstickdir_bean_paste_pink.bundle");
// 2. Set the intensity, value range [0, 100].
mEffects.setLipstickParam({ intensity: 100 });
// Enable the lipstick feature.
// 1. Enable the feature, and pass the path of the lipstick resource.
mEffects.setLipStick("/xxx/xxx/lipstickdir/lipstickdir_bean_paste_pink.bundle");
// 2. Set the intensity, value range [0, 100].
mEffects.setLipstickParam({ intensity: 100 });
Remove the lipstick
To remove the lipstick, pass an empty string to the setLipStick interface.
// Remove the lipstick.
[self.effects setLipStick:nil];
// Remove the lipstick.
[self.effects setLipStick:nil];
// Remove the lipstick.
mEffects.setLipStick(null);
// Remove the lipstick.
mEffects.setLipStick(null);
// Remove the lipstick.
ZegoEffectsPlugin.instance.setLipStick('');
// Remove the lipstick.
ZegoEffectsPlugin.instance.setLipStick('');
// Remove the lipstick.
mEffects.setLipStick(null);
// Remove the lipstick.
mEffects.setLipStick(null);
Colored eye contacts
Use the colored eye contacts
To apply the colored eye contacts, call the setColoredcontacts method with the path of the colored eye contacts resource passed to the path parameter.
The value range of the intensity property of ZegoEffectsColoredcontactsParam is [0, 100]. As this value gets larger, the effect gets stronger.
// Enable the colored contacts feature.
// 1. Enable the feature, and pass the path of the colored eye contacts resource.
[self.effects setColoredcontacts:@"/xxx/xxx/coloredcontactsdir/coloredcontactsdir_chocolate_brown.bundle"];
// 2. Set the intensity, value range [0, 100].
ZegoEffectsColoredcontactsParam* param = [[ZegoEffectsColoredcontactsParam alloc] init];
param.intensity = 100;
[self.effects setColoredcontactsParam:param];
// Enable the colored contacts feature.
// 1. Enable the feature, and pass the path of the colored eye contacts resource.
[self.effects setColoredcontacts:@"/xxx/xxx/coloredcontactsdir/coloredcontactsdir_chocolate_brown.bundle"];
// 2. Set the intensity, value range [0, 100].
ZegoEffectsColoredcontactsParam* param = [[ZegoEffectsColoredcontactsParam alloc] init];
param.intensity = 100;
[self.effects setColoredcontactsParam:param];
// Enable the colored contacts feature.
// 1. Enable the feature, and pass the path of the colored eye contacts resource.
mEffects.setColoredcontacts("/xxx/xxx/coloredcontactsdir/coloredcontactsdir_chocolate_brown.bundle");
// 2. Set the intensity, value range [0, 100].
ZegoEffectsColoredcontactsParam param = new ZegoEffectsColoredcontactsParam();
param.intensity = 100;
mEffects.setColoredcontactsParam(param);
// Enable the colored contacts feature.
// 1. Enable the feature, and pass the path of the colored eye contacts resource.
mEffects.setColoredcontacts("/xxx/xxx/coloredcontactsdir/coloredcontactsdir_chocolate_brown.bundle");
// 2. Set the intensity, value range [0, 100].
ZegoEffectsColoredcontactsParam param = new ZegoEffectsColoredcontactsParam();
param.intensity = 100;
mEffects.setColoredcontactsParam(param);
// Enable the colored contacts feature.
// 1. Enable the feature, and pass the path of the colored eye contacts resource.
ZegoEffectsPlugin.instance.setColoredcontacts('coloredcontactsdir_chocolate_brown');
// 2. Set the intensity, value range [0, 100].
ZegoEffectsColoredcontactsParam param = ZegoEffectsColoredcontactsParam();
param.intensity = 100;
ZegoEffectsPlugin.instance.setColoredcontactsParam(param);
// Enable the colored contacts feature.
// 1. Enable the feature, and pass the path of the colored eye contacts resource.
ZegoEffectsPlugin.instance.setColoredcontacts('coloredcontactsdir_chocolate_brown');
// 2. Set the intensity, value range [0, 100].
ZegoEffectsColoredcontactsParam param = ZegoEffectsColoredcontactsParam();
param.intensity = 100;
ZegoEffectsPlugin.instance.setColoredcontactsParam(param);
// Enable the colored contacts feature.
// 1. Enable the feature, and pass the path of the colored eye contacts resource.
mEffects.setColoredcontacts("/xxx/xxx/coloredcontactsdir/coloredcontactsdir_chocolate_brown.bundle");
// 2. Set the intensity, value range [0, 100].
mEffects.setColoredcontactsParam({ intensity: 100 });
// Enable the colored contacts feature.
// 1. Enable the feature, and pass the path of the colored eye contacts resource.
mEffects.setColoredcontacts("/xxx/xxx/coloredcontactsdir/coloredcontactsdir_chocolate_brown.bundle");
// 2. Set the intensity, value range [0, 100].
mEffects.setColoredcontactsParam({ intensity: 100 });
Remove the colored eye contacts
To remove the colored eye contacts, pass an empty string to the setColoredcontacts interface.
// Remove the colored eye contacts.
[self.effects setColoredcontacts:nil];
// Remove the colored eye contacts.
[self.effects setColoredcontacts:nil];
// Remove the colored eye contacts.
mEffects.setColoredcontacts(null);
// Remove the colored eye contacts.
mEffects.setColoredcontacts(null);
// Remove the colored eye contacts.
ZegoEffectsPlugin.instance.setColoredcontacts('');
// Remove the colored eye contacts.
ZegoEffectsPlugin.instance.setColoredcontacts('');
// Remove the colored eye contacts.
mEffects.setColoredcontacts(null);
// Remove the colored eye contacts.
mEffects.setColoredcontacts(null);
Makeup looks
Warning
For versions prior to 2.0.0, you can't superimpose the makeup looks and pendants. Once you apply a makeup look, the pendants will be overridden.
Use the makeup looks
To apply the makeup looks, call the setMakeup method with the path of the makeup look resource passed to the path parameter.
The value range of the intensity property of ZegoEffectsMakeupParam is [0, 100]. As this value gets larger, the effect gets stronger.
// Enable the makeup look feature.
// 1. Enable the feature, and pass the path of the corresponding makeup look resource.
[self.effects setMakeup:@"/xxx/xxx/makeupdir/makeupdir_cutie_and_cool.bundle"];
// 2. Set the intensity, value range [0, 100].
ZegoEffectsMakeupParam* param = [[ZegoEffectsMakeupParam alloc] init];
param.intensity = 100;
[self.effects setMakeupParam:param];
// Enable the makeup look feature.
// 1. Enable the feature, and pass the path of the corresponding makeup look resource.
[self.effects setMakeup:@"/xxx/xxx/makeupdir/makeupdir_cutie_and_cool.bundle"];
// 2. Set the intensity, value range [0, 100].
ZegoEffectsMakeupParam* param = [[ZegoEffectsMakeupParam alloc] init];
param.intensity = 100;
[self.effects setMakeupParam:param];
// Enable the makeup look feature.
// 1. Enable the feature, and pass the path of the corresponding makeup look resource.
mEffects.setMakeup("/xxx/xxx/makeupdir/makeupdir_cutie_and_cool.bundle");
// 2. Set the intensity, value range [0, 100].
ZegoEffectsMakeupParam param = new ZegoEffectsMakeupParam();
param.intensity = 100;
mEffects.setMakeupParam(param);
// Enable the makeup look feature.
// 1. Enable the feature, and pass the path of the corresponding makeup look resource.
mEffects.setMakeup("/xxx/xxx/makeupdir/makeupdir_cutie_and_cool.bundle");
// 2. Set the intensity, value range [0, 100].
ZegoEffectsMakeupParam param = new ZegoEffectsMakeupParam();
param.intensity = 100;
mEffects.setMakeupParam(param);
// Enable the makeup look feature.
// 1. Enable the feature, and pass the path of the corresponding makeup look resource.
ZegoEffectsPlugin.instance.setMakeup('makeupdir_cutie_and_cool');
// 2. Set the intensity, value range [0, 100].
ZegoEffectsMakeupParam param = ZegoEffectsMakeupParam();
param.intensity = 100;
ZegoEffectsPlugin.instance.setMakeupParam(param);
// Enable the makeup look feature.
// 1. Enable the feature, and pass the path of the corresponding makeup look resource.
ZegoEffectsPlugin.instance.setMakeup('makeupdir_cutie_and_cool');
// 2. Set the intensity, value range [0, 100].
ZegoEffectsMakeupParam param = ZegoEffectsMakeupParam();
param.intensity = 100;
ZegoEffectsPlugin.instance.setMakeupParam(param);
// Enable the makeup look feature.
// 1. Enable the feature, and pass the path of the corresponding makeup look resource.
mEffects.setMakeup("/xxx/xxx/makeupdir/makeupdir_cutie_and_cool.bundle");
// 2. Set the intensity, value range [0, 100].
mEffects.setMakeupParam({ intensity: 100 });
// Enable the makeup look feature.
// 1. Enable the feature, and pass the path of the corresponding makeup look resource.
mEffects.setMakeup("/xxx/xxx/makeupdir/makeupdir_cutie_and_cool.bundle");
// 2. Set the intensity, value range [0, 100].
mEffects.setMakeupParam({ intensity: 100 });
Remove the makeup looks
To remove the colored eye contacts, pass an empty string to the setMakeup interface.
// Remove the makeup looks.
[self.effects setMakeup:nil];
// Remove the makeup looks.
[self.effects setMakeup:nil];
// Remove the makeup looks.
mEffects.setMakeup(null);
// Remove the makeup looks.
mEffects.setMakeup(null);
// Remove the makeup looks.
ZegoEffectsPlugin.instance.setMakeup('');
// Remove the makeup looks.
ZegoEffectsPlugin.instance.setMakeup('');
// Remove the makeup looks.
mEffects.setMakeup(null);
// Remove the makeup looks.
mEffects.setMakeup(null);