跳到主要内容

AnimationNodeBlendTree

继承

AnimationRootNode

简要描述

描述

成员

类型属性名默认值
Vector2graph_offsetVector2( 0, 0 )

方法

返回值类型方法名称
voidadd_node(name: String, node: AnimationNode, position: Vector2 = Vector2( 0, 0 ))
voidconnect_node(input_node: String, input_index: int, output_node: String)
voiddisconnect_node(input_node: String, input_index: int)
AnimationNodeget_node(name: String) const
Vector2get_node_position(name: String) const
boolhas_node(name: String) const
voidremove_node(name: String)
voidrename_node(name: String, new_name: String)
voidset_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
DefaultVector2( 0, 0 )
setterset_graph_offset(value)
getterget_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)