状态机 StateMachinePlayback

CS
// 
var state_machine = @AnimationTree.Get("parameters/StateMachine/playback").As<AnimationNodeStateMachinePlayback>();
// 
state_machine.Travel("state_name");
点击展开查看更多

一次性动画 OneShot

CS
@AnimationTree.Set("parameters/OneShot/request", (int)AnimationNodeOneShot.OneShotRequest.Fire);
点击展开查看更多

过渡 Transition

CS
@AnimationTree.Set("parameters/Transition/transition_request", "state_name");
点击展开查看更多

变速 TimeScale

CS
@AnimationTree.Set("parameters/TimeScale/scale", scale_ratio);
点击展开查看更多

版权声明

作者: Chaim

链接: https://chaim.eu.org/posts/animationtree/

许可证: CC BY-NC-SA 4.0

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Please attribute the source, use non-commercially, and maintain the same license.

开始搜索

输入关键词搜索文章内容

↑↓
ESC
⌘K 快捷键