UnityToolbox
Brief documentation for all existing scripts.
 
Loading...
Searching...
No Matches
UnityToolbox.General.ColliderInfo Class Reference

A helping script which saves all current colliders, colliding with the current object.

Inheritance diagram for UnityToolbox.General.ColliderInfo:

Public Member Functions

List< Collider > GetAllCollisions (LayerMask layerMask)
 Filters all current collisions with a layerMask.
 
List< Collider2D > GetAllCollisions2D (LayerMask layerMask)
 Filters all current 2D collisions with a layerMask.
 
List< Collider > GetAllCollisions ()
 Returns all current colliders.
 
List< Collider2D > GetAllCollisions2D ()
 Returns all current 2D colliders.
 

Member Function Documentation

◆ GetAllCollisions() [1/2]

List< Collider > UnityToolbox.General.ColliderInfo.GetAllCollisions ( )
Returns
A list of current colliders.

◆ GetAllCollisions() [2/2]

List< Collider > UnityToolbox.General.ColliderInfo.GetAllCollisions ( LayerMask  layerMask)
Parameters
layerMaskThe layer mask of the wanted collisions.
Returns
A list of current colliders.

Referenced by UnityToolbox.GameplayFeatures.Items.Inventory.Managers.HeldInventoryManager.Update().

◆ GetAllCollisions2D() [1/2]

List< Collider2D > UnityToolbox.General.ColliderInfo.GetAllCollisions2D ( )
Returns
A list of current colliders.

◆ GetAllCollisions2D() [2/2]

List< Collider2D > UnityToolbox.General.ColliderInfo.GetAllCollisions2D ( LayerMask  layerMask)
Parameters
layerMaskThe layer mask of the wanted collisions.
Returns
A list of current colliders.

Referenced by UnityToolbox.PlayerControls.TriggerDetection.Update().