Nim-XD ebf6fdbbab first commit 1 2 недель назад
..
Animations 2ce1d098b6 initial commit 4 недель назад
Materials ebf6fdbbab first commit 1 2 недель назад
Models 2ce1d098b6 initial commit 4 недель назад
Scenes 2ce1d098b6 initial commit 4 недель назад
Scripts 2ce1d098b6 initial commit 4 недель назад
Textures 2ce1d098b6 initial commit 4 недель назад
Animations.meta 2ce1d098b6 initial commit 4 недель назад
Materials.meta 2ce1d098b6 initial commit 4 недель назад
Models.meta 2ce1d098b6 initial commit 4 недель назад
Prefabs.meta 2ce1d098b6 initial commit 4 недель назад
Readme.txt 2ce1d098b6 initial commit 4 недель назад
Readme.txt.meta 2ce1d098b6 initial commit 4 недель назад
Scenes.meta 2ce1d098b6 initial commit 4 недель назад
Scripts.meta 2ce1d098b6 initial commit 4 недель назад
Textures.meta 2ce1d098b6 initial commit 4 недель назад

Readme.txt

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.