C# Class EasyFontUtilities, UnityStbEasyFont

Mostra file Open project: aras-p/UnityStbEasyFont Class Usage Examples

Public Methods

Method Description
CalcAnchorOffset ( Mesh mesh, TextAnchor anchor ) : Vector3
CreateFontMaterial ( ) : Material
SelectAndMoveToView ( GameObject go ) : void
UpdateMesh ( Mesh &mesh, string text, Color32 color ) : void

Private Methods

Method Description
ReplaceBuiltinWithSimple ( ) : void

Method Details

CalcAnchorOffset() public static method

public static CalcAnchorOffset ( Mesh mesh, TextAnchor anchor ) : Vector3
mesh Mesh
anchor TextAnchor
return Vector3

CreateFontMaterial() public static method

public static CreateFontMaterial ( ) : Material
return Material

SelectAndMoveToView() public static method

public static SelectAndMoveToView ( GameObject go ) : void
go GameObject
return void

UpdateMesh() public static method

public static UpdateMesh ( Mesh &mesh, string text, Color32 color ) : void
mesh Mesh
text string
color UnityEngine.Color32
return void