Search Results for

    Show / Hide Table of Contents

    Class SpriteMinimapElement

    Minimap element that will draw a box based on a set of bounds from a given box collider.

    Inheritance
    Object
    AbstractMinimapElement
    SpriteMinimapElement
    Implements
    IMinimapElement
    Inherited Members
    AbstractMinimapElement.drawOrder
    AbstractMinimapElement.DrawOnBackground(IMinimap, Texture2D)
    AbstractMinimapElement.GetOrder()
    Namespace: nickmaltbie.MinimapTools.Background
    Assembly: cs.temp.dll.dll
    Syntax
    public class SpriteMinimapElement : AbstractMinimapElement, IMinimapElement

    Fields

    color

    Color of the box on the minimap.

    Declaration
    public Color color
    Field Value
    Type Description
    Color

    Methods

    GetRotation()

    Get the rotation of this object in world space.

    Declaration
    public override float GetRotation()
    Returns
    Type Description
    Single

    Rotation of the object in world space.

    Overrides
    AbstractMinimapElement.GetRotation()

    GetTexture(IMinimap)

    Gets the texture associated with this minimap element for a given minimap.

    Declaration
    public override Texture2D GetTexture(IMinimap minimap)
    Parameters
    Type Name Description
    IMinimap minimap

    Minimap to get the target texture for.

    Returns
    Type Description
    Texture2D

    Texture to draw on the background of the minimap.

    Overrides
    AbstractMinimapElement.GetTexture(IMinimap)

    WorldCenter()

    Get the center of this element in world space.

    Declaration
    public override Vector3 WorldCenter()
    Returns
    Type Description
    Vector3
    Overrides
    AbstractMinimapElement.WorldCenter()

    Implements

    IMinimapElement
    In This Article
    Back to top MinimapTools Documentation