Skip to main content
4 votes
Accepted

Best way to de-clutter name tags on units in RTS

If you're troubled by the overlapping text, one thing you could do is have a list of "top 20" names along the side of the screen, with neat vector lines pointing to which unit in the main viewport ...
Engineer's user avatar
  • 30.4k
4 votes

Best way to de-clutter name tags on units in RTS

You basically can't solve this problem by changing drawing, rendering, etc. You are essentially showing too much information on the screen at once. Every game has this kind of issue, any time ...
Tim Holt's user avatar
  • 10.3k
3 votes

How to name HP/MP/Exp bars in a single word?

In game design terms, HP, MP, and XP are all "resources" so we could call them "Resource Bars" collectively. If that's too abstract/designer-y, we could also try "Points Bars" since it encompasses ...
DMGregory's user avatar
  • 141k
3 votes
Accepted

Unity ScrollView not scrolling with Clamped or Elastic

Your screenshot shows that Viewport has two children, Content and Description. You stated that Content has a ContentSizeFitter component. If your text is on the ...
Kevin's user avatar
  • 7,049
2 votes
Accepted

Unity Placing a UI on top of Cinemachine

I forgot to come back. Setting the Canvas panel back to Overlay mode did the trick. Credits to DMGregory
CraftedGaming's user avatar
2 votes
Accepted

Argument out of Range Exception on click of button that calls a function that doesn't use an index

This is a common coding pitfall: you are using a loop increment in a callback function inside a loop construct. The callback function records the reference of the local variable ...
Mangata's user avatar
  • 2,796
2 votes

UI quality drops when changing canvas resolution in Unity

The lower quality you're observing is due to texture sampling artifacts. The sprite's texture stores what colour each pixel should be when the sprite is displayed at exactly its original size. When ...
DMGregory's user avatar
  • 141k
2 votes

Is it possible to hide deprecated assets in Unity?

I suppose we're talking about deprecated assets that you've downloaded from the asset store. The Package Manager doesn't have an option to hide deprecated packages. The only way to do this (at the ...
YoshGJ's user avatar
  • 535
2 votes

UI not scaling properly

The OnePlus Nord AC2001 has a 2400 x 1080 display. This is significantly taller than the resolution you're previewing in the game view (20:9 vs 16:9) Because you've configured your Canvas Scaler to &...
DMGregory's user avatar
  • 141k
1 vote

How to prioritize and display correct UI for multiple actions triggered by the same input?

Just to flush out @DMGregory's comment. You have several design decisions to make, the first is to decide if it is possible to interact with multiple objects at once, in general the answer is probably ...
DavidT's user avatar
  • 853
1 vote
Accepted

Add Item for OptionsButton is Gone from the editor

This option is currently (Godot 4) on the inspector. Open "Items": And there you will find an "Add Element" button: Clicking it will create an empty item that you can then ...
Theraot's user avatar
  • 28.3k
1 vote

How to fix Unity UI Panel Image being replaced with an "X"?

enter image description here [
Cebrail Akyüz's user avatar
1 vote

How can I right-align elements in Unity's UI Toolkit scroll view?

Have you tried putting the image you want to align within a visual element? And then using that as a container to set the alignment on. I'm still new to UIToolKit but I think this should work.
Fay Oxby's user avatar
1 vote

How can I right-align elements in Unity's UI Toolkit scroll view?

Evidently, after some investigation on the Unity Forums, this is pretty much impossible right now. I would have to use the old Unity UI system to have that much control. There may be a way to do it, ...
Michael Macha's user avatar
1 vote
Accepted

How to get vertices array from UIElements Label class (using reflection)?

I'm not familiar with these classes, so it's possible that something else is the probelm, but having worked with Reflection before my first instinct is that the ...
PepeOjeda's user avatar
  • 893
1 vote
Accepted

How can I change displayed information as a physical control knob is slid along a track

Experimental games/game installations with custom controllers often implement them using a gadget called a Makey Makey. (I have no affiliation with the makers of this product) This is a small circuit ...
DMGregory's user avatar
  • 141k
1 vote

Does setting the alpha of a UI canvas group to 0 stop Unity from wasting resources rendering it? Is this a valid optimization for off screen UI?

There are other things going on in a canvas/UI other than rendering, such as re-organizing layouts and so on. So especially if things keep changing and happening in the UI, you may want to disable it ...
Tomer B's user avatar
  • 423
1 vote
Accepted

How to implement a simple Scrollbar

I'm going to give values to Minimum, Maximum and Value from the way you want to use them. We ...
Theraot's user avatar
  • 28.3k
1 vote
Accepted

Detect when item has been dragged & dropped onto an inventory slot

My solution for this problem is using the Canvas' Graphic Raycaster Component: ...
shlime's user avatar
  • 23
1 vote

Unity: How to work with forms

Usually I just create a class for that specific form. Using your example login dialog above, that might look something like this: ...
Kevin's user avatar
  • 7,049
1 vote
Accepted

Need help with using Player Prefs to save number of coins collected

There are quite a few things to improve, but that is expected from a new programmer. These are the tips for future: you should not be calling PlayerPrefs every ...
eLTomis's user avatar
  • 470
1 vote

Examples of 3D space strategy with good XYZ controls?

You should really think of good reasons why your game would benefit from a 3rd dimension other than realism. That is if realism isn't your selling point like it is for simulation games. In my opinion ...
Bartimaeus's user avatar
1 vote

Examples of 3D space strategy with good XYZ controls?

The way you control your spacecraft depends a lot on how the camera works. If the camera is at a fixed angle and looking at the game scene in an overhead perspective, your best solution would be ...
You'reNotTheRealAvengers's user avatar
1 vote

How to name HP/MP/Exp bars in a single word?

I very much disagree you'd refer to these as "resource bars" or "points bars" the first is ambiguous and the second I'm not sure is proper English. The term I've literally heard and used to describe ...
Krupip's user avatar
  • 1,811

Only top scored, non community-wiki answers of a minimum length are eligible