UxrControllerInput.ButtonToControllerElement Method

Gets the controller element (UxrControllerElements) enum value given a controller button ( UxrInputButtons) enum value.

Namespace: UltimateXR.Devices
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public static UxrControllerElements ButtonToControllerElement(
	UxrInputButtons button
)

Parameters

 

button
Type: UltimateXR.Devices.UxrInputButtons
Controller button to get the element enum value for

Return Value

Type: UxrControllerElements
Controller element enum value representing the controller button, or None if it doesn’t exist

Remarks

This method doesn’t support using flag composition for [!:button], use only a single value

See Also

Reference

UxrControllerInput Class
UltimateXR.Devices Namespace