Class NavigationSettings
The navigation system settings container.
Assembly: FlaxEngine.dll
File: Engine/Navigation/NavigationSettings.h
Syntax
public class NavigationSettings : public SettingsBase
The navigation system settings container.
public class NavigationSettings : public SettingsBase
public NavigationSettings()
If checked, enables automatic navmesh actors spawning on a scenes that are using it during navigation building.
public bool AutoAddMissingNavMeshes = true
bool
|
If checked, enables automatic navmesh actors removing from a scenes that are not using it during navigation building.
public bool AutoRemoveMissingNavMeshes = true
bool
|
The height of a grid cell in the navigation mesh building steps using heightfields. A lower number means higher precision on the vertical axis but longer build times.
public float CellHeight = 10.0f
float
|
The width/height of a grid cell in the navigation mesh building steps using heightfields. A lower number means higher precision on the horizontal axes but longer build times.
public float CellSize = 30.0f
float
|
The sampling distance to use when generating the detail mesh.
public float DetailSamplingDist = 600.0f
float
|
The maximum distance the detail mesh surface should deviate from heightfield data.
public float MaxDetailSamplingError = 1.0f
float
|
The maximum distance a simplified contour's border edges should deviate from the original raw contour.
public float MaxEdgeError = 1.3f
float
|
The maximum allowed length for contour edges along the border of the mesh.
public float MaxEdgeLen = 1200.0f
float
|
Any regions with a span count smaller than this value will, if possible, be merged with larger regions.
public int32 MergeRegionArea = 20
int32
|
The minimum number of cells allowed to form isolated island areas.
public int32 MinRegionArea = 0
int32
|
The configuration for nav areas.
public Array<NavAreaProperties> NavAreas
Array<NavAreaProperties>
|
The configuration for navmeshes.
public Array<NavMeshProperties> NavMeshes
Array<NavMeshProperties>
|
Tile size used for Navigation mesh tiles, the final size of a tile is CellSize*TileSize.
public int32 TileSize = 64
int32
|
Applies the settings to the target system.
public virtual void Apply() override
Deserializes object from the input stream.
public virtual void Deserialize(DeserializeStream& stream, ISerializeModifier* modifier) final override
DeserializeStream
stream
The input stream. |
ISerializeModifier
modifier
The deserialization modifier object. Always valid. |
Gets the instance of the settings asset (default value if missing). Object returned by this method is always loaded with valid data to use.
public static NavigationSettings* Get()
NavigationSettings
|
Serializes object to the output stream compared to the values of the other object instance (eg. default class object). If other object is null then serialize all properties.
public virtual void Serialize(SerializeStream& stream, const void* otherObj) override
SerializeStream
stream
The output stream. |
void
otherObj
The instance of the object to compare with and serialize only the modified properties. If null, then serialize all properties. |