SharpNav.TiledNavMesh.GetTileAt C# (CSharp) Method

GetTileAt() public method

Find the tile at a specific location.
public GetTileAt ( Vector2i location, int layer ) : NavTile
location Vector2i The (X, Y) coordinate of the tile.
layer int The layer of the tile.
return NavTile
        public NavTile GetTileAt(Vector2i location, int layer)
        {
            //Find tile based off hash
            List<NavTile> list;
            if (!tileSet.TryGetValue(location, out list))
                return null;

            return list.Find(t => t.Layer == layer);
        }

Same methods

TiledNavMesh::GetTileAt ( int x, int y, int layer ) : NavTile