How can i create a Gameobject of type exSpriteFont in C# script?

I want to create GameObjects of type spriteFonts and animate them. any help is appreciated.

thanks

The easiest method is to create a prefab with the properties you want, then load it at runtime.

For example, for a prefab called “FontPrefab_Titan16”

`
GameObject _SmallFontPrefab = (GameObject)Resources.Load(“Fonts/FontPrefab_Titan16”);

GameObject MyNewFontObject = GameObject.Instantiate(SmallFontPrefab);
`

Then you can manipulate the properties of the font, if you’d like

MyNewFontObject.GetComponent<code><exSpriteFont>()…