Skip to main content
Stack Overflow for Teams is now Stack Internal: See how we’re powering the human intelligence layer of enterprise AI. Read more >
Filter by
Sorted by
Tagged with
-1 votes
1 answer
160 views

I am using Unity version 6000.0.34f1 and I'm trying to create a World Space UI with the UI Toolkit. According to the official Unity 6 documentation, this should be straightforward: "To create a ...
chynarich's user avatar
1 vote
2 answers
37 views

Here is an example, the scale of the child RectTransform is 3, which caused 3 of the 4 corners to lose alignment. Can this be enforced without wasting extra CPU cycles? This problem is encountered ...
tribbloid's user avatar
  • 3,992
0 votes
0 answers
23 views

Assuming that I have a custom LayoutGroup implmentation: public class DummyLayout : LayoutGroup, ILayoutSelfController { protected override void OnEnable() { base....
tribbloid's user avatar
  • 3,992
-4 votes
1 answer
169 views

I'm building a 2D level editor scene in Unity for my game, which includes custom width and height. Setup I have two text inputs where the user enters width and height. Based on those inputs, I ...
bpGame's user avatar
  • 1
0 votes
1 answer
129 views

I am using a MultiColumnListView in Unity's UI Toolkit. I would like to change the appearance of the colum header cells. Right now this is how they look like. I would like to remove the grey ...
VidyaNeedsBetterTesting's user avatar
0 votes
0 answers
115 views

I'm developing a node-based editor tool in Unity with pure UIToolkit (no existing graph frameworks). The premise is that the graph needs to be scene-based, so it's a Monobehaviour, rather than a ...
Martin's user avatar
  • 67
1 vote
1 answer
528 views

The Built-in eventsystem for unity UI keeps trying to access a button after I have used Destroy() on its gameobject. it stops and doesn't start again when I pause but will continue every frame ...
Liambro64's user avatar
1 vote
1 answer
88 views

I am trying to find the active InputField. In the code I create InputFields and add them to the list, in the list they are added, but I can't get them in isFocused. The main task is to compare the ...
Grimuar's user avatar
  • 20
-1 votes
2 answers
140 views

So, if I press the button and hold it, the button will "wait" until I get my MouseCursor or Finger of the button and just then the button triggers the code. How to make so that the code will ...
Chris der Hov's user avatar
-3 votes
1 answer
65 views

I am trying to develop a game in Unity. A respawn button is displayed on the GameOver screen. But it does not respond. Unity interface with the button Here is the image of the button in the Inspector ...
Paddy's user avatar
  • 1
1 vote
0 answers
128 views

I am a beginner in Unity 2D and currently learning how to make simple games. I'm encountering an issue where a white rectangle appears in the game scene. I am unsure of what is causing this and how to ...
Khalifa Alkhatri's user avatar
0 votes
1 answer
64 views

When I change the resolution, the camera gets closer to the center and many objects are simply not visible.How can I fix this?screen with wrong sizes. correct size my gamesame problem on other scenes. ...
Desespere's user avatar
-2 votes
2 answers
490 views

GameObject newButton = Instantiate(_buttonPrefab, _parentPrefab); Button buttonOnClick = newButton.GetComponent<Button>(); buttonOnClick.onClick.AddListener(Testttttssad); For some reason, ...
Gleb Boiko's user avatar
0 votes
2 answers
602 views

I have a problem with my unity project, when I insert a UI Canva and a button with text, the text not showed up, I tried to increase the font size, the opacity, change the text color, every possible ...
Med Balali's user avatar
2 votes
1 answer
373 views

I'm working on a personal project to make a website with the Unity UGUI. I'm using a Scrollview which has a vertical layout group and a Content fitter component. It has several containers as children, ...
yhana972's user avatar
0 votes
2 answers
710 views

Variables not showing on inspector when I extend Unity UI button. I wanted to add some extra functionality to unity button, and to do this i just extaned this button and wanted to have 2 fields. But ...
Indrit Vaka's user avatar
0 votes
1 answer
529 views

l am using Unity UI Toolkit and New Input System. My game logic is when l press left mouse button, object should start move. Also there is a power-up button in view, l created with UI Toolkit and ...
Turxan Dünya's user avatar
0 votes
0 answers
73 views

While Text Mesh Pro, which I use in my Unity program, appears on the Editor Screen without any problems, when I build the apk and open it on my Android Device, the texts do not appear. Editor Screen ...
Kerem Kaplan's user avatar
0 votes
2 answers
216 views

I have some 3D objects, if I click on them then something happens. I implemented this using Physics ray casting like this Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition); ...
Akshar's user avatar
  • 78
0 votes
1 answer
158 views

I am creating an AR medical encyclopedia as a starter project on Unity. However, I am unable to find any solutions for how I can add clickable buttons over a 3D model that are anchored to the model. ...
MANSHA RAJKUMAR's user avatar
0 votes
1 answer
110 views

My existing code for this task is: private VisualElement _creditSection; private void Start() { var rootElement = uiDocument.rootVisualElement; _creditSection = ...
Mfa Xyz's user avatar
  • 35
1 vote
0 answers
251 views

GOAL I imported Meta XR Integration package and Meta XR Simulator. I want to follow and head-lock UI to Headset Camera. CONTENT I use Built-in and Unity2022.3.8f1. I am using Meta XR Integration 57.0. ...
Philip John's user avatar
-1 votes
1 answer
34 views

here is the code The part which is commented here is giving error when i play . it isnot assigning in the ui tmp . I tried using non canvas prefab for Cards , but i want it in ui only. Sorry for not ...
Frippism's user avatar
0 votes
1 answer
483 views

I'm working on the 2022.3.5f1 version of unity and its onClick event for buttons ask for parameters that I'm not familiar with. Could someone explain what I'm supposed to input for target assembly, ...
master kirbys's user avatar
0 votes
2 answers
570 views

I don't want players to be able to click a button twice, so I'm trying to set the 'interactable' property of buttons to false when a player clicks on them. I don't want to individually define button ...
Fahrettin özkan's user avatar
-1 votes
1 answer
190 views

I need to take a screenshot of the screen and put it as a sprite in the image component. I do it with this code: public Texture2D TakeScreenshot() { Texture2D texture = new Texture2D(Screen.width, ...
Leonid's user avatar
  • 1
1 vote
3 answers
964 views

I am trying to create a vertically scrollable UI element that stretches horizontally, with children that also stretch horizontally. The children are instantiated prefabs. The prefab root object is set ...
Nota Programmer's user avatar
1 vote
1 answer
539 views

I have an odd problem no one else seems to have encountered. I have some buttons in my game that do respond to clicks by changing color, but the functions added to the list of OnClick events do not ...
Dollarslice's user avatar
  • 10.4k
0 votes
1 answer
717 views

So I'm having an issue where Unity UI buttons are not being highlighted nor animated when the raycast is over them. It works fine in the Unity editor, but not when I build the apk to the quest 2. The ...
Alejandro Jimenez's user avatar
0 votes
1 answer
625 views

I am trying to select the highlighted element using the selector shown in the search box: #StateEvent > * > .unity-foldout__input But it doesn't seem to be able to find it - no search results ...
asker's user avatar
  • 346
-1 votes
1 answer
162 views

I tried to change it to Canvas, but it's still not going to the next scene/canvas. I already added the RoomList in the building settings but still not going there. It's not reaching the StartCoroutine(...
Swain's user avatar
  • 1
0 votes
0 answers
390 views

I am having some problems with canvases and UI elements in Unity 2d. I am trying to use a single scene, with multiple "screens" that will always be active and I just move the camera location ...
user2779315's user avatar
1 vote
0 answers
100 views

i know this might be a lot to ask, but unfortunately i can not get the following UI working in Unity. I experimented a lot with Content Size Fitter, Vertical and Horizontal Layout Groups and Layout ...
AndreasSt's user avatar
  • 183
1 vote
0 answers
511 views

Situation On old and worn-out controllers, sometimes pressing down a button a single time will result in multiple button presses. I'm aware of ways to handle that issue when it comes to my own game ...
johnfernow's user avatar
0 votes
0 answers
79 views

SOLVED - 2 copies of the script in unity I'm working on UI that gets information from a web socket. I have run into a problem where code_object (and code_text) keeps switching from being assigned and ...
FoolFl1ckz's user avatar
1 vote
0 answers
186 views

i working on a save system for my game. Basically, i was using JsonUtilty for saving system but it didn't help me because i want to save a list with ScriptableObjects. I was saving and loading ...
hidro0x's user avatar
  • 11
0 votes
2 answers
233 views

I have three buttons on a pause menu. Resume is set as First Selected in the Event Manager. Options is in the middle, and Quit to Main Menu is last. If I press down arrow or D-pad down on a controller,...
Michael Thompson's user avatar
-3 votes
2 answers
112 views

I'm working on a unity project and need to convert an string input by the user to ASCII binary. To my knowledge this is the way to do that: using System.Collections; using System.Collections.Generic; ...
Oliver Kolodner's user avatar
0 votes
1 answer
134 views

I am developing an AR Measuring tool where I'm placing my measuring point disk on the AR Plane. I have added an Undo and Redo button for this, as there is a chance one removes the last placed point ...
P D's user avatar
  • 45
-1 votes
1 answer
126 views

I'm making a memory puzzle in unity, but I get an error when I click on a button. It is supposed to show me an image that is tied to the button, then I click another button. If it is the same thing, ...
MyNameIsToday's user avatar
1 vote
1 answer
418 views

I need your information! I'm cloning the game called Toon Blast to improve myself. In the picture below, you can see 2 screenshots from the original game on the left, and 2 screenshots from my own ...
Hasan Ozen's user avatar
0 votes
1 answer
101 views

I am coding for a scene where QR Code is generated according to the last position I'm touching on the screen but when I touch the button for generating the code, the last position becomes my button. ...
P D's user avatar
  • 45
0 votes
2 answers
3k views

I'm trying to make a toolbar system in my game but I can’t find a ways to detect a mouse click on a UI element only or to detect if it's over it, the regular detect system isn’t working. I tried: void ...
Dominic Muldoon's user avatar
-1 votes
3 answers
2k views

I'm working on my game and I want to add an inventory type system, when I added the panel it was a little transparent while the one in the video was watching was not. I didn’t see any setting for ...
Dominic Muldoon's user avatar
-1 votes
1 answer
198 views

I have UI of a gun that I keep in the right-bottom of the screen, and properly stays there when i run in edit mode, but for some reason when i build it, it snaps to the left side. I have the UI set to ...
SouthpawDev's user avatar
1 vote
1 answer
453 views

My goal is to draw simple, colored meshes on a Canvas in Unity. I set up a Canvas and chose Render Mode World Space. I then added a GameObject, set its RectTransform, added a CanvasRenderer (later ...
ZoKi Mo's user avatar
  • 51
0 votes
0 answers
926 views

I'm finding myself inputting some nasty bits of hard-coded sprite asset string references in my code like this: [SerializeField] TMP_Text _purchaseLabel; private void UpdateState() { ...
Dror's user avatar
  • 2,588
-1 votes
1 answer
450 views

I am using unity grid layout component but not working correctly. I am using unity grid layout component grid layout values. When I drag and drop my prefab as a child of grid layout object is ...
Ufuk Ardıç's user avatar
-2 votes
1 answer
197 views

I know that this question is asked many times but still I'm struggling to understand this. I have below json to c# converted class. // Root myDeserializedClass = JsonConvert.DeserializeObject<Root&...
Omkar P's user avatar
  • 29
0 votes
0 answers
122 views

I've build simple chat UI where instead of text input you have options for my game. And it works. Kind of. The problem is when adding elements instead of just shrinking already existing elements to ...
everr's user avatar
  • 28

1
2 3 4 5