Hello
I’m currently trying to reproduce something working in unity version 2021.3.9f1, in the new version 2023.2.11f1.
I try to override attributes of an custom element inside a template (The template are Card.uxml, and the attributes trying to be override are inside CardPatcher element)
I’m currently not able to override attributes of template n < -1 (I can override direct elements of an instantiated template, but i cannot override attributes of an sub/children template inside an instantiate template)
You can see the issue in the screenshots.
In my sample :
- I have an instante of Card.uxml template directly inside my current UXML
- I have an instante of ButtonCard.uxml template directly inside my current UXML (ButtonCard are just a button with an instante Card.uxml of template inside it)
Result : In my direct instante of Card.uxml i can override attributes of my CardPatcher BUT i cannot do the same thing for the Card.uxml inside the ButtonCard.uxml instante.
Can you give me information about this regression ? And if it’s a normal issue or if it’s gonna to be fix ?
Thanks
PS : I know there are a limitation in the 2021.3.9f1 about this cas. Indeed if the override element are present a multiple time inside a template (so many element with the same name) all elements are override with the same value.