Edit

Bagikan melalui


SpherePointer.IsNearObject Property

Definition

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.

Implements

Applies to