The Animation Graph - Getting Started
Telling a Character which AnimationGraph to use
AnimationGraphs can be used by multiple characters, or a character can have its own. Commonly, the player has his own AG, and all humanoid AI/NPC characters have one they share. Special character types, like animals, might have their own graphs. Graphs can be shared as long as the animation names are identical, even if they point to different files on the hard drive. Use the .chrparams file to set this up. The AnimationGraph a character uses can be changed at runtime with Flow Graph or code.
Please note that you do not have to provide an upper body graph. Just leave the string empty ("").
Opening the AG Editor
The AnimationGraph is located with the other View Panes in the Menu View -> Open View Pane.
Opening the Animation Graph Editor
- Before starting with any Tutorials, it is strongly suggested to get familiar with the basic concept of State Selection.
- See Basic Concept of State Selection for this.
- Basic Tutorials can be found in the Tutorial Section.
角色的 lua 脚本定义了需要加载的角色动画图。对于 Hero 角色其 lua 脚本就是 Scripts/Entities/actor 文件夹中的 player.lua 文件。AI/NPC 这些角色通常源于 BasicActor.lua 或其他基底文件，它们也可以覆盖动画图属性并加载不同的图形。