Character Preset
A pre-configured set of Wearables, Materials and Morphs.
A Character Preset is an asset you can create to hold a Wearable Set.
Creating a Character Preset with the Modular Character Manager
The demo scenes capture the current Wearable Set configuration from a character and save it as a Character Preset. You can do so using the SaveCharacterPreset function in the Modular Character Manager. This will save a copy of the current Wearable Set as a Character Preset to the 'Saved Presets' folder, but it only works in the Editor.
Calling the function will create a new Character Preset generated directly from the current character configuration.
This code will check the save location for the Modular Character Manager (or use the default location if there isn't one specified) to see if a folder with the Character Style name exists. If no such folder exists, it will create one. It will then copy the current set and save it as a Character Preset in that location. Finally, it will ping the newly created object.
Scriptable Objects assets can not be created at Runtime. You will need to run the code in Editor Play Mode, or create a custom editor button to run it.
Last updated