Struct NativeFont
Add this component to an entity to specify a native font.
Namespace: Unity.Tiny.Text
Syntax
public struct NativeFont : IComponentData
Remarks
Generally you will want to use CreateNativeFont(EntityManager, FontName, String, Single) to create a NativeFont.
Fields
name
Name of the font.
Declaration
public FontName name
Field Value
| Type | Description |
|---|---|
| FontName |
status
Font loading status
Declaration
public FontStatus status
Field Value
| Type | Description |
|---|---|
| FontStatus |
worldUnitsToPt
Multiplier for converting World units to Points. Fonts are rendered in points (pt).
Declaration
public float worldUnitsToPt
Field Value
| Type | Description |
|---|---|
| System.Single |
Properties
Default
Declaration
public static NativeFont Default { get; }
Property Value
| Type | Description |
|---|---|
| NativeFont |