Sign in to follow this  

Question about default UI button in Unity (latest version)

Recommended Posts

I'm not sure if the actual defaults can be changed, but you have several options for making your own defaults:

  • You can set one text object up the way you want it, then duplicate it for all your other text.
  • You can make a prefab out of it if you intend to programmatically instantiate it.
  • You can create your own special MenuItems that set up new text objects the way you want, and use that instead of Unity's own GameObject/UI/Text menu item.  To do this, make a public static function in an Editor script (a script that's in a folder with the name 'Editor' as part of its path), and put a [MenuItem("GameObject/UI/Your Custom Text")] attribute on the function.
Edited by Nypyren

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this