FingerCursor.IsNearGrabbableObject 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.
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. |
Gets if the associated sphere pointer on this controller is near any grabbable objects.
protected:
virtual bool IsNearGrabbableObject();
protected virtual bool IsNearGrabbableObject ();
abstract member IsNearGrabbableObject : unit -> bool
override this.IsNearGrabbableObject : unit -> bool
Protected Overridable Function IsNearGrabbableObject () As Boolean
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 |
Gets if the associated sphere pointer on this controller is near any grabbable objects.
protected:
virtual bool IsNearGrabbableObject([Runtime::InteropServices::Out] float % dist);
protected virtual bool IsNearGrabbableObject (out float dist);
abstract member IsNearGrabbableObject : single -> bool
override this.IsNearGrabbableObject : single -> bool
Protected Overridable Function IsNearGrabbableObject (ByRef dist As Single) As Boolean
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 |