Skip to content

GlassToeStudio/UnityGlobalTextSystem

Repository files navigation

Unity Global Text System




This package will allow one to select a default global font for Unity UI Text. The Global Font can be selected from a custom editor window. When a new UI Text (even if the Text is a Child, ex: Button) it will have the font that was set by the user, and not the default Arial font.

Getting Started


  • Select a Font that is in your project to be the Global Font.

  • This can be set from "Global Text System/Settings"

  • Now, when a UI Text is added, it will have this font.

    Additional Options

    • Button to Reset global font to default (Arial)
    • Button to Change the font of all UI Text in the scene at once
*Useful if you already have a bunch of Text in a scene, and decide to use a new font*

Add New Text With Your Font:



Select any property to override via the custom editor:



Update All Text



See changes in real-time



Prerequisites


Must have Unity installed.

Tested with the June 15th release of Unity 2018.1.5f1

Tested with Unity 5.6 as well

If contributing, be sure to have git installed.

Installing


To use the project, all you need is to Download the latest release and import the package into your Unity project.

Alternately you can Clone the repo using:

git clone https://github.com/GlassToeStudio/UnityGlobalTextSystem.git

Contributing


Open source repo!. Feel free to create a fork and make contributions!

Contributing guidelines can be found here

Authors


License


This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments


  • Inspiration by Discord user @Dibbie#0408