Interaction.SphereCollide
SphereCollide(Sphere, out UIBlockHit, int)
Performs a sphere collision test against all active UIBlocks in the scene and retrieves a UIBlockHit for the top-most-rendered UIBlock colliding with the provided sphere
.
Remarks
Performed by the Nova Input System, independent of the UnityEngine.Physics and UnityEngine.Physics2D systems.
Declaration
public static bool SphereCollide(Sphere sphere, out UIBlockHit blockHit, int layerMask = -1)
Parameters
Type | Name | Description |
---|---|---|
Sphere | sphere | The sphere, in world space, to cast |
UIBlockHit | blockHit | A UIBlockHit for the top-most-rendered UIBlock colliding with the provided |
int | layerMask | The gameobject layers to include, defaults to "All Layers". |
Returns
Type | Description |
---|---|
bool | true if any UIBlock (on the |