Class NavZone
NavZones group tiles with shared properties, like terrain and effects, like visual or damages enriching gameplay with immersive elements.
Inheritance
object
NavZone
Assembly: cs.temp.dll.dll
Syntax
public sealed class NavZone : AxisGameObject
Fields
AffectContainingLabel
Declaration
public string AffectContainingLabel
Field Value
ObjectEnterFirework
Firework to burst when any NavObject enters in this zone's region
Declaration
public AxisFirework ObjectEnterFirework
Field Value
Type |
Description |
AxisFirework |
|
ObjectExitFirework
Firework to burst when any NavObject exit this zone's region
Declaration
public AxisFirework ObjectExitFirework
Field Value
Type |
Description |
AxisFirework |
|
ObjectLandFirework
Firework to burst when any NavObject touches ground in this zone
Declaration
public AxisFirework ObjectLandFirework
Field Value
Type |
Description |
AxisFirework |
|
OnObject
Events dispatched when NavObjects interacts with this zone
Declaration
public NavObjectEvents OnObject
Field Value
Type |
Description |
NavObjectEvents |
|
TileRendererSetup
Setup for rendering tiles where this NavZone is at
Declaration
public SetupTileRenderer TileRendererSetup
Field Value
Type |
Description |
SetupTileRenderer |
|
TimeToDisable
Time after this zone is enabled to be automatically disabled
Declaration
public float TimeToDisable
Field Value
Properties
CurrentMatrix
The current NavmeshMatrix this NavZone is in
Declaration
public NavmeshMatrix CurrentMatrix { get; }
Property Value
GizmosColor
[Read-only] The main color used to render this zone tiles in gizmos
Declaration
public Color GizmosColor { get; }
Property Value
Setup
Setup settings for this zone effects
Declaration
public SetupZone Setup { get; set; }
Property Value
Type |
Description |
SetupZone |
|
TerrainEffect
[Read-only] Effects to apply to NavAgents when entering this NavZone's tiles
Declaration
public TerrainEffect TerrainEffect { get; }
Property Value
Type |
Description |
TerrainEffect |
|
terrainType
[Read-only] The type of terrain this zone is made of
Declaration
public TerrainType terrainType { get; }
Property Value
Type |
Description |
TerrainType |
|
Methods
FindAllAt(NavmeshMatrix)
Declaration
public static List<NavZone> FindAllAt(NavmeshMatrix matrix = null)
Parameters
Returns
Type |
Description |
System.Collections.Generic.List<T><NavZone> |
|
FindAllWithTagAt(string, NavmeshMatrix)
Declaration
public static List<NavZone> FindAllWithTagAt(string tag, NavmeshMatrix matrix = null)
Parameters
Returns
Type |
Description |
System.Collections.Generic.List<T><NavZone> |
|
FindAt(string, NavmeshMatrix)
Declaration
public static NavZone FindAt(string name, NavmeshMatrix matrix = null)
Parameters
Returns
FindWithTagAt(string, NavmeshMatrix)
Declaration
public static NavZone FindWithTagAt(string tag, NavmeshMatrix matrix = null)
Parameters
Returns