IMixedRealityFocusProvider.TryOverrideFocusDetails Method

Definition

Sets the FocusDetails of the specified pointer, overriding the focus point that was currently set. This can be used to change the FocusDetails of a specific pointer even if focus is locked.

C++
public:
 bool TryOverrideFocusDetails(Microsoft::MixedReality::Toolkit::Input::IMixedRealityPointer ^ pointer, Microsoft::MixedReality::Toolkit::Physics::FocusDetails focusDetails);

Parameters

focusDetails
FocusDetails

Returns

True if the FocusDetails were set successfully. False if the pointer is not associated with the FocusProvider.

Applies to

Produit Versions
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