Struct BitmapFont | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Struct BitmapFont

    Provides metadata about the font.

    Namespace: Unity.Tiny.Text
    Syntax
    public struct BitmapFont : IComponentData
    Remarks

    Generally you will want to use CreateBitmapFont(EntityManager, ref Entity, Single, Single, Single) to create BitmapFonts. A BitmapFont is fully specified by an entity that has the following components:

    Fields

    ascent

    The distance from the baseline to the font's ascent line.

    Declaration
    public float ascent
    Field Value
    Type Description
    System.Single

    descent

    Distance from the baseline to the font's descent line.

    Declaration
    public float descent
    Field Value
    Type Description
    System.Single

    size

    The Font size in World Units.

    Declaration
    public float size
    Field Value
    Type Description
    System.Single

    textureAtlas

    The entity on which to look for an Image2D component to use.

    Declaration
    [EntityWithComponents(new Type[]{typeof(Image2D)})]
    public Entity textureAtlas
    Field Value
    Type Description
    Entity
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023