#Yes please
1 messages · Page 1 of 1 (latest)
Yes. I dont have Unity open so you'll have to share haha.
I just created the panel settings file
Okay cool. Can you show the Panel settings for UiBuilder and runtime ?
No edit no change
On UIBuilder on the top right.
You should see a small button to click. Which should display runtime or editor If I rember well ?
It's at the top. Really a small line
Okay great.
Now can you show the Panel settings ?
Okay. So you're good it seems.
Haha. Dont worry. I use UITJ for 2 years.
I feel you.
So now. Play your game and debug using the Uitoolkit de bugger.
You should see your page. And be able to scan your page.
No worry haha.
Just play the game. And then. Windows. Uitoolkit. Uitoolkit de bugger.
You should see a similar tool like there's in Web. Where you can put your mose hover your element and preview their spacing etc.
At the top of the de bugger. Select your panel settings. You can also scan editor FYI
Not the right panel settings. At the top left. Select the runtime one. Your's if you prefer
ahhhhh
:p
Top left you have pick élément. Click on that and select the élément you want to scan
Like an item.
just like chome dev console
Exact
Now we can read the property of the élément and understand what is now working well.
so I am seeing that the item slot is not taking up the full length of the scrollview
Okay. Click on that and you can see why ?
And item slot ?
Yep
the width was to wide for the scroll view
however now the slot is fitting in but still not centered XD
Yes. But dont forget you edit in runtime
So you have to write that after in UIBuilder
The issue I your container I think
The ItemSlot.
But yes basically with that. You understand what is going wrong.
Dont forget that Unity provide it's selector.
Hahahah.
The tutorials online just are all doing the same thing
Yes...
and I am tyring to do something very sepcific
I've bren working with it for 2 years
So I understand haha.
But basically. Now you have at least the tool to play with.
Fyi
Well you have taught me more in 5 min than the past 3 hours of videos I have watched
If for exemple you see a selector that Unity provide that you dont like.
Like.
.unity__button
You can write it into your USS file and overide the property.
Maybe Unity is padding padding by itself.
Hahaha. No worry feel free to ping me. For tonight I'm going to bed.
But at least you can débug
possibly . I will for sure have a look at it. I appreciate your time . Thank you
Thanks ! And feel free if I can help. Have a good day.
Yah, I'll struggle on my own for a while and pm you if I have any questions if you don't mind
fixed
Gg !
You can now Just write a selector that does that
Which would be (I cannot read all)
#unity-content-and-ver
{
Flex direction : column
}
I am a little confused though
About ?
Yes. But Uitoolkit can decide to spawn into an other parent.
But I need to change the element below it
interesting
Basically it's CSS
Cascading Style Sheet
The property cascade into it's Child.
That what are selector. Hence why you can overide it
With that.
Again I write it like that.
But create a USS inti your uxml
And our the # above with the promer name.
And put flex direction on the right panel.
SO just so that I understand this correclty:
The UI builder and it's layout is not the layout that appears un runtime. Unity adds visual elements as it wants as childeren and then it spawns my slot into the child visual element that is already a child of a child of the scrollview😂 WTF!!!
Normaly you have e also that on UIBuilder !
I am really trying to avoid code unless I need to . Althoguh if it's the only route then sure