BouncingEffect
FlexiX example, it contains:
– Sample patch for clothes 111-114
– New clothes with specific bouncing effect using resource asset bundle.
All of images are stored in ModAssetsHylas. You can change folder name in config file of FlexiX.
The ModRes is opensource, so you can see the idea. The idea is, try to reuse static image in Portrait/XXX/Body for /PortraitDynamic/XXX/Body. So it hides all dynamic parts, attach static image and make it move with the head. To make it bounces, FlexiX loads a template from asset bundle, this template is processed so it can be replaced with any other static images.
Long story short, the workflow to add new cloth is as follow:
– Set up your static image in WomanPortrait or ManPortrait
– Try to choose a matching bouncing template to the part of your static image and see the config file portraitprops.json
{
"fullImage": true,
"useHylasPackage": true,
"useStaticImage": true,
"prefabPath": "DynPrefab/312/312",
"localPosition": {
"x":-0.55825,
"y":2.85,
"z":0
},
"npcUse": false
}
fullImage: You want to use static full image or not. It overrides what u set in sprite.json file.
useHylasPackage: true — you want to load template
prefabPath: path to your bouncing template
localPosition: You can fine tune it using UnityExplorer or just change it, you will see the localPosition changes immediately.
npcUse: You want NPC uses your new cloth/old cloth or not.
useStaticImage: True if you want to replace image in template with the static image, or false if you think that your prefab is good enough.
For more convenience many examples include in the mod.
**********Lần này đổi mới đạo rõ**********
Please see README.txt for more details.
Just make it has lower priority than FlexiX