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

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


FingerCursor.IsNearGrabbableObject Method

Definition

Overloads

IsNearGrabbableObject()

Gets if the associated sphere pointer on this controller is near any grabbable objects.

IsNearGrabbableObject(Single)

Gets if the associated sphere pointer on this controller is near any grabbable objects.

IsNearGrabbableObject()

Gets if the associated sphere pointer on this controller is near any grabbable objects.

C++
protected:
 virtual bool IsNearGrabbableObject();

Returns

True if associated sphere pointer is near any grabbable objects, else false.

Applies to

MRTK2 Unity 2018 2.7.0 и други версии
Продукт Версии
MRTK2 Unity 2018 2.6.0, 2.7.0
MRTK2 Unity 2019 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.6.0, 2.7.0, 2.8.0

IsNearGrabbableObject(Single)

Gets if the associated sphere pointer on this controller is near any grabbable objects.

C++
protected:
 virtual bool IsNearGrabbableObject([Runtime::InteropServices::Out] float % dist);

Parameters

dist
Single

Out parameter gets the distance to the grabbable.

Returns

True if associated sphere pointer is near any grabbable objects, else false.

Applies to

MRTK2 Unity 2018 2.5.4 и други версии
Продукт Версии
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4