Navigation.NavCastAll
NavCastAll(Ray, List<UIBlockHit>, UIBlock, UIBlock, bool, int)
Performs a navigation-specific raycast against all navigable UIBlocks under scope and populates the provided list of UIBlockHits for all navigable UIBlocks in the general direction of the provided ray.
Declaration
public static void NavCastAll(Ray ray, List<UIBlockHit> hitsToPopulate, UIBlock ignore = null, UIBlock scope = null, bool navigablesOnly = true, int layerMask = -1)
Parameters
| Type | Name | Description |
|---|---|---|
| Ray | ray | A ray, in worldspace, to use for the navigation-specific raycast. |
| List<UIBlockHit> | hitsToPopulate | The list to populate with all UIBlockHit collisions, sorted by closest to the ray origin and top-most-rendered (at index 0). |
| UIBlock | ignore | The UIBlock to exclude from the results, defaults to |
| UIBlock | scope | The root of UIBlocks to test against, defaults to |
| bool | navigablesOnly | Only include results with navigable elements? Defaults to |
| int | layerMask | The gameobject layers to include, defaults to "All Layers". |