ATTENTION! The process of updating WiKi to version Eco 10.x has begun. Those wishing to participate can find out more Information on our ECO Contribution Wiki Discord.

Custom Fonts

From Eco - English Wiki
Revision as of 01:40, 14 September 2021 by Thetestgame (talk | contribs) (Created page with "Starting in Eco 9.5 you can add custom fonts to the game using the new '''FontContainer''' object inside the Eco Modkit. These fonts can be used almost anywhere in Eco that ac...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Starting in Eco 9.5 you can add custom fonts to the game using the new FontContainer object inside the Eco Modkit. These fonts can be used almost anywhere in Eco that accepts text. Signs, Ecopedia, Tooltips, ect.

Adding a Custom Font

To add a custom font create a new "Fonts" GameObject in your mod scene and attach the FontContainer component to it. Inside this component there is a list of "Registered Fonts". You can attach any valid Font Unity accepts to this list. In this example I will add the Clip font. The mod made in this example can be found here for reference.


The rest of the process is the same as any other mod. Create and build your asset bundle and load it up into Eco. There is no code requirements for adding custom fonts to Eco. To demo how to use your new font place a sign and enter the

<font="nameofyourfont">Testing</font>

. In the case of the example the final text should be

<font="Clip">Testing</font>

. This will result in the following being displayed on the sign.