Class NavLink
Abstract class from which all different and custom NavLinks should inherit.
A NavLink is a game element facilitating teleportation between distant tiles,
enhancing gameplay with seamless transitions
Inheritance
object
NavLink
Assembly: cs.temp.dll.dll
Syntax
public abstract class NavLink : AxisGameObject
Fields
IsActionRequired
Does this link requires agent input to enter? If not, only walking over tiles activates already.
Declaration
public bool IsActionRequired
Field Value
OnLink
Events dispatched in NavLink main processes
Declaration
Field Value
Type |
Description |
LinkEvents |
|
Out
The other link connected to this one
Declaration
Field Value
SnapOnEnter
Does the entering link animation forces transform to snap to the center of the link?
Declaration
Field Value
SnapOnExit
Does the landing link animation forces transform to snap to the other link center?
Declaration
Field Value
TileRendererSetup
Setup for rendering tiles where this NavLink is at
Declaration
public SetupTileRenderer TileRendererSetup
Field Value
Type |
Description |
SetupTileRenderer |
|
Properties
CurrentMatrix
The current NavmeshMatrix this NavLink is in
Declaration
public NavmeshMatrix CurrentMatrix { get; }
Property Value
Methods
FindAllAt(NavmeshMatrix)
Declaration
public static List<NavLink> FindAllAt(NavmeshMatrix matrix)
Parameters
Returns
Type |
Description |
System.Collections.Generic.List<T><NavLink> |
|
FindAllWithTagAt(string, NavmeshMatrix)
Declaration
public static List<NavLink> FindAllWithTagAt(string tag, NavmeshMatrix matrix)
Parameters
Returns
Type |
Description |
System.Collections.Generic.List<T><NavLink> |
|
FindAt(string, NavmeshMatrix)
Declaration
public static NavLink FindAt(string name, NavmeshMatrix matrix)
Parameters
Returns
FindWithTagAt(string, NavmeshMatrix)
Declaration
public static NavLink FindWithTagAt(string tag, NavmeshMatrix matrix)
Parameters
Returns
GetTile()
Gets the center single tile this NavLink is in
Declaration
Returns
NearestLinkTile(Vector3)
Among all tiles this link is covering, get the nearest to the given point
Declaration
public Tile NearestLinkTile(Vector3 position)
Parameters
Type |
Name |
Description |
Vector3 |
position |
Point to check
|
Returns
Type |
Description |
Tile |
The nearest tile
|