| 123456789101112 |
- Bone name for right hand weapon - "weapon_end"
- Bone name for left hand weapon or shield - "shield_end"
- Package contains 2 helper scripts "EquipmentAttachmentHelper" and "WeaponAttachmentHelper".
- EquipmentAttachmentHelper - required for binding of modular armour piece to skeleton bones.
- Component must be added to the object with armour SkinnedMeshRenderer in scene. See example on 'SkeletonWarrior_OneHandAxeAndShield' prefab.
- EquipmentAttachmentHelper.skinnedMeshSource - is reference to the armour piece from the source asset. Will be loaded automatically if component attached to object with SkinnedMeshRenderer of armour in scene.
- EquipmentAttachmentHelper.thisSkinnedMesh - is reference to the SkinnedMeshRenderer of the armour in scene. Will be assigned automatically if component attached to object with SkinnedMeshRenderer of armour in scene.
-
- WeaponAttachmentHelper - required for easing of switching of weapon, must be added to the root of the prefab. See example on 'SkeletonWarrior_OneHandAxeAndShield' prefab.
- One thing must be noted, deletion of object that part of prefab instance in scene is not allowed in edit mode, it is means that 'WeaponAttachmentHelper' only works in play mode or in prefab edit mode.
|