SpherePointer.IsNearObject Property
Definition
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.
Test if the pointer is near any collider that's both on a grabbable layer mask, and has a NearInteractionGrabbable. Uses SphereCastRadius + NearObjectMargin to determine if near an object within the sector angle Also returns true of any grabbable objects are within SphereCastRadius even if they aren't within the sector angle Ignores bounds handlers for the IsNearObject check.
public:
property bool IsNearObject { bool get(); };
public:
virtual property bool IsNearObject { bool get(); };
public bool IsNearObject { get; }
public virtual bool IsNearObject { get; }
member this.IsNearObject : bool
Public ReadOnly Property IsNearObject As Boolean
Public Overridable ReadOnly Property IsNearObject As Boolean
Property Value
True if the pointer is near any collider that's both on a grabbable layer mask, and has a NearInteractionGrabbable.