#Yes please

1 messages · Page 1 of 1 (latest)

glad remnant
#

Thanks for your help. Just had to boot unity quick

rugged elm
#

Yes. I dont have Unity open so you'll have to share haha.

glad remnant
#

I just created the panel settings file

rugged elm
#

Okay cool. Can you show the Panel settings for UiBuilder and runtime ?

glad remnant
#

No edit no change

rugged elm
#

On UIBuilder on the top right.

glad remnant
rugged elm
#

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 ?

glad remnant
#

Feels like I am about to kick myself

#

..😕

rugged elm
#

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.

glad remnant
#

oh, houow would I use the ui toolkit debugger

#

sorry for the noob qs

rugged elm
#

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

glad remnant
rugged elm
#

Not the right panel settings. At the top left. Select the runtime one. Your's if you prefer

glad remnant
#

ahhhhh

rugged elm
#

:p

glad remnant
#

The future is now

rugged elm
#

Top left you have pick élément. Click on that and select the élément you want to scan

#

Like an item.

glad remnant
#

just like chome dev console

rugged elm
#

Exact

#

Now we can read the property of the élément and understand what is now working well.

glad remnant
#

so I am seeing that the item slot is not taking up the full length of the scrollview

rugged elm
#

Okay. Click on that and you can see why ?

glad remnant
#

Trying to have a look quick

rugged elm
#

Okay. Select the SlotItem

#

SlotRoot

glad remnant
rugged elm
#

And item slot ?

glad remnant
#

very cool

#

I can edit it

rugged elm
#

Yep

glad remnant
#

the width was to wide for the scroll view

#

however now the slot is fitting in but still not centered XD

rugged elm
#

Yes. But dont forget you edit in runtime

#

So you have to write that after in UIBuilder

glad remnant
#

Ya, I assume it does not save

rugged elm
#

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.

glad remnant
#

most probably, I have NO idea what I am doing

#

🤣

rugged elm
#

Hahahah.

glad remnant
#

The tutorials online just are all doing the same thing

rugged elm
#

Yes...

glad remnant
#

and I am tyring to do something very sepcific

rugged elm
#

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

glad remnant
#

Well you have taught me more in 5 min than the past 3 hours of videos I have watched

rugged elm
#

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

glad remnant
#

possibly . I will for sure have a look at it. I appreciate your time . Thank you

rugged elm
#

Thanks ! And feel free if I can help. Have a good day.

glad remnant
#

Yah, I'll struggle on my own for a while and pm you if I have any questions if you don't mind

rugged elm
#

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
}

glad remnant
#

I am a little confused though

rugged elm
#

About ?

glad remnant
#

Check this out

#

Main element that the itemSlots are spawned under soo the Parent

rugged elm
#

Yes. But Uitoolkit can decide to spawn into an other parent.

glad remnant
#

But I need to change the element below it

rugged elm
#

And you cannot change that. Only by code

#

Yes it's USS selector

glad remnant
#

interesting

rugged elm
#

Basically it's CSS

#

Cascading Style Sheet

#

The property cascade into it's Child.

#

That what are selector. Hence why you can overide it

rugged elm
#

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.

glad remnant
#

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!!!

rugged elm
#

Normaly you have e also that on UIBuilder !

glad remnant
#

I am really trying to avoid code unless I need to . Althoguh if it's the only route then sure

rugged elm
#

Yes ! It's not code !