AnimationNodeBlendTree
继承
简要描述
描述
成员
类型 | 属性名 | 默认值 |
---|---|---|
Vector2 | graph_offset | Vector2( 0, 0 ) |
方法
返回值类型 | 方法名称 |
---|---|
void | add_node(name: String, node: AnimationNode, position: Vector2 = Vector2( 0, 0 )) |
void | connect_node(input_node: String, input_index: int, output_node: String) |
void | disconnect_node(input_node: String, input_index: int) |
AnimationNode | get_node(name: String) const |
Vector2 | get_node_position(name: String) const |
bool | has_node(name: String) const |
void | remove_node(name: String) |
void | rename_node(name: String, new_name: String) |
void | set_node_position(name: String, position: Vector2) |
常量
- **CONNECTION_OK = 0**
- **CONNECTION_ERROR_NO_INPUT = 1**
- **CONNECTION_ERROR_NO_INPUT_INDEX = 2**
- **CONNECTION_ERROR_NO_OUTPUT = 3**
- **CONNECTION_ERROR_SAME_NODE = 4**
- **CONNECTION_ERROR_CONNECTION_EXISTS = 5**
成员说明
- Vector2 graph_offset
Default | Vector2( 0, 0 ) |
---|---|
setter | set_graph_offset(value) |
getter | get_graph_offset |
方法说明
- add_node add_node(name: String, node: AnimationNode, position: Vector2 = Vector2( 0, 0 ))
- connect_node connect_node(input_node: String, input_index: int, output_node: String)
- disconnect_node disconnect_node(input_node: String, input_index: int)
- get_node get_node(name: String) const
- get_node_position get_node_position(name: String) const
- has_node has_node(name: String) const
- remove_node remove_node(name: String)
- rename_node rename_node(name: String, new_name: String)
- set_node_position set_node_position(name: String, position: Vector2)