Interaction.SphereCollideAll
SphereCollideAll(Sphere, List<UIBlockHit>, int)
Performs a sphere collision against all active UIBlocks in the scene and populates the provided list with UIBlockHits for all UIBlocks colliding with the provided sphere
.
Remarks
Performed by the Nova Input System, independent of the UnityEngine.Physics and UnityEngine.Physics2D systems.
Declaration
public static void SphereCollideAll(Sphere sphere, List<UIBlockHit> hitsToPopulate, int layerMask = -1)
Parameters
Type | Name | Description |
---|---|---|
Sphere | sphere | The sphere, in world space, to cast |
List<UIBlockHit> | hitsToPopulate | The list to populate with all UIBlockHit collisions, sorted by top-most-rendered (at index 0). |
int | layerMask | The gameobject layers to include, defaults to "All Layers". |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | if |