docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method DrawPoint

    DrawPoint(Vector3, Color, float, Texture)

    Draw a point (in pixel space) on the screen

    Declaration
    public static void DrawPoint(Vector3 pt, Color color, float width = 4, Texture texture = null)
    Parameters
    Type Name Description
    Vector3 pt

    The point location, in pixel space

    Color color

    The color of the point

    float width

    The width of the point

    Texture texture

    The texture to use for the point, defaults to a solid pixel

    DrawPoint(float, float, Color, float, Texture)

    Draw a point (in pixel space) on the screen

    Declaration
    public static void DrawPoint(float x, float y, Color color, float width = 4, Texture texture = null)
    Parameters
    Type Name Description
    float x

    The point's x value, in pixel space

    float y

    The point's y value, in pixel space

    Color color

    The color of the point

    float width

    The width of the point

    Texture texture

    The texture to use for the point, defaults to a solid pixel

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)