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 [gui]

Graphical User Interface. A term used to describe the tools available to the player to interact with the game.

0
votes
0answers
32 views

Use SVG or bitmap images? [on hold]

currently I'm creating a GUI for my first game in Unity and I'd like to know if I should use SVG-files instead of bitmap images. The reason why I ask is Unity seems to have some kind of SVG importer (...
0
votes
1answer
21 views

Make Unity GUI for mobile phones only?

I'm using Unity and I want to make a responsive GUI for portrait resolution only. Now I'd like to know if this is a good or bad idea when I force the user to play my game in portrait mode only. Shall ...
0
votes
1answer
27 views

Unity - Button still interactable even when interactable is set to false

my button can still be pressed in-game even if I set it to button.interactable = false; What I'm trying to achieve is when the Panel ...
0
votes
0answers
22 views

Blurry text in Unity UI at default scale

I'm working on a VR (GoogleVR Cardboard) game, and need to include UI elements within it. Ever since I first learned how to use Unity's UI elements, I've been limping around what seems to be a major ...
0
votes
1answer
16 views

Contracting Unity EditorWindow UI

How can I make scalable(contracting) EditorWindow UI(not in-game UI) like in inspector example?
0
votes
1answer
17 views

Trying to mix and mingle 3d physics with the Unity UI

I have recently created a drag drop system where I drag stuff from a UI menu and then drop it to another UI. The child of the draggable UI object is a 3d model. I have attached box collider and ...
0
votes
0answers
27 views

UI Animation with shader move weakly

I want to animate UGUI vertex with shader like this: ...
0
votes
1answer
17 views

“SetSelectedGameobject” only highlights button on second try (Unity 2017.3)

To support the use of a gamepad in the options menu I set SetSelectedGameObject and firstSelectedGameObject (which doesn't seem ...
0
votes
2answers
68 views

How can I make the cursor avoid something completely?

I wrote some code for a UI button that causes the mouse to avoid it. I realize this is kind of a weird thing to do in a game design-wise, but this is a really weird game. I need a button that is not ...
2
votes
0answers
34 views

Quest UI Display in Unity 2D

I have this quest manager script where I store all my quests for easy duplication. I'm adding a feature that gives the player the option to see his/her current to-do quest. The first thing I ...
0
votes
0answers
22 views

Laying out UI objects in a grid on screen

I'm creating a word game in Unity and really having a hard time understanding the screen/camera concepts on 2D. Basically there will be something like a header where the score of the user and some ...
1
vote
1answer
39 views

Blurry UI when using Screen Space Camera

I am using Screen-Space Camera as a render mode on canvas but the Textmeshpro text and other UI elements are looking blurry around edges. I think it might be due to canvas scaler setting. After ...
0
votes
0answers
22 views

Radial Progress Bar/loading dial vanished?

I've recently transferred my game over after downloading the latest version of Unity (from 5.3.5 to 2018.2) and I noticed something pretty odd with the loading screen. In the loading screen, I have a ...
0
votes
0answers
32 views

Set a slider's default position from PlayerPrefs value

I have a volume slider that i'm using to set the volume variable for my other scenes. The function i'm invoking on the slider value changed is the following: ...
0
votes
0answers
31 views

Dynamic width panel

I have some issue with my UI when I change screen's width. I have two panels, which named Left Panel and Right Panel. Each has top left/right pivot point. Above screenshot was captured with 1280x800 ...
0
votes
0answers
67 views

Overcoming the 64k vertices limitation in an InputField

I tried pasting Jane Austen's Emma from the Gutenberg Project into an InputField (only the actual book, not what's before and after it), which has no character limitation at all (all settings are the ...
0
votes
1answer
80 views

Does a successful attempt count as an attempt?

I'm writing a video game and I'd like to know if I should include the "successful" attempt in the count of "total attempts". For instance, in a clay shooting game, if the player needs four shots ...
0
votes
2answers
112 views

Unity 3d texture animated round circular bar

I'm struggling to create a circular bar with an animated texture and a round cap end. What I would like to create is implemented in the Unity game Subnautica - the bottom left bar. So here is the HUD ...
0
votes
1answer
21 views

Unable to add button in Unity

I am wanting to add a button to my scene in order to mute/unmute music. I can add the button to my scene, but it's not appearing on the UI. I can't see it anywhere, not on the scene nor the game ...
0
votes
1answer
35 views

How to clip what is outside scroll view when using a custom UI element?

I have created a custom UI element (that use CanvasRenderer). Here is code : ...
0
votes
1answer
36 views

Trigger the button's onclick after checking that the cursor has been on it for some time

I would like to have the mouse hover/click the button for a fixed amount of time (5 seconds) before triggering the onclick method, it can click only after they have ...
2
votes
0answers
177 views

Create a curved UI

I am new and Unity and I want to do a curved UI as if I project a canvas on a cylinder, a bit like this : picture Thing is, it is not that easy. I found this question and answer, but didn't manage to ...
0
votes
0answers
58 views

Unity WorldToViewportPoint not giving correct results

I have a script that places an UI element on the place where a 3d object is in 3d space. I do this in the following way: ...
1
vote
0answers
37 views

How can I render 3d objects over uGUI?

I have a scene with 3d objects but need uGUI as background. How can I achieve this?
0
votes
0answers
27 views

Player name / health bars in scenekit

i'm working on a game right now in SceneKit and swift. it's a multiplayer game with the camera fixed in an overhead / isometric view. I need to now add health bars, player names etc attached to the ...
0
votes
1answer
17 views

jMonkeyEngine ignores keyboard input

Created a game login form using the Nifty GUI. The interface reacts to the movement and clicking of the mouse, but ignores the input in the text fields. Whether the program is looking for a click ...
2
votes
1answer
71 views

Decouple GUI from Logic

I don't have an educational background in the programming-world; however, I've been working on a programm in my spare time for the last two years. I'm currently struggling with how to decouple the ...
2
votes
0answers
89 views

Why doesn't the Camera.pixel(Height/Width) match the Canvas size?

I am making an app that has a custom viewport Rect like so: When I check the sizes of this viewport rectangle in pixels with Camera.pixelHeight; Camera.pixelWidth,...
0
votes
0answers
15 views

Unity - Text/TextMeshPro not rendered propery when far

Hi guys I noticed that the textmeshpro Im using is not rendered properly when I am far a little bit, what is the cause of this? It is not readable as the L.A. Lakers Merchandise INC Text
0
votes
1answer
59 views

Unity - Raw Image Size scaled to Photoshop

I'm just a beginner in Unity, so basically, I want to find out the exact measurement unity of the raw image so that I can now design in photoshop. I tried in Pixels in photoshop but when I import it ...
0
votes
0answers
76 views

2.5D UI, perspecitve view, distort objects by angle but not position

Instead of thousand words, a few pictures to explain what I want to achieve How do I get the merit of UI objects rotation in perspective projection, but ignore the position of an object(as in Overlay ...
0
votes
0answers
17 views

Unity: Adding Panel to Dropdown messes with height

I created this Dropdown menu in Unity 2017.3.1f1 using the standard "Dropdown": Hierarchy: Instead of the Template being the Dropdown's direct child there's a TemplatePanel that is the parent of ...
1
vote
1answer
36 views

My Canvas has an image which I am using for my background but it is blocking my Camera from seeing my Game Scene

So I am not entirely sure how to explain this as I have not had any luck searching online and I'm sure this is a simple problem but I'm being stupid and can't see it. I have a Canvas which is for my ...
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 ...
1
vote
1answer
46 views

Unity - UI - Raw Image with Texture becomes Smaller after Build

I am a beginner in the game development world, I have just one quick problem with the UI, as you can see during the Unity Player, the UI (Raw Image w/ Texture) is normal in size but when I build my ...
0
votes
1answer
24 views

Use IPointerEnterHandler with bool function?

Im trying to use mouse pointer to detect any UI element on my canvas. when pointer enter any UI element, UI_active set true, else UI_active set false. Here is my script: ...
1
vote
1answer
52 views

How to create button prompts for interactable objects in Unity?

I have a class of objects tagged as interactables that my player can interact with when within range. When my player is near them, I want to display a button ...
0
votes
0answers
37 views

how can i make a text selector on touch move (like word cookies game)

i want to simulate "touch to select" in android studio (like the following picture) if Anyone has an idea please help me. i have a Constraint Layout that contains 25 Buttons So I place the button ...
0
votes
1answer
22 views

make a unified image out of many sprites in unity

i made a customization character system that it has a seperate image UI for every part f body like eyes, hat, ears and... now i want to make a unified texture out of it to be able to save it as an ...
1
vote
1answer
139 views

ReorderableList in Unity with Enums

I'm trying to setup a simple ReorderableList in Unity 2017.3 for a list of enums. Adding items workes fine but selecting, dragging and deleting items from the list does not (see gif). Here is my code:...
0
votes
0answers
55 views

Unity. Scroll view, scroll to item in scroll view by script

I have a Scroll view on Unity UI with lots of items on it. Each of them has a title. I have created an alphabet for navigation in scroll view items. For example, if I press "J" letter on alphabet I ...
0
votes
1answer
96 views

Unity. Input in function for UI button OnClick

I am trying to create multiple selections for some items on my UI. To perform multiple selections of items I want a user to hold left control button. But then I add ...
0
votes
0answers
19 views

How to make Canvas Unit/ Unity Units consistent size.

I'm making an application within unity that leans heavily on UI but whenever I create new UI Elements they appear huge and I have to make a lot of logical concessions to get it to look normal. is ...
0
votes
1answer
66 views

How do I port a game which uses print-output to pygame font rendering with the least amount of work?

I've been working on a text based RPG. It's pretty simple, I'm not very experienced with Python, or any other language for that matter. Edit: For context, I recently posted this question: Python 3: ...
0
votes
1answer
158 views

Python 3: How can I make my Text-based game windowed?

I've been making a text-based RPG in Python, and I'm a bit lost in transitioning from a console to a window. I'm not trying to do anything fancy (I think). I'd like my text to display normally, as it ...
0
votes
1answer
35 views

When is transform width in code not equal to the transform width in inspector?

I've come across a strange case in Unity's UI where the width of a RectTransform isn't the same as what is being reported. I have a transform which is 50 by 50 with no scaling, it is a root object of ...
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
24 views

[Unity]: Make one button highlight color activated when pointing at another button in same location

I have two buttons. One is a play button. Another is used as a tint for a background so when I am pointing at play button, the background should change its tint. Problem is when I point at play ...
0
votes
1answer
61 views

LWJGL 2 GUI/Text

I'm currently developing a 3D plane simulator for my bachelor thesis. We've written the engine in LWJGL. We have to provide a GUI, to display some info about the plane that is flying. Like speed, ...