Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    NavigationMeshLayer Class

    Namespace: Stride.Navigation
    Assembly: 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

    | Improve this Doc View Source

    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>
    | Improve this Doc View Source

    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


    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation