The CDA Collection Picker is used to select a Collections value (currently, for either the apparels or hairstyles). It is initialized in the graphs “Initialize – CDA Apparel Pickers” and “Initialize – CDA Hairstyle Pickers” and automatically generates its dropdown entries from all Customization Data Assets for the given Anatomy.
Each Customization Data Asset can be assigned to zero or more Collections. If it is assigned to none it can be selected with the “Any Collection” value in-game, thus “Any Collection” does not have to be assigned manually in the Data Asset.
Selecting a specific collection in-game will only show the Data Assets that also are assigned to that collection by calling SetCollection
of either the WBP_CDA_ApparelPicker or WBP_CDA_HairstylePicker and re-initializing the respective picker.
Because we filter the Data Assets by Anatomy and Collection the same time, it is possible that some of the values defined in E_CDA_Collection
may be hidden in the WBP_CDA_CollectionPicker
e.g., if Anatomy is “Human Female Adult” but no single Data Asset with that Anatomy is assigned to e.g., “Soldiers”, then “Soldiers” is not displayed in the collection picker.
Loading a profile from the Profile Manager will reset the hairstyle and apparel Collection Picker back to “Any Collection”, because the loaded profile might have a CDA assigned that is not in the currently selected collection. If not resetting to “Any Collection” the CDA would not be applied by the respective CDA Picker, because of the rule “A CDA cannot be applied if it is not visible in the CDA Picker”. (See the note in CDA Apparel Picker)
The HiddenCollections
variable allows you to intentionally hide collections from the Collection Picker. This is useful if you did not buy one of our packs and want to get rid of the E_CDA_Collection
value in the picker.