NavigationMeshLayer Class
Namespace: Stride.NavigationAssembly: Stride.Navigation.dll
Layer containing built tiles for a single NavigationAgentSettings
System.Object →
NavigationMeshLayer
Derived from NavigationMeshLayer:
[DataSerializer(typeof(NavigationMeshLayer.NavigationMeshLayerSerializer))]
[ContentSerializer(typeof(DataContentSerializer<NavigationMesh>))]
public class NavigationMeshLayer
| Name | Description | |
|---|---|---|
| Properties | ||
| Tiles | Contains all the built tiles mapped to their tile coordinates |
|
| Methods | ||
| FindTile(Point) | Tries to find a built tile inside this layer |
|
Properties
Tiles
Contains all the built tiles mapped to their tile coordinates
public IReadOnlyDictionary<Point, NavigationMeshTile> Tiles { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IReadOnlyDictionary<Point, NavigationMeshTile> |
Methods
FindTile(Point)
Tries to find a built tile inside this layer
public NavigationMeshTile FindTile(Point tileCoordinate)
Parameters
| Type | Name | Description |
|---|---|---|
| Point | tileCoordinate | The coordinate of the tile |
Returns
| Type | Description |
|---|---|
| NavigationMeshTile | The found tile or null |