Прочетете на английски Редактиране

Споделяне чрез


PointerBehaviorControls.TogglePointerEnabled<T>(InputSourceType) Method

Definition

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);

Type Parameters

T

Type of pointer to set

Parameters

inputType
InputSourceType

Input type of pointer to set

Applies to

Продукт Версии
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