Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I'd like to listen to orientation change events, so for example my UI layout or the components themselves can be changed.
All I've found is that I should check the value of ...
When a spell is on cooldown I display a "unfilling" black bar over the spell GUI until the cooldown is reached. Problem is when i have more than one second of cooldown the scale of the "...
How do I count how many diamonds my player has collected in my 3d world
What I need to do is to make a script which will update my text ui when the player collides with a diamond but I do not know how ...
In my inventory system I want to be able to drag and drop items into inventory slots.
I managed to make it work, but only in a weird way:
When the player starts dragging, it picks up the item and it ...
I've been trying to research on this topic for quite a while and found barely any useful information.
What I want to achieve:
Replicating a scrollable menu navigation in Unity, like shown here.
It ...
I would just like to know how to add buttons in roblox studio because when I play roblox and see all those great games with buttons that I can click! How do I make a button, and how do I make it work?
I have a UI panel with a scollrect inside, which I fill dynamically. It can only be moved vertically.
When filling this scollrect, the content jumps up and down for one frame, creating a weird look. ...
Hello I would like to make a curved healthbar (like if it is drawn on a cylinder). See the spatial UI element left to the shoulder of the character on this photo for what I mean.
There is a main ...
My character jumps when I press the right side of screen. The pause button is alsp in the top right corner. So when I press that button, the right side script always triggers and I don't want that to ...
I have been trying to learn about GUI frontends for Nethack, but I have been unable to determine how do they get the game information (map, inventory, player info, enemy locations, etc) from Nethack? ...
My goal is to go back and forth between a series of animations by clicking left and right arrow UI buttons. I wrote this C# script and the "next" button (which executes ...
If I leave my imagebuttons' width and height alone I get larger buttons than I'd like:
radio.setX(wu*35);
radio.setY(hu*20);
When I replace/add to the ...
Are there any standard formats that can be used as the source material for game texts (i.e. subtitles, UI texts, etc.)? I can think of the following constraints:
at least some style effects (e.g. ...
I am making a game in roblox. and in that game i need a Main-menu. and the main-menu gui is basically transparent and there is more guis behind in another ScreenGui ...
I'm making a game in Unity for my game dev course in uni. I hope the question isn't too confusing but I have bolded sort of like a TLDR at the bottom.
My level currently has a pregame UI panel, to set ...
I would like to structure my gui into different panels.
so to help keep my code managable i thought it might be a good idea to have a main panel. with its own manager and then a secondary panel with ...
I'm looking for an alternative to UI Builder.
Ideally I'd like to have basically a Chromium instance atop Unity3D which would have its JS calls somehow land in the C# (maybe in the "Update" ...
I was following a tutorial on how to create a dialogue Box in Unity, and in one part of the tutorial the tutor imports UnityEngine.UI and creates an object of type <...
I would like to implement a simple game logic engine that is agnostic to the rendering system, but I don't know how to do that, really... so I would like to have advise and know the state of the art!
...
I have three buttons in my menu. What I need to do is when I click on first button it becomes the first element in my list. Now, when I keep mouse button down and move it to the second button it ...
I want to change the Min Width and Min Height configured in my LayoutElement so that they scale proportionate to the screen size.
For example, at a screen resolution of 1920x1080, the min width is 300....
A lot of my play-testers miss the tutorial notifications in my game. The notifications fade into the screen and fade out after the player progresses away from where the tutorial was relevant. I've ...
My problem:
Basically the units, units meaning soldiers or vehicles, influence the frontline by moving into the opponents territory (See example image).
I'm trying to understand where to even start ...
I am working on my first project in Unity using C# and I am currently trying to design a menu system that does the following sequence of events when a user clicks a button:
Button does some effect ...
How do you set up Unity's UI Layout system so that the chat bubble changes in size automatically based on the length of the text? What's the right use of Layout and Content Size Fitter elements?
How ...
I have a working drag and drop script for gameobjects within a canvas panel.
I would like to prevent the panels children from being dragged outside of the panel.
I have a somewhat working (although ...
I am using unity's scrollview.
I want to disable the vertical scrollbar and i want the viewport to resize vertically depending on the content.
Too confusing to explain with word so i have created the ...
How can I add word wrap to the editor textarea? I'm trying to mimic the [TextArea] attribute (word wrap, automatically increase height when needed)
For some reason GUILayout.TextArea() works fine, but ...
I want to develop a little tool to help visualize fireworks before using them in a show in Unity where the user can set several parameters and gets a preview of the firework effect in a preview window....
I have this weird issue, which I am not able to fix. This is my third attempt and I need some help. Basically I have a hover element which spawns when I hover over a gameobject. The height of the ...
Today I learned some cool tricks about sizing containers and its children, I mainly using this, because I need to build some forms.
But now... It is some preffered way how to handle forms? Or some ...
I'm looking for a way to visually edit a libGDX scene. Some way to quickly build an example of a scene using a provided skin and default components, visually, and then export this definition to be ...
I am making a rhythm game in Unity. I have been using Transform.Translate for moving images on a canvas as the music notes. However, I cannot consistently use this method on different screen widths. ...
I'm making a game where the player needs to select a object out of three and navigates between then with the arrows of the keyboard, and I'm using toggles to make this system.
But the problem is that ...
I don't understand, am I missing something?
I have hundreds of moving images on screen that only need to render and do their logic/physics when they are in the canvas.
Otherwise they can just ...
Take this image for example, the game is called Realm of the mad god, and it has this side panel filling the whole screen height with the player info.
To reproduce it, Is there any way to make the ...
I am trying to make a health system where hearts display how much health you have. On each heart, I have an Image component. I am trying to control what source image the Image component uses from a ...
unity button tint allows me to give a few colors to different modes of the button: normal, highlighted, pressed, and selected colors.
I want to fully disable the "selected" mode color, since whenever ...
I tried the sprite's import settings with point filtering, with billinear filtering, I also tried changing my canvas' UI Scale mode to Screen Space - Camera, but nothing seems to fix it.
I also tried ...
I am just started with Unity and C#. I need in my work to do rectangle on a scene. I have a 3D scene, say some warehouse and there is an object. Camera is animated and moving towards the object. Is it ...
I'm trying to implement a simple cutscene system in my Unity game, preferably one that allows cutscenes to play at the start and end of each of the levels.
What I was imagining was pretty similar to ...
I move a
28x42 Image,
in a 11x17 RectTransform
in Update,
with anti-aliasing on,
without compression,
with point filtering.
But sadly its visuals aren't smooth, it's flickery, even in a standalone ...
I am working on a dialogue system and while the text part works, the UI for the Dialogue Boxes does not.
When I click on the Continue button, I want the script to go down the Elements [] and use the ...
I have this Unity UI Image placeholder and here is the snapshot
As you can see its edges are not smooth. First I thought this is editor problem but after making the build it remains the same. What i ...
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.