Quantcast
Channel: Questions in topic: "gui"
Browsing all 125 articles
Browse latest View live
↧

Menu in project work wrong with scroll rect

Hello, I have a two copied menus with scroll rect and buttons - first menu works fine, scrolling works correctly and when I drag menu, buttons not pushed. Second works wrong, when start drag menu,...

View Article


Why is my Canvas not appearing?

So I am making a game in Unity, and I have it set up to whenever the game starts you are shown a main menu. Here are three buttons: Play, Options, and Quit. The only button that I have added a function...

View Article


buttons don't work if I use int

int yBody = 0; void OnGUI(){ yBody = 0; InvWindow =GUI.Window (0, InvWindow, InvFunc, "inventory"); } void InvFunc(int windowID){ if (GUI.Button (new Rect (150, 50, 20, 20), "-") ) {//this one works...

View Article

UI Panels are not positioning themselves according to screen size

My UI elements inside my panels are scaling fine with screen size, but the distance between my different panels is not. I have 3 panels in my scene at different relative position which i set at...

View Article

How do disable uGUI/EventSystem selection feature?

If my players only use pointer based input devices (mouse or touch) I don't need the Selectables feature of Unity GUI. Is there a way to disable it? I currently just have an Update method where, if...

View Article


Unity Broken Buttons

Hi, I'm making an idle game where you can buy workers to give you x amount of cash per second. I'd just finished the first worker and it worked fine but when I duplicated all the parts relating to that...

View Article

Prefabs-based UI or dynamical UI in OnGUI() method?,What better UI based on...

What better to use in the interface creating: prefabed blocks of interface with instantiation in Update() or generate Interface dynamically in OnGUI() method using GUI class?

View Article

Prefabs-based UI or dynamical UI in OnGUI() method?,What better UI based on...

What better to use in the interface creating: prefabed blocks of interface with instantiation in Update() or generate Interface dynamically in OnGUI() method using GUI class?

View Article


Unity google drive api

Hello, I am trying to implement Google drive to upload files, and I am having problems with APi. Unity tells me that the api does not exist, even though it is installed in the visualStudio project. And...

View Article


(Bolt) Application variable resetting on scene change

Using Unity 2020.3.7f1 personal and Bolt . I am making a GUI using scene changes, and I made a script to set the time of music to an application variable. After seeing that this didn't work, I went...

View Article

Suddenly getting errors after running playmode : Unable to use a named...

![alt text][1] [1]: /storage/temp/184220-screenshot-2021-07-31-153258.png Hello, I'm fairly new to Unity and just have a simple project going, everything has been working just fine, all the sudden this...

View Article

when do layout group component place their element?

I'm Implementing player's toolbar slots, and they are aligned by horizontal layout group component. ![alt text][1] and I'm trying to place an indicator where the current toolbar slot is, but when I...

View Article

How to get the position of a UI element moving in a scroll Rect

Hello, So, I have a scrollable list of buttons and some image on each of them that I want to disable when the button is outside of the viewport (hidden by a mask). I can't figure how to get the buttons...

View Article


How can I resize an image with drag-and-drop?

Before attempting to post this question here, I have spent the past day trying to create a method of resizing an image for my virtual "OS" desktop. The end goal was for me to have resizable windows,...

View Article

How can I resize an image with drag-and-drop?

Before attempting to post this question here, I have spent the past day trying to create a method of resizing an image for my virtual "OS" desktop. The end goal was for me to have resizable windows,...

View Article


Build completed with a result of failed (can't build my android game)

Hello everyone, I released my game on Google Play a few months ago. After that, I also updated my game twice. I did not work on the game for a month and then I did some changes and wanted to build my...

View Article

Best Asset for UGUI with a data heavy project?

Can anyone recommend an asset that streamlines the process for creating a clean, data heavy UI?,I am working on a Windows strategy game that involves a lot of menus and data. I've looked at the asset...

View Article


Shader distorts 2d texture when selected in "Quad" preview

Hello! This might be a dumb question, but I seem to be having trouble adding a shader to my 2d sprite. Whenever I use the "Quad" option in the main preview window, the sprite gets distorted like this:...

View Article

Shader distorts 2d texture when selected in "Quad" preview"

Hello! This might be a dumb question, but I seem to be having trouble adding a shader to my 2d sprite. Whenever I use the "Quad" option in the main preview window, the sprite gets distorted like this:...

View Article

SVG image in URP is creating white overlays how do i remove it?

Having this issue in build that I don't know how to get rid of. Using SVG assets in UI for icons and borders but they all have this white tint color overlay on them? It's not meant to be like that. I...

View Article
Browsing all 125 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>