SF Tool Documentation
Search Results for

    Show / Hide Table of Contents

    Class GridBase

    Inheritance
    System.Object
    GridBase
    Namespace: SF
    Assembly: cs.temp.dll.dll
    Syntax
    public class GridBase : MonoBehaviour

    Fields

    DebugDrawGrid

    Declaration
    public bool DebugDrawGrid
    Field Value
    Type Description
    System.Boolean

    GridWorldSize

    Declaration
    public Vector2 GridWorldSize
    Field Value
    Type Description
    Vector2

    NodeRadius

    Declaration
    public float NodeRadius
    Field Value
    Type Description
    System.Single

    UnwalkableMask

    Declaration
    public LayerMask UnwalkableMask
    Field Value
    Type Description
    LayerMask

    Properties

    MaxSize

    Declaration
    public int MaxSize { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    GetNeighbours(PathNodeBase)

    Declaration
    public List<PathNodeBase> GetNeighbours(PathNodeBase pathNode)
    Parameters
    Type Name Description
    PathNodeBase pathNode
    Returns
    Type Description
    List<PathNodeBase>

    NodeFromWorldPoint(Vector2)

    Returns the PathNode from the passed in world position on this grid if it exists.

    Declaration
    public PathNodeBase NodeFromWorldPoint(Vector2 worldPosition)
    Parameters
    Type Name Description
    Vector2 worldPosition
    Returns
    Type Description
    PathNodeBase
    In This Article
    Back to top Generated by DocFX