This document describes how to put purchased or self-created materials into a demo project and use them.
The code related to the initialization of the resource package for the iOS demo is in BeautyViewModel.m
, and the method to initialize the sticker material list is setupData.
Note:The bundle where the sticker is located is only related to where the sticker is displayed but has nothing to do with the sticker type.
The code related to the initialization of the resource package for the Android demo is in XmagicResParser.java, and the method to initialize the sticker material list is parseMotion.
If your sticker material folder is named video_mymotion, you need to change:
final String MotionResStr = "video_lianliancaomei:lovely strawberry," +
......
to
final String MotionResStr = "video_mymotion:my stickers," +
"video_lianliancaomei:lovely strawberry," +
......
Note:The material package can be copied to other xxxMotionRes directories. This only affects where the sticker is displayed in the demo but has nothing to do with the sticker type.
Was this page helpful?