IUxrControllerInput.GetControllerElementsGameObjects Method

Returns a list of GameObjects that represent parts of the instantiated controller. This can be useful to highlight buttons or other elements during tutorials. Functionality to make these elements blink is also provided by the framework.

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

Syntax

C#

IEnumerable<GameObject> GetControllerElementsGameObjects(
	UxrHandSide handSide,
	UxrControllerElements controllerElements
)


Parameters

 

handSide
Type: UltimateXR.Core.UxrHandSide
Which controller to get the elements of. In Single devices where IsHandednessSupported is false, such as in gamepads, both hands will address the single device.
controllerElements
Type: UltimateXR.Devices.UxrControllerElements
Element (or elements using flags) to retrieve the GameObject(s) for

Return Value

Type: IEnumerable(GameObject)
A list of GameObject, one for each element requested

See Also

Reference

IUxrControllerInput Interface
UltimateXR.Devices Namespace
IUxrControllerInput.StartControllerElementsBlinking(UxrHandSide, UxrControllerElements, Color, Single, Single)
IUxrControllerInput.StopControllerElementsBlinking(UxrHandSide, UxrControllerElements)
IUxrControllerInput.StopAllBlinking(UxrHandSide)
IUxrControllerInput.IsAnyControllerElementBlinking(UxrHandSide, UxrControllerElements)
IUxrControllerInput.AreAllControllerElementsBlinking(UxrHandSide, UxrControllerElements)