OpenXRInteractionProfileMetadata

Hérite de : Object

Classe méta enregistrant les périphériques supportés dans OpenXR.

Description

Cette classe permet au noyau OpenXR et aux extensions d'enregistrer les métadonnées relatives aux périphériques d'interaction supportés tels que les contrôleurs, les trackers, les périphériques haptiques, etc. Elle est principalement utilisée par l'éditeur d'action map et pour assainir toute action map en supprimant les entrées dépendantes d'une extension le cas échéant.

Méthodes

void

register_interaction_profile(display_name: String, openxr_path: String, openxr_extension_name: String)

void

register_io_path(interaction_profile: String, display_name: String, toplevel_path: String, openxr_path: String, openxr_extension_name: String, action_type: ActionType)

void

register_profile_rename(old_name: String, new_name: String)

void

register_top_level_path(display_name: String, openxr_path: String, openxr_extension_name: String)


Descriptions des méthodes

void register_interaction_profile(display_name: String, openxr_path: String, openxr_extension_name: String) 🔗

Enregistre un profil d'interaction en utilisant sa désignation OpenXR (p. ex. /interaction_profiles/khr/simple_controller est le profil pour le profil de contrôleur simple d'OpenXR).

display_name est la description affichée à l'utilisateur. openxr_path est le chemin du profil d'interaction enregistré. openxr_extension_name limite en option ce profil à l'activation/disponibilité de l'action donnée. Si l'extension n'est pas disponible, le profil et toutes les entrées connexes utilisées dans une action map sont retirés.


void register_io_path(interaction_profile: String, display_name: String, toplevel_path: String, openxr_path: String, openxr_extension_name: String, action_type: ActionType) 🔗

Registers an input/output path for the given interaction_profile. The profile should previously have been registered using register_interaction_profile(). display_name is the description shown to the user. toplevel_path specifies the bind path this input/output can be bound to (e.g. /user/hand/left or /user/hand/right). openxr_path is the action input/output being registered (e.g. /user/hand/left/input/aim/pose). openxr_extension_name restricts this input/output to an enabled/available extension, this doesn't need to repeat the extension on the profile but relates to overlapping extension (e.g. XR_EXT_palm_pose that introduces …/input/palm_ext/pose input paths). action_type defines the type of input or output provided by OpenXR.


void register_profile_rename(old_name: String, new_name: String) 🔗

Permet de renommer les vieux chemins de profil d'interaction vers de nouveaux chemins pour maintenir la rétrocompatibilité avec les action maps plus anciennes.


void register_top_level_path(display_name: String, openxr_path: String, openxr_extension_name: String) 🔗

Registers a top level path to which profiles can be bound. For instance /user/hand/left refers to the bind point for the player's left hand. Extensions can register additional top level paths, for instance a haptic vest extension might register /user/body/vest.

display_name is the name shown to the user. openxr_path is the top level path being registered. openxr_extension_name is optional and ensures the top level path is only used if the specified extension is available/enabled.

When a top level path ends up being bound by OpenXR, an XRPositionalTracker is instantiated to manage the state of the device.