Questions tagged [ui-toolkit]
The ui-toolkit tag has no summary.
11 questions
0
votes
0
answers
8
views
UI Toolkit px size different from the game view
I set my game viewport to QHD and my UI Builder viewport to match game view. Yet in my UI Builder the window is nicely scaled within bounds, and in game view it is waaay too big. How can I make them ...
1
vote
1
answer
254
views
Unity UI toolkit button callbacks don't work if I disable the UI document and then enable it again
I have a camera setup and I want to display a UI on it. I got a basic UI using UI toolkit shown below:
So I have a keyboard button setup so that when the button is pressed a boolean toggles and turns ...
0
votes
0
answers
35
views
How to check if StyleBackground is set?
I want to implement some lazy initialization of a property of type StyleBackground like this:
...
0
votes
0
answers
42
views
UI Toolkit event doesn't let me finish writing the value
I use an integer field to indicate the value of the wanted year and I set a maximum and minimum limit for it and I wanted a function to be called when the wanted year value changes to display the ...
1
vote
1
answer
60
views
Do editor scripts impact game performance?
Do Editor scripts or custom editor windows with UIToolkit have an effect on game or engine performance? Even after build?
Do they get built with the game when exporting it?
0
votes
1
answer
59
views
How to get value of transitionDuration in C# for Unity UI Toolkit
My existing code for this task is:
...
0
votes
1
answer
121
views
UIElement button does not work when clicked
I have a small issue with my UI. Whenever I click a button on my pause menu ui nothing happens even when I hover over the buttons. However, in my main menu scene, the UI works without any problems. ...
1
vote
2
answers
1k
views
How can I override the footer buttons in Unity's UI Toolkit ListView?
In the new UI Toolkit that is shipped with Unity 2021+ there's a ListView component that can be added using the UI Builder, which has an option to enable the footer buttons.
in UXML:
...
1
vote
2
answers
796
views
How can I right-align elements in Unity's UI Toolkit scroll view?
I've tried a basic google search and am still having trouble with this one.
Unity encourages the use of UI Toolkit at this point, as opposed to their old system, so that's what I'm going with; I have ...
1
vote
1
answer
957
views
Is it possible to keep a prefab of a UI element with UI Toolkit?
I'm digging into Unity's new UI Toolkit, and so far I like it a lot; but there are a few things bugging me about it.
I have a dynamic list in my UI which keeps track of way point paths, and it changes ...
0
votes
0
answers
85
views
Desynchronizing MonoBehavior's "Update" from the overall app or UI Toolkit graphic output rendering in Unity?
Is it possible to desynchronize Application.targetFrameRate and Monobehavior's Update() from the graphics output rendering rate ...