Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ui-design]

Designing a clear method of communication between the game and the user, whether hardware or software.

0
votes
1answer
42 views

How to change a background from a list of images on button click?

I'm trying to create a button within the settings menu that allows you to change the image of a GameObject per click. So, let's say there are only 2 different images available to choose from and it ...
1
vote
1answer
29 views

Unity, understading Layout element - Min size and preferible size

I have been some time working with unity, and I am trying to get a better understand of the UI system. I am a mobile developer and I am redesigning the UI but I am unable to achieve what I want. My ...
0
votes
0answers
20 views

creating a custom UI widget in Unity

I am attempting to create a UI control for my mobile game in Unity. The control is not there at all times, it will only pop up in a particular situation. I'm having a really hard time finding info on ...
1
vote
0answers
46 views

Attach a UI menu to leap motion hand (unity)

I'm new to using the leap motion and I would like to add a simple menu inside the left hand that appears when the palm is facing up, I tried adding the canvas as a child of the 3d hand model with a ...
3
votes
1answer
27 views

Isolate UI elements from 3D scene

this might seem like a silly question but I'm raycasting on specific objects (Targets) in a scene and zooming in on them but i also have a few UI elements (buttons, toggles...) on the side of the ...
0
votes
1answer
36 views

unity UI limitation for tutorial purpose

i want to add a tutorial part to my game that i make by unity.i have some panels that for tutorial purpose i want to limit user to just click a button.most of games make a dark panel over all places ...
0
votes
1answer
88 views

Reducing texture bindings in LibGDX when drawing text

I'm making custom menus and buttons (I don't want to use scene2D) and I have everything in atlases, but when I draw a button, if it has text, the texture binding is always x2 because of the switching ...
-2
votes
1answer
421 views

How do I display a variable in a UI Text component?

How can I display a variable (say an integer variable) in Unity's UI text? The variable may be a public variable from another script. Can anyone please help me do it (step by step)?
1
vote
1answer
76 views

Trouble creating a “Game Log” for a text-based RPG

I've made significant progress porting my game from print-output to Pygame over the last few days, and I think I'm almost there! Unfortunately, I'm beginning to suspect one of the methods I'm using ...
0
votes
0answers
17 views

[Unity]: UI Layouts. Control the row height by highest element. Set image width to width of a cell

I am trying to create a scroll view with layout of several images in a row of different aspect ratio. I need images to have same width all the time. I can't set a fixed cell height because the tallest ...
0
votes
0answers
38 views

[Unity]: How to make RectTransform coincide with image

I am building UI and I need object with image component always fit in parent object by width. Problem is, although Image component has option "Preserv aspect ratio" RectTransform of this object almost ...
0
votes
0answers
29 views

Structuring complex menu widgets

I'm new to Unity, and have only really played around with some physics interactions and basic inputs etc., so I've been trying to broaden my skills and had a go at UI design. I want to create a ...
0
votes
2answers
48 views

How do I add a “pointer” to my UI menu?

I'm sure there has to be a simple answer to this, but frankly I cannot find anything about it anywhere on the internet, so I'm asking here. How do I add a pointer like this hand to the side of the ...
0
votes
0answers
17 views

Changing the function of a button in java during runtime/ Dynamic UI

So, I am totally new to most of the coding relating to game design but I had a question that I think is fairly straight forward. How do I get a single button to do different things depending on what ...
0
votes
0answers
74 views

UI Objects in World Space with Constant Screen Size (Unity)

I want Info displayed within a Canvas for certain elements in World Space. I want that Canvas hovering over or next to the world elements it contains information about. However, the Canvas should have ...
0
votes
1answer
180 views

RawImage texture change event?

I have a RawImage and an AspectRatioFitter attached to it so I want to change the aspect ratio to fit the image in the texture ...
0
votes
1answer
43 views

In Unity (2017) is there a way to set the buttons used by Input.GetAxis() programatically?

The buttons used for keyboard axis inputs can be set manually via Negative and Positive Button fields for the axis at Edit > Project Settings > Input Manager. However I'd like to make this a user ...
21
votes
9answers
7k views

How to create a user-friendly magic spell system?

I'm designing a small 2D top-down open-world survival-ish game with a magic spell system. The way it works so far: The player receives a "wand" at the beginning of the game As the player encounters ...
0
votes
1answer
108 views

How should I design my score to visually accommodate large numbers?

I am creating a simple punching game that counts the total number of punches dealt. Could you suggest a way for my game to visually accommodate very large numbers (>100000). Currently my wire-frame ...
0
votes
1answer
77 views

Is copying UI and layout of other apps legal?

I would like to develop an Android App for Google Play and I am going to use Facebook and Whatsapp UI as background of the game (as a back-story). I will use icons without copyright to emulate/...
1
vote
1answer
2k views

How to place same canvas on multiple cameras in Unity?

I know how to do It on one, but I don't know how to do it using multiple cameras, 3 of them are important, i want to show the whole UI except for the minimap. I need to change the camera angle on some ...
1
vote
1answer
618 views

How to custom UI Slider with Unity UGUI

I want to use Unity UGUI to custom a slider and the final looking show be like this: And the images I use are: But I found it hard to accomplish: The handle will be screeched and the fill will not ...
1
vote
1answer
67 views

What is the clearest way to present several numbers in a very limited space?

I'm building a mobile incremental game and as, is typical for the genre, I've got a ton of changing values to show to the user. They serve both as a way to show them their progress, but also to help ...
5
votes
1answer
2k views

Render in a imGui Window

How do i render my game scene into an imgui window? I want to get from this: to this :
0
votes
1answer
469 views

Do I have to keep all my UI elements within the safe area defined by the iPhone X?

Suppose this is my game's screen for the iPhone 8: I have 7 blue buttons, and one blue bar at the bottom which is used to display commentary text. I understand that the iPhone X has a safe area. In ...
1
vote
1answer
487 views

Game UI Programming [closed]

I'm looking for recommendation for resources for learning UI Game programming, i'm creating a simple game in C++ and OpenGL but it gonna be UI heavy and i wanna learn how to write a good UI system for ...
0
votes
1answer
149 views

Implementing a scrolling UI in Libgdx

I am using the LibGDX framework. I'm not using Scene2D but I want to implement my own "scrolling UI". This is only what I could think of (see image below): I will make the 2nd camera look at very far ...
0
votes
0answers
79 views

Custom health bar/loading bar

I am trying to create a custom loading bar/health bar. Is there any way to create something like this? https://vimeo.com/232305635 Can you point me in the right direction? Which functions will I ...
0
votes
0answers
40 views

How does Unity Inspector handle values changing during play without any thread-locks?

First of all, I'm a Java coder. Usually, when you write a game, you run it on thread different than the UI one like: ...
2
votes
1answer
966 views

Unity not scrolling when mouse not over object

In Unity I am using a scroll view. It works semi-perfectly (had a lot of problems with it, don't like how the UI system works). The content for my scroll view is a bunch of buttons aligned vertically ...
0
votes
1answer
730 views

Unity accordion UI

I downloaded the accordion from the unity forums and I'm trying to add a button to it. issue is with the vertical layout group. when any UI element is added the layout will automatically go vertical ...
2
votes
0answers
87 views

Unity Custom Inspector Platform dependent property section

I want to make a custom inspector for one of my scripts that builds UI elements at runtime. This requires small changes to the default values depending on what platform I'm targeting. How do I add ...
1
vote
0answers
78 views

Differences between storyboarding for game design vs. web design [closed]

I'm looking to UX and storyboard out a web adventure game. The goal being to have an area to show what the UI/UX would look like (mockups), and ability to add dialog/blurbs to describe the screen. I ...
0
votes
1answer
16 views

Issues with Toggle

hope you're all good.. I'm struggling with a simple toggle for inverting Y axis.. What i have works for my first scene but i'm trying to keep this setting through all scenes, hence why the script ...
3
votes
2answers
3k views

How can I render an OpenGL scene into an ImGui window?

The picture rapresents what i want to achieve. I read, somewhere on the Internet, that you can render the fbo and pass that fbo as a texture to render into the ImGui window. The problem is that I don'...
0
votes
0answers
184 views

How do I make an image follow the mouse position with spacing in Unity

How can I make the UI Image follow the mouse position with a spacing dependent on the players screen? The current logic I have for the UI follow has its spacing correct, and it is fine in a large ...
3
votes
2answers
8k views

How to make curved GUI in Unity?

I'm really new in Unity. I want to make a curved GUI by myself. How would I make one? I'm using Unity 5.6.
1
vote
1answer
502 views

Unity 5 - Manually zooming/scaling in and out of an image with a text layer while still retaining text sharpness when zoomed?

I have a section in my scene where I have an image on a layer, as a child of this layer I have a load of text objects. I need the ability to zoom in and out of the image (it's a technical drawing, so ...
0
votes
1answer
162 views

Creating trading card board layout in libgdx

I wanna make a trading card game using libgdx. I have a general idea about how to implement the server side of the game and the game rules, but I don't know how to design the visual interface of the ...
3
votes
1answer
350 views

Must I display Health and Mana to the player?

I'm thinking of doing one or more of the following: hiding the player's Health hiding the player's Mana hiding the player's Health from other players hiding the player's Mana from other players I ...
1
vote
1answer
2k views

Should I use retained mode or immediate mode

I'm trying to make a opengl wrapper for winforms(.net). Basically you code in gdi+ syntax but it gets rendered for opengl(using glcontrol of opentk). Which mode should I use for rendering ui? It has ...
0
votes
1answer
311 views

Unity 5.5 - Modify image of a button from an array of images via script - Logic Help

Right now i have this: Is a placeholder for what i want to do. This blue circles are images in different buttons, i have a blue image circle for every letter. I have to display the correct letter ...
1
vote
1answer
569 views

Unity Raw Image ui not showing when small

I have some Images online that I download using WWW class and the use as UI elements. So far all of them where working perfectly but now the one I added recently is ...
1
vote
1answer
715 views

How to create UI with multiple panels for multiple resolutions

I am trying to create scene that has multiple panels, but only one is visible. When user clicks on appropriate button a transition is happening: camera moves to the right revealing panel on the right ...
0
votes
1answer
792 views

How to match UI background size with text length in Unity?

I am making an FPS game in which when you are near an item a UI Text appears at the bottom center of the screen indicating the name of the item and the button to pick it up (let's say [E]). It works ...
0
votes
3answers
527 views

Canvas not filling up the whole screen in Unity 5

I am trying to make my canvas auto resize to any screen size. These are my canvas scalar settings: UI mode: change with screen size match height and width reference resolution: 600x800 I looked up ...
0
votes
1answer
93 views

Game Object will NOT stretch across entire content area

I'm loading prefabs into a content area using a content size fitter and vertical layout group. I've tried multiple things to get the loaded prefabs to stretch across the entire content size (including ...
3
votes
4answers
283 views

Should I Have a Ridiculously Easy First Level? [closed]

I am making a game based on a grid and filling in certain squares with certain colors according to some rules. It is level-based, and the difficulty of a level is determined by the size of the grid ...
1
vote
1answer
1k views

Unity fade all UI elements which belong to one Canvas

Like the question describes I want to fade out/in all UI-Elements belonging to a parent canvas. So things I got are : A World-Canvas which contains multiple UI-Items A script which can fade one ...
1
vote
1answer
78 views

How about fitting into gaming industry with Design and Development mindset and seeking for a masters degree? [closed]

Might be the question is a bit weird but that's what I'm focused on and want to discuss about obtaining a masters degree to fulfill my dreams to work as both designer and developer. I work as a ...