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

    Struct Text2DStyleNativeFont

    Add this component to an entity with a Text2DRenderer component to specify a native font.

    Namespace: Unity.Tiny.Text
    Syntax
    public struct Text2DStyleNativeFont : IComponentData

    Fields

    font

    The Font entity on which to look for a {@link NativeFont} component to use.

    Declaration
    [EntityWithComponents(new Type[]{typeof(NativeFont)})]
    public Entity font
    Field Value
    Type Description
    Entity

    italic

    If true, adds the italic attribute to the text.

    Declaration
    public bool italic
    Field Value
    Type Description
    System.Boolean

    weight

    Sets the font weight. A value of 400 is normal weight. A value of 700 is bold. Higher values make characters thicker. Lower values make them thinner.

    Declaration
    public int weight
    Field Value
    Type Description
    System.Int32

    Properties

    Default

    Declaration
    public static Text2DStyleNativeFont Default { get; }
    Property Value
    Type Description
    Text2DStyleNativeFont
    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