https://服务器地址/LightCore.bundle.zip。Document/Xmagic)。此时 Document/Xmagic 文件夹里面有 SDK 需要的资源。
//_filePath为美颜资源下载到本地后的父目录:xx/Ducument/XmagicNSDictionary *assetsDict = @{@"core_name" : @"LightCore.bundle",@"root_path" : _filePath};// Initself.xMagic = [[XMagic alloc] initWithRenderSize:_inputSize assetsDict:assetsDict];
//_filePath为美颜资源下载到本地后的父目录:xx/Ducument/Xmagic[[TEUIConfig shareInstance] setLightCoreBundlePath:_filePath];// Init[TEBeautyKit createXMagic:EFFECT_MODE_PRO onInitListener:^(TEBeautyKit * _Nullable beautyKit) {//...}];
[[TEUIConfig shareInstance] setResourcesBundlePath:@"xxxRes.bundle路径"]设置本地路径。文档反馈