Unity Issue Tracker - Importing a theme through the Inspector allows importing the same theme multiple times
Closed
UUM-87925
Importing a theme through the Inspector allows importing the same theme multiple times
Unity: UI Toolkit Framework
As Designed
6.1.X
6.0.X
2022.3.X
2021.3.X
There's nothing wrong with importing the same theme multiple times. This method could be used to reset certain styles imported in-between the first and second import. We don't plan to limit this in the UI, even if the use cases are limited.
How to reprouduce:
1. Create a new Unity project
2. In the Project window, Create -> UI Toolkit -> TSS Theme File
3. Select the created TSS Theme File
4. In the Inspector, under the "Inherited Themes" click "+" -> Select the Asset
5. Add the second element to the list and try assigning the same theme as the first time
Expected results: The same theme can't be assigned
Actual results: The same theme can be assigned and applying it doesn't result in any warnings or errors