Table of Contents

Class OpenXRActionSet

Collection of OpenXRAction resources that make up an action set.

Inheritance
OpenXRActionSet

Remarks

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.

Properties

actions

Collection of actions for this action set.

var actions : Array = []

Property Value

Array

Remarks

localized_name

The localized name of this action set.

var localized_name : String = ""

Property Value

String

Remarks

  • void set_localized_name(String value)
  • String get_localized_name

priority

The priority for this action set.

var priority : int = 0

Property Value

int

Remarks

  • void set_priority(int value)
  • int get_priority

Methods

add_action(OpenXRAction)

Add an action to this action set.

void add_action(OpenXRAction action)

Parameters

action OpenXRAction

get_action_count

Qualifiers: const

Retrieve the number of actions in our action set.

int get_action_count

remove_action(OpenXRAction)

Remove an action from this action set.

void remove_action(OpenXRAction action)

Parameters

action OpenXRAction