OpenXRActionSet
继承: Resource
< RefCounted
< Object
Collection of OpenXRAction
resources that make up an action set.
描述
Action sets in OpenXR define a collection of actions that can be activated in unison. This allows games to easily change between different states that require different inputs or need to reinterpret inputs. For instance we could have an action set that is active when a menu is open, an action set that is active when the player is freely walking around and an action set that is active when the player is controlling a vehicle.
Action sets can contain the same action with the same name, if such action sets are active at the same time the action set with the highest priority defines which binding is active.
属性
方法
void | add_action ( action: OpenXRAction ) |
int | get_action_count ( ) const1 |
void | remove_action ( action: OpenXRAction ) |
属性说明
Array
actions = []
Collection of actions for this action set.
String
localized_name = ""
The localized name of this action set.
int
priority = 0
The priority for this action set.
方法说明
void
add_action ( action: OpenXRAction
)
Add an action to this action set.
int
get_action_count ( ) const1
Retrieve the number of actions in our action set.
void
remove_action ( action: OpenXRAction
)
Remove an action from this action set.
本方法通常需要用户覆盖才能生效。
本方法无副作用,不会修改该实例的任何成员变量。
本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。
本方法用于构造某个类型。
调用本方法无需实例,可直接使用类名进行调用。
本方法描述的是使用本类型作为左操作数的有效运算符。
这个值是由下列位标志构成位掩码的整数。
无返回值。