

Create a new "ModelPart" using its initialiser. You need to input a body name and an object you want to add to the body. You can input bone name of the Child Locator or find string to place object there, skin and skill required for object to be spawned, existing ModelPart to override it, delegate to run after model part instantiating, delegate for custom condition.
This can also add new skinned objects that deform with the main armature if you change bones to match main armature using a delegate. (No example yet sorry!)
CodeAfterApplying delegate gives you your object as "modelObject", ChildLocator of the body (make sure to null check it before using it), CharacterModel of the body and ActiveBodyParts component.
If you are gonna add components in this delegate please add them to the component list in the ActivePartsComponent component from the given delegate.
CustomCondition gives you CharacterModel of your body.
Example:
//Add object1 for Commando to head that requires "commandoBarrage" skill to be selected
ModelPart modelPart1 = new ModelPart("CommandoBody", object1, "Head", inputSkillDef: commandoBarrage);
//Add object2 for Commando to head that requires "commandoGrenade" skill to be selected
ModelPart modelPart2 = new ModelPart("CommandoBody", object2, "Head", inputSkillDef: commandoGrenade);
//Add object3 for Commando to head that requires "commandoBarrage" skill and "commandoAltSkin" skin to be selected. This will prevent object1 from spawning
ModelPart modelPart3 = new ModelPart("CommandoBody", electroWord, "Head", inputSkillDef: commandoBarrage, inputSkinPartOverride: object1, inputSkinDef: commandoAltSkin);
//Add object4 for Commando to head that requires "commandoGrenade" skill and "commandoAltSkin" skin to be selected. This will prevent object2 from spawning
ModelPart modelPart4 = new ModelPart("CommandoBody", fireWord, "Head", inputSkillDef: commandoGrenade, inputSkinPartOverride: object2, inputSkinDef: commandoAltSkin);
Add Child Locator with all bones to all display prefabs. Currently only Commando has one with "Head" and "Chest" bones