docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetPointsAndMaterialFromText

    GetPointsAndMaterialFromText(string, string, int, Matrix4, Color, double, double)

    Returns a list of 3D Points and a material from a string and a fontname

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public GetPointsAndMaterialFromTextReturn GetPointsAndMaterialFromText(string text, string fontName, int fontSize, Matrix4 matrix, Color colorInput, double offset = 0, double height3D = 0)
    Parameters
    Type Name Description
    string text

    Input text

    string fontName

    Fontname

    int fontSize

    FontSize

    Matrix4 matrix

    Input matrix for the text

    Color colorInput

    Color of the font needed

    double offset

    Input offset for the text

    double height3D

    Input height in 3D which will be a ratio from the textSize

    Returns
    Type Description
    GetPointsAndMaterialFromTextReturn
    In This Article
    Back to top
    Copyright © 2025 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)