Click or drag to resize

UnityXRConfigAttachInputModule Method

Attaches the most appropriate InputModule for the given hardware type onto a parent GameObject in the hierarchy

Namespace:  ImmerseSDK.Config
Assembly:  ImmerseSDK.NoDll (in ImmerseSDK.NoDll.dll) Version: 3.9.0.0 (3.9.0.0)
Syntax
C#
public virtual InputModule AttachInputModule(
	ControllerLocal controller,
	VRHardwareType hardwareType
)

Parameters

controller
Type: ImmerseSDK.ControllersControllerLocal
The controller to attach the InputModule component to
hardwareType
Type: ImmerseSDKVRHardwareType
The currently active VR Hardware type (e.g. Rift, Vive, etc)

Return Value

Type: InputModule
The InputModule that was created, or null if no suitable InputModule was found

Implements

IInputModuleFactoryAttachInputModule(ControllerLocal, VRHardwareType)
See Also