Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

OpenXRActionSet

Inherits: Resource < RefCounted < Object

Collection of OpenXRAction resources that make up an action set.

Description

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

Array

actions

[]

String

localized_name

""

int

priority

0

Methods

void

add_action ( OpenXRAction action )

int

get_action_count ( ) const

void

remove_action ( OpenXRAction action )


Property Descriptions

Array actions = []

  • void set_actions ( Array value )

  • Array get_actions ( )

Collection of actions for this action set.


String localized_name = ""

  • void set_localized_name ( String value )

  • String get_localized_name ( )

The localized name of this action set.


int priority = 0

  • void set_priority ( int value )