Class TextLayout
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
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 Parameters
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 |
|