Class TextLayout | Project Tiny | 0.29.0-preview.22
docs.unity3d.com
    Show / Hide Table of Contents

    Class TextLayout

    Inheritance
    Object
    TextLayout
    Namespace: Unity.Tiny.Text
    Syntax
    public static class TextLayout

    Methods

    LayoutString(Char*, Int32, Single, HorizontalAlignment, float4, ref FontData, DynamicBuffer<DynamicSimpleVertex>, DynamicBuffer<DynamicIndex>, out AABB)

    Declaration
    public static void LayoutString(char *text, int textLength, float fontSize, HorizontalAlignment hAlign, float4 vertexColor, ref FontData font, DynamicBuffer<DynamicSimpleVertex> dynMesh, DynamicBuffer<DynamicIndex> dynTriangles, out AABB aabb)
    Parameters
    Type Name Description
    Char* text
    Int32 textLength
    Single fontSize
    HorizontalAlignment hAlign
    Unity.Mathematics.float4 vertexColor
    FontData font
    Unity.Entities.DynamicBuffer<DynamicSimpleVertex> dynMesh
    Unity.Entities.DynamicBuffer<DynamicIndex> dynTriangles
    Unity.Mathematics.AABB aabb

    LayoutString<T1, T2>(Char*, Int32, Single, HorizontalAlignment, float4, ref FontData, T1, T2, out AABB)

    Declaration
    public static void LayoutString<T1, T2>(char *text, int textLength, float fontSize, HorizontalAlignment hAlign, float4 vertexColor, ref FontData font, T1 mesh, T2 triangles, out AABB aabb)
        where T1 : INativeList<SimpleVertex> where T2 : INativeList<ushort>
    Parameters
    Type Name Description
    Char* text
    Int32 textLength
    Single fontSize
    HorizontalAlignment hAlign
    Unity.Mathematics.float4 vertexColor
    FontData font
    T1 mesh
    T2 triangles
    Unity.Mathematics.AABB aabb
    Type Parameters
    Name Description
    T1
    T2

    SetEntityTextRendererString(EntityCommandBuffer, Entity, String)

    Declaration
    public static void SetEntityTextRendererString(EntityCommandBuffer ecb, Entity entity, string newText)
    Parameters
    Type Name Description
    Unity.Entities.EntityCommandBuffer ecb
    Unity.Entities.Entity entity
    String newText

    SetEntityTextRendererString(EntityManager, Entity, String)

    Declaration
    public static void SetEntityTextRendererString(EntityManager em, Entity entity, string newText)
    Parameters
    Type Name Description
    Unity.Entities.EntityManager em
    Unity.Entities.Entity entity
    String newText
    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