Modifying UI Element Properties in Script

Hey all.
How do you set various UI element properties in a c sharp script?
For example, how do you change the flex direction of a visual element after creating it?
Thanks in advance.

take a look at UQuery first: Unity - Manual: Find visual elements with UQuery once you found your element you can change everything bu code.

Thanks. I can find elements, and discovered that you can use .layout or .style to change certain things, which answers my question mostly I think. Do you know if all the properties are available to change via code? Such as the flex direction? Either it isn’t changeable via code or I just don’t know the exact syntax or whatever to change it.

the best advice i can give you is take a look at the docs for specifics. They are also a few tutorials on youtube to hel you out.