如何正确地将游戏对象添加到动画装备

How to add an gameobject to an animated rig properly

我已经在 blender 中模拟并装配了一个人,我能够统一播放那个动画。 现在我正在尝试向人类添加一些对象。例如一顶帽子。但是我想不通,帽子是如何随着动画移动的。

我知道了,那个头像已经拿到动画数据了。帽子没有那些数据,所以帽子不动。

我该怎么做?另一种情况是抓住某事。手和那个物体应该随着手的移动而移动。

我想稍后通过脚本添加这些对象。

非常感谢:)

在 unity 场景中你的角色装备中,

Find the Bone that you want your target GameObject to follow, and add the target GameObject as a child of the bone GameObject in the Scene heirarchy, and position it with whatever position and rotation offset you need (In this case, on the head bone, maybe a little tipped)

在这种情况下,您将找到装备的头部骨骼,并将帽子添加为头部骨骼的子游戏对象。您播放的任何修改骨骼位置的动画也应该移动您的目标游戏对象。