Class NavAreaProperties
The navigation area properties container for navmesh building and navigation runtime.
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
public sealed class NavAreaProperties : ValueType
The navigation area properties container for navmesh building and navigation runtime.
[Unmanaged]
public sealed class NavAreaProperties : ValueType
The area type color (for debugging). Alpha channel is used to blend with navmesh color (alpha 0 to use navmesh color only).
[EditorOrder(10)]
public Color Color
|
Color
|
The cost scale for the area traversal for agents. The higher the cost, the less likely agent wil choose the path that goes over it. For instance, areas that are harder to move like sand should have higher cost for proper path finding.
[EditorOrder(30)]
[Limit(0F, 3.40282347E+38F, 0.1F)]
public float Cost
|
System.Single
|
The area id. It must be unique for the project. Valid range 0-63. Value 0 is reserved for Null areas (empty, non-navigable areas).
[EditorOrder(20)]
[Limit(0F, 63F, 1F)]
public byte Id
|
System.Byte
|
The area type name. Identifies different types of the areas.
[EditorOrder(0)]
public string Name
|
System.String
|
The default NavAreaProperties.
public static NavAreaProperties Default { get; }
|
NavAreaProperties
|