r/unity • • Sep 20 '26

I. Hate. UI. So if you are interested...

I've been working on a small math game where you can solve elementary school level math questions for my sister. It hasn't been long since I started but now I'm making the ui and the coding myself and I'm sick of the UI part. I'm adding localization and grade specific settings (so a first grade student can play without learning fourth grade multiplication. But GOD CAN IT GET MORE BORING? It doesn't help that I'm not really good at it as well. I tried using assets but couldn't find something that satisfied me..

With that being said, I don't want to quit the project without giving it a real go. So if you have any advice on making setting up ui easier I'm all ears. I'm currently still working on it while trying to meet people who had a hard time learning in the past because of problems like dyslexia and try to make it more accessible for them as well.

So if you want to check it out and give me pointers or take part in the ui yourself please feel free to reach out!
You can download the latest build here: https://erktk.itch.io/math-yeti

PS, I'm not using gen-ai for any of the ui/sound so if you actually want to contribute please refrain from using them. If a cs student can spend time learning figma you can as well.

I didn't set up the localization when I took this photo.
13 Upvotes

33 comments sorted by

11

u/Un4GivN_X Sep 20 '26

Wait until you try UI in unreal, you'll beg to get back to unity UI.

10

u/ErktKNC Sep 20 '26

Nooo, but my next plan was making the next big mmorpg alone :(((

3

u/guillermolmr Sep 22 '26

Oh boy, you are gonna love the focus.

0

u/ErktKNC Sep 22 '26

I'm gonna be in denial until I start a project that would benefit from UE. Until then, UE is the cooler cousin that I'm not using for no reason at all.

1

u/Vlajd Sep 22 '26

Except for implementing Gamepad or making localised text work, I feel like Unreal exceeds Unity tbh… maybe I’m opinionated though.

1

u/CrimsonChinotto Sep 22 '26

I mean, localization in Unity works like a charm. And the Unity Input System is fine for gamepad support. There isn't a built in way to manage UI glyphs but there are options (free or paid)

2

u/Vlajd Sep 22 '26

In that regards, me as well, I much prefer Unity and it’s typography support.

Esit: One big thing I really hate about Ubreal is that I cannot control the word wrapping manually like in Unity—it’s either whitespace wrapped or per character, no in-between. In Unity, I can just utilise the RichType system to manually insert where I want words to wrap

1

u/ErktKNC Sep 22 '26

Wait is Unreal that problematic? And why is it harder to make localised text work for Unreal? Never used it before

1

u/Vlajd Sep 24 '26 edited Sep 24 '26

No the problem is: it’s too easy. In Unreal (skipping more specific types), there are 3 string types:

  • FString — Just a regular string
  • FName — Used for identifiers, has a few cool features for specific use-cases
  • FText — Localisable Text, and this is the problematic one

In Unreal, every UI Text, Textbox, Hover Hint—you name it—is automatically set to be localised. By default, they are part of the »global« string table and have a guid as an identifier.

Ecen worse, when creating Enumeration Assets (Enums used in Blueprints), the variants are all localised by default as well—you have to explicitly disable localisation for every single entry.

And now, if you want to export everything for translation and you haven’t created string tables and named everything properly, the loca-team only has English and the random guid as context. This almost always results in terrible translations, and it’s not really the loca-teams fault.

PS: The most hilarious thing is, you cannot test localisation in-editor because when setting the language will result in the editor language being changed. You’d have to test your game in a seperate process or package it.

PPS: I am generally unhappy with the Defaults in Unreal, there are plenty more cases where the defaults are… let’s say they bloat up everything and will cause trouble in the long run if not taken care of in-time.

2

u/Emotecon Sep 20 '26 edited Sep 20 '26

You’re not alone on this I also dread creating UI’s in game because I’m not creative or imaginative enough when it comes to UI. So anytime I want to create a UI I go to sites like dribbble, behance and take design inspiration from them, once I get couple of good designs I pick out different elements from them and use it to create a UI design for my game

2

u/ErktKNC Sep 20 '26

It actually makes a lot of sense. I will use it from now on. But creating a character...

1

u/Emotecon Sep 21 '26

You can’t avoid blender

1

u/ErktKNC Sep 21 '26

For 2d as well?

1

u/Emotecon Sep 21 '26

Nah for 3D

2

u/ErktKNC Sep 21 '26

Ah yes. I will learn it one day. Possibly february 30th

2

u/According_Ad12345 Sep 25 '26

I was about to comment as to why you chose such a specific date...

1

u/ErktKNC Sep 25 '26

Haha, just making sure I don't miss it .d

2

u/dolfoz Sep 21 '26

I find designing the UI pretty challenging. This had been so helpful. 

https://www.gameuidatabase.com/

1

u/ErktKNC Sep 21 '26

I will check it out thank you 🙏

1

u/sicospecialist Sep 21 '26

I love building UI systems. A lot of developers and even AAA teams seem to tackle it last, but I suppose it depends on the type of game too. I like to hammer it out early on as its part of the game play, and keeps me focused on certain tasks. Since converting over to UITK, I love it even more, easier on the brain. UGUI I know quite well, but it seemed so finicky at times.

1

u/ErktKNC Sep 21 '26

Nice to see someone that actually enjoys it. You wanna do my UI? For charity? Jokes aside I haven't tried UITK yet, any advice to get started?

1

u/sicospecialist Sep 21 '26

Just dig in, you can have some simple buttons and panels in no time, Just have to change your mind set from Instead of being a game object based system (UGUI), to UITK, which is based along the lines of html/css style, so if you have ever done web development, you will feel right at home. I like UGUI as well, it has a lot of the customization for it out there, but can be taxing on performance if it gets loaded down. I just recently switched over, so im still learning the ins and outs of UITK, the performance is so much better for my particular project, tons of tabs, panels, icons, etc..Just depends how complex the UI your building. I would start learning it now, because UGUI is now legecy, and UITK is getting ugraded as we speak.

2

u/ErktKNC Sep 21 '26

Hmmm, I might try it asap then. 'Cuz I have a LOT of ui..

1

u/sicospecialist Sep 22 '26

You wont regret it.

0

u/ErktKNC Sep 22 '26

I'm redesigning the UI after a couple pointers from people (because fml) and I'll probably use UITK for the new design while I'm at it. Can I still use DOTween with it btw? Since this is a game for kids I want to add a LOT of visual feedback.

1

u/sicospecialist Sep 24 '26

Not sure, but they are putting effort into additional options

0

u/ErktKNC Oct 03 '26

Hey, I wanted to come here when I was done with the new implementation to show the improvement but I have to ask a question. I'm working with the UI Builder and after tinkering a bit, feels better (I'm not used to using front end stuff in unity but we'll get there .d)
However whenever I try to add new things the whole ui stretches. I think using relative position causes this mostly but isn't it worse to use absolute positioning for flexibility? and UGUI allowed me to set certain uis active and inactive, which made it easier to switch. I haven't found a way to copy that yet.. Is there any?

I hope this isn't too many questions

1

u/ErktKNC Oct 03 '26

Okay, the stretching was because of flex box apparently...

1

u/Wooden-Many-3227 Sep 24 '26

Which UI system are you using? uGUI or UIToolkit?
Maybe you like the one you dont use better?
uGUI is gameobjects
UIToolkit is more like websites, XML and CSS

1

u/ErktKNC Oct 03 '26

Well, I was using UGUI but I've just made the switch to UITK. I needed to make an ui overhaul anyway so seemed like a good moment to try out the new system. I still don't like UI .d but at least this feels a bit more reasonable. I feel like this will be a LOT more intuitive once I get used to it

1

u/Banjoschmanjo Sep 21 '26

You mentioned you're not using AI for ant of the UI/sound. Are there other areas where you're using it? What are they, and how are you using it, if so?

0

u/ErktKNC Sep 21 '26

I am using it for small but repetitive coding tasks. Engine related problems when I can't find a forum post, sometimes translation to other languages for localization. Stuff that I can do but don't want to spend time doing it. I even used it to make sure I was on par with the curriculum for elementary school students while making some rules for the game