PointerBehaviorControls.TogglePointerEnabled<T>(InputSourceType) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Toggles a pointer's "enabled" behavior. If a pointer's PointerBehavior is Default or AlwaysOn, set it to AlwaysOff. Otherwise, set the pointer's behavior to Default. Will set this state for all matching pointers.
C++
public:
generic <typename T>
where T : class, Microsoft::MixedReality::Toolkit::Input::IMixedRealityPointer void TogglePointerEnabled(Microsoft::MixedReality::Toolkit::Input::InputSourceType inputType);
public void TogglePointerEnabled<T> (Microsoft.MixedReality.Toolkit.Input.InputSourceType inputType) where T : class, Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer;
member this.TogglePointerEnabled : Microsoft.MixedReality.Toolkit.Input.InputSourceType -> unit (requires 'T : null and 'T :> Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer)
Public Sub TogglePointerEnabled(Of T As {Class, IMixedRealityPointer}) (inputType As InputSourceType)
- T
Type of pointer to set
- inputType
- InputSourceType
Input type of pointer to set
Продукт | Версии |
---|---|
MRTK2 Unity 2018 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0 |
MRTK2 Unity 2019 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
MRTK2 Unity 2020 | 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |