保存场景后,__Inspector__ 内将显示 Avatar Mapping 选项卡,其中显示 Unity 的骨骼映射:
(A) 通过这些按钮在 Mapping 和 Muscles & Settings 选项卡之间进行切换。在选项卡之间切换之前,必须对所做的更改执行 Apply 或 Revert 操作。
(B) 通过这些按钮在 Avatar 的部位之间进行切换:__Body、Head、Left Hand__ 和 Right Hand。
(C) 这些菜单提供各种 Mapping 和 Pose 工具来帮助您将骨骼结构映射到 Avatar。
(D) 通过这些按钮接受所做的更改 (Accept)、放弃更改 (Revert) 以及离开 Avatar 窗口 (Done)。在离开 Avatar 窗口之前,必须对所做的更改执行 Apply 或 Revert 操作。
Avatar Mapping(Avatar 映射)指示哪些骨骼是必需的(实线圆圈)和哪些骨骼是可选的(虚线圆圈)。Unity 可自动插入可选的骨骼移动。
您可以将骨架中的骨骼映射保存到磁盘上的 Avatar 作为人体模板(Human Template)文件(扩展名为 *.ht
)。您可以对任何角色重用此映射。例如,您希望通过源代码控制 Avatar 映射,并提交基于文本的文件;或者希望使用自己的自定义工具来解析文件。
要将 Avatar 数据保存到人体模板文件,请从 Avatar 窗口底部的 Mapping 下拉菜单中选择 Save。
Unity 将显示一个对话框,可在其中选择要保存的文件的名称和位置。
要加载先前创建的人体模板文件,请选择 Mapping > __Load__,然后选择要加载的文件。
有时,将动画限制为特定的身体部位会很有用。例如,在一个行走动画中,角色可能会挥动他们的手臂,但如果他们拿起火炬,他们应该将火炬举起来投光。您可以使用 Avatar 身体遮罩 (Avatar Body Mask) 来指定应将动画限制在角色的哪些部位。请参阅有关 Avatar 遮罩的文档以了解更多详细信息。
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.