Modular Character System
  • Overview
  • Setup
  • Demo Scenes
  • System Overview
    • Modular Character
    • Wearable
    • Wearable Set
      • Character Preset
      • Wearable Set Data
    • Wearable Database
    • Character Style
    • Cosmetic Styles
      • Skin Style
      • Eye Style
    • Character Morphs
  • Troubleshooting
  • Asset Updates
  • Reference
    • Scripting Guide
      • Modular Character Manager Functions
        • Wearables
          • EquipWearable
          • RemoveWearable
        • Wearable Sets
          • EquipWearableSet
          • EquipWearablePreset
          • RevertSetToDefaults
          • GenerateRandomSetFromDatabase
        • Materials
          • SetWearableMaterial
          • SetWearableMaterialArray
          • SetEyeStyle
          • SetSkinStyle
          • SetBodyMaterial
          • SetFaceMaterial
          • SetEyeMaterial
        • Character Morphs
          • SetBlendshapeOnAllMeshes
          • UpdateSetMorphValues
          • ApplySetMorphValuesToCurrentSet
          • ApplyCurrentMorphValuesToNew...
        • Face Merging
          • MergeFace
          • UnmergeFace
          • DestroyMergedFace
        • Saving and Loading
          • SaveCharacterPrefab
          • SaveCharacterPreset
          • SaveDataAsJSON
          • LoadCharacterFromJSON
      • Character Style Functions
        • GetAllWearablesOfCategory
        • GetAllNonDefaultWearablesOfCategory
        • GetWearableByName
        • CheckIfDefaultItem
      • Hidden Wearable Manager Functions
        • SetSlotStatusFromManagerType
        • AddWearableSlotToHiddenList
        • CheckHiddenListForWearable
  • Changelog
  • EXTERNAL LINKS
    • Stellar Game Assets Website
    • Join me on Discord
Powered by GitBook
On this page
  1. System Overview
  2. Wearable Set

Character Preset

A pre-configured set of Wearables, Materials and Morphs.

PreviousWearable SetNextWearable Set Data

Last updated 2 months ago

A Character Preset is an asset you can create to hold a .

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 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.

Wearable Set
Character Style