In world progress bar on hexagons in grid
Hi guys, I have a problem in Unity. I want to create a progress bar at in world object - hex. You can see the hexes at the image attached. There are many hexes in my scene (about 100). I want to the...
View ArticleOnGUI - Prefab instances,
Hi, I am using onGUI to draw a target box around a clicked flying target. My problem is that there are multiple prefab instances using the same code, so when I click on one target it does get a target...
View ArticleONGUI() - 'Ghost' Boxes
Hi, I'm new to onGui() routines. I'm trying to click on a flying target and draw a target box around it. I've managed this with the rect function in OnGui() procedure. However my prefab shooters all...
View ArticleUnity Editor workspace buttons missing icons
Hi In my Unity Editor, workspace buttons (top toolbar and sceneview) do not show icons: ![alt text][1] [1]: /storage/temp/194637-untitled-1.png How do I fix this issue? My OS: Windows 7 Unity Editor:...
View ArticleHow do you account for Canvas Scaler match width or height mode set to 0.5...
Hi, **Short description** My image doesn't go where I click. Here's a video: https://youtu.be/u-xWNVt2LJM **Detailed description** I am trying to put a small white image in the position the mouse...
View ArticleIs there a way to make a Dotted Curved line in Unity for UI?
I saw Line Renderer but my Game Map is on the UI and I need a curved dotted line to connect my levels on the UI map. Is there anything i can do? Or do i have to draw it and then add it...
View ArticleHow to disable/enable UI on key pressed
Hello, I am trying to disable/enable a UI when a key is pressed. I have tried many ways but none have worked. What would be the best way to do this? (Please also say which version of the input system...
View ArticleClick should interact with multiple overlayed UI images
Hi there, I'm making a graphic adventure style game and I have a hierarchy, under a canvas, that looks like this: **ButtonContainer** > *Button1*> *Button2* **OverlayPopup**>...
View ArticleMy Drag Selection is not working!! Need Help for an RTS Game!
Hi, is there anyone that knows why my selection in bounds not working??? The Rect GUI when dragging have displayed but it won't select my units I am using this tutorial: [How To Build an RTS Game][1]...
View ArticleMy gui box will not disappear on keyboard input.
``` bool showConsole = true; string input; private void OnGUI() { if (Input.GetKeyDown(KeyCode.F3)) { showConsole = !showConsole; } { if (!showConsole) {return;} float y = 0f; GUI.Box(new Rect(0, y,...
View ArticleUI Buttons work in editor but not in build
I've made some buttons for my game in Unity, and they work fine while i'm in the editor. However, when I build and run the game, the buttons don't do anything. They highlight and press properly (I have...
View Articlehow to make the pressed letters replace and appear in the (guess the word) game?
The pressed letters are not appearing nor replacing the underscores as it should be doing , how to solve this problem please ? private string[] words =...
View ArticleHow to catch script lifecycle pause event (or something) on window resize...
PS build or Unity Editor window actions: - resize window - mouse down on toolbar buttons (close, collapse, full_screen) ---------- Result: script lifecycle (Update, FixedUpdate ...) paused. How to...
View ArticleAnimator window is broken
I have a problem that when I collapse Animator window by pressing the eye (to hide parameters) the right part of the window is shifted to the left. When I click the eye and open parameters - seems to...
View ArticleHow to make an object move 90 degrees arc, help please
I'm stuck in my game project. I want to explain in the simplest. Imagine there are 4 objects on an imaginary cylinder. Objects are at 90 180 270 360 points. Our environment is 3d. How do I move my...
View Article2d gui, 3d items and iPhone/iPad scaling...
I have a 2d game for mobile with a bunch of 3d stuff in it as well (it's a dice/puzzle game, btw). I've built the game itself using uGUI and then the dice are 3d with physics sim. I'm trying to get my...
View ArticleAssets\Standard Assets\Utility\ForcedReset.cs(5,57): error CS0234: The type...
I am confused please help me. I can't even run my project.
View ArticleURP beginContextRendering called twice
I'm using Unity 2021.3.6f1 (MacOS silicon) and URP Version 12.1.7 - June 30, 2022 I'm registering a delegate with `RenderPipelineManager.beginContextRendering += OnBeginContextRendering;` private void...
View ArticleURP beginContextRendering delegate called twice
I'm using Unity 2021.3.6f1 (MacOS silicon) and URP Version 12.1.7 - June 30, 2022 I'm registering a delegate with `RenderPipelineManager.beginContextRendering += OnBeginContextRendering;` private void...
View ArticleHow to make Fold Attribute by propertyDrawer?
I can make only one line but i want it stick with same fold name using System.Collections; using System.Collections.Generic; using System; using UnityEngine; using UnityEditor; public class...
View Article