ReadonlycolliderThe collider. Null in OverlapProbe#onOverlapExit if the collider was destroyed while a member; use Overlap#id to correlate the exit with its enter.
ReadonlydistanceClosest-point distance from the collider's volume to the probe center, in centimeters; 0 when
the probe center is inside the collider. -1 unless the probe was created with
SpecsInteractionModule.OverlapProbeOptions#trackDistances enabled.
This Overlap is a live view, not a snapshot: while the collider stays inside a
distance-tracking probe, the value refreshes in place once per frame at the probe's overlap
evaluation (after Update, before LateUpdate), so read it in LateUpdate for
current-frame-accurate results. Retain the Overlap from
OverlapProbe#onOverlapEnter and poll this property; it resets to -1 when the
membership exits (including during the OverlapProbe#onOverlapExit callback), so a
retained Overlap never reads as still-near after leaving.
ReadonlyidIdentifies this membership, stable from its enter to its exit and unique among the probe's concurrent memberships. Use it to pair an exit with its enter.
StaticgetReturns the name of this object's type.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other. Useful for checking if two references point to the same thing.
One collider inside an overlap probe's volume, with an
idstable from the enter to the exit of that membership. Delivered via OverlapEnterEventArgs#enteredOverlaps and OverlapExitEventArgs#exitedOverlaps.Since
Lens Scripting Version 375
Snap OS
Example