Navigation.NavCast
NavCast(Ray, out UIBlockHit, UIBlock, UIBlock, bool, int)
Performs a navigation-specific raycast against all navigable UIBlocks under scope
and retrieves a UIBlockHit for the nearest navigable UIBlock in the general direction of the provided ray
.
Declaration
public static bool NavCast(Ray ray, out UIBlockHit blockHit, 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. |
UIBlockHit | blockHit | A UIBlockHit for the top-most-rendered navigable UIBlock in the provided |
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". |
Returns
Type | Description |
---|---|
bool |
|