アニメーションクリップ
参考:
アニメーションクリップの抽出 | Unity マニュアル [公式]
目次
アニメーションのインポート
参考:
外部ソースのアニメーション | Unity マニュアル [公式]
アニメーションの抽出
インポートしたアニメーションを部分的に切り出して新しいアニメーションクリップを作成する。ただし、インポートしたアニメーションのプロパティを編集した場合、元の FBX ファイルを更新してもアニメーションが再インポートされなくなる。
アニメーションクリップが含まれた FBX ファイルを model_name@action_name.fbx
のように命名しておくと、モデルのメッシュとアニメーションが別々の FBX ファイルになったものを一つのモデルのアニメーションとして統合してインポートできる。(Preserve Hierarchy を有効にしておく必要あり)
参考:
アニメーションクリップの抽出 | Unity マニュアル [公式]
Animation タブ | Unity マニュアル [公式]
FBX importing split animations with @ naming convention not working – Unity Answers
Animation タブ
プロパティー
- Import Constraints
- Import Animation
- Bake Animations
- Resample Curves
- Anim. Compression
- Off
- Keyframe Reduction
- Keyframe Reduction and Compression
- Optimal
- Animation Compression Errors
- Rotation Error
- Postition Error
- Scale Error
- Animated Cutom Properties
クリップ選択リスト
ファイルに含まれるクリップの一覧
クリップのプロパティー
- クリップの名前
- タイムライン
- Start:開始フレーム
- End:終了フレーム
- Loop Time
- Loop Pose
- Cycle Offset
- Root Transform Rotation
- Bake into Pose
- Based Upon
- Original
- Root Node Rotation
- Body Orientation
- Offset
- Root Transform Position (Y)
- Bake into Pose
- Based Upon (at Start)
- Original
- Root Node Position
- Center of Mass
- Feet
- Offset
- Root Transform Position (XZ)
- Bake into Pose
- Based Upon
- Original
- Root Node Position
- Center of Mass
- Offset
- Mirror
- Additive Referece Pose
- Pose Frame
- Curves
- Events
- Mask
- Motion
- Import Messages
参考:
アニメーションクリップのプロパティを理解する | XR-Hub
Animation タブ | Unity マニュアル [公式]
モデルのスケール
参考:
Animation の RootMotion と Scale の関係について – teratail
Change models scale factor messes up animation – Unity Answers
Can I scale an animation with a model? – Unity Answers
Scale of Model changes during animation? – Unity Forum
FBX ファイル内のアニメーションクリップを編集する
FBX ファイル内のアニメーションクリップは読み取り専用であるため、そのままでは編集できない。プロジェクトウィンドウで FBX ファイル内のアニメーションクリップを選択して、Ctrl
+ D
で複製する。
参考:
FBX に格納された AnimationClip を取り出し編集可能にする | テラシュールブログ
FBX から AnimationClip を取り出すエディタ拡張 | コガネブログ
FBX アニメーションデータを編集できるようにする | 頑張って続けます
複数の fbx ファイルからアニメーション (anim) を抽出 & 余計な AnimationEvent を削除 | サークル獏の佐藤敏 Unity とか備忘録
How to add new curves or animation events to an imported animation? – Unity Answers
スクリプトでクリップを作成する
参考:
スクリプトで AnimationClip の作成 | Buravo46’s Note
リファレンス
参考: