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. Reference
  2. Scripting Guide
  3. Hidden Wearable Manager Functions

SetSlotStatusFromManagerType

HiddenWearableManager.SetSlotStatusFromManagerType

Declaration public void SetSlotStatusFromManagerType(ManagerType _managerType);

Parameters

Parameter
Description

ManagerType _managerType

The type of Manager your character uses: Destructive, Non-Destructive or Selective

Description The public function to set the slot bools according to the specified manager type. Selective slots are set with the slotBool array parameter. If the manager is Destructive, all slotBool values will be set to false. If the manager is Non-Destructive, all slotBool values will be set to true.

For Selective Managers, set a slot to true to make it Non-Destructive, by using the following code. In this example, we are setting the slot index to be for the chest slot and setting it to true:

ModularCharacterManager myCharacter;

myCharacter.hiddenWearableManager.slotBool[WearableIndices.chestIndex] = true;

PreviousHidden Wearable Manager FunctionsNextAddWearableSlotToHiddenList

Last updated 2 months ago