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
| Type |
Name |
Description |
| Char* |
text |
|
| Int32 |
textLength |
|
| Single |
fontSize |
|
| HorizontalAlignment |
hAlign |
|
| Unity.Mathematics.float4 |
vertexColor |
|
| FontData |
font |
|
| DynamicBuffer<DynamicSimpleVertex> |
dynMesh |
|
| DynamicBuffer<DynamicIndex> |
dynTriangles |
|
| 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 Parameters
SetEntityTextRendererString(EntityCommandBuffer, Entity, String)
Declaration
public static void SetEntityTextRendererString(EntityCommandBuffer ecb, Entity entity, string newText)
Parameters
| Type |
Name |
Description |
| EntityCommandBuffer |
ecb |
|
| Entity |
entity |
|
| String |
newText |
|
SetEntityTextRendererString(EntityManager, Entity, String)
Declaration
public static void SetEntityTextRendererString(EntityManager em, Entity entity, string newText)
Parameters
| Type |
Name |
Description |
| EntityManager |
em |
|
| Entity |
entity |
|
| String |
newText |
|