231 questions
0
votes
0
answers
26
views
Can't select a TextMeshPro Input Field on ChromeOS builds
I have a TextMeshPro Input Field component that works fine in the editor. However, when building to a Chromebook, if I select it, it immediately deselects itself and I am not able to type in it (at ...
-1
votes
1
answer
178
views
How to set UI Toolkit to World Space in Unity 6? 'Render Mode' option is missing in Panel Settings
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 ...
1
vote
2
answers
38
views
In Unity Engine, if a child RectTransform has a different scale to its parent RectTransform, how to align their four corners?
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 ...
0
votes
0
answers
27
views
In Unity UI (uGUI), how to prevent the parent GameObject of a custom LayoutGroup from collapsing to size 0?
Assuming that I have a custom LayoutGroup implmentation:
public class DummyLayout : LayoutGroup, ILayoutSelfController
{
protected override void OnEnable()
{
base....
-4
votes
1
answer
189
views
Unity ScrollView — Vertical scrollbar always visible, horizontal scrollbar never works
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 ...
0
votes
1
answer
134
views
Change the column header style in Unity's UI Toolkit MultiColumnListView
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 ...
0
votes
0
answers
120
views
Performance vs flexibility in a Unity Node Graph Editor Tool
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 ...
1
vote
1
answer
544
views
MissingReferenceException: The object of type 'UnityEngine.GameObject' has been destroyed but you are still trying to access it from EventSystem Unity
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 ...
1
vote
1
answer
90
views
How to find active InputField, isFocused does not work
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 ...
-1
votes
2
answers
146
views
How to make Buttons interact immediately Unity UI?
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 ...
-3
votes
1
answer
72
views
The Unity button does not respond
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
...
1
vote
0
answers
130
views
How to Remove White Rectangle in Unity 2D Game Scene?
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 ...
0
votes
1
answer
64
views
Scale Background(SpriteRenderer) C#,Unity
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.
...
-2
votes
2
answers
494
views
'Button' does not contain a definition for 'onClick'
GameObject newButton = Instantiate(_buttonPrefab, _parentPrefab);
Button buttonOnClick = newButton.GetComponent<Button>();
buttonOnClick.onClick.AddListener(Testttttssad);
For some reason, ...
0
votes
2
answers
616
views
Unity button text not displayed
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 ...