FREE TRIAL

|

☀
☾

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 null. Useful for when a specific UIBlock should be filtered out.

UIBlock scope

The root of UIBlocks to test against, defaults to null. All UIBlocks in the scene are tested when scope == null.

bool navigablesOnly

Only include results with navigable elements? Defaults to true.

int layerMask

The gameobject layers to include, defaults to "All Layers".

☀
☾
In This Article
Legal EmailContact Github
Copyright © 2022 Supernova Technologies, LLC