Search Issue Tracker
Active
Under Consideration for 6000.0.X, 6000.2.X, 6000.3.X, 6000.4.X
Votes
0
Found in
6000.0.55f1
6000.1.14f1
6000.2.0f1
6000.3.0a4
6000.4.0a1
Issue ID
UUM-113640
Regression
No
TSS Inspector creates invalid Project Relative paths for USS references in packages when adding References via Inspector
Reproduction steps:
1. Open the attached “IN-107902.zip” project
2. From the Project Window, navigate to TestPackage/Runtime/Resources/UIToolkit/TSS
3. Select the “MainStyle.tss”
4. In the Inspector, in the Style Sheets List, click on the plus to add a new entry
5. Click on the GameObject picker and select the “BaseStyle” Style Sheet
6. Press Apply
7. Move the TestPackage folder fully out of the project
8. Go to the Package Manager
9. Click the plus sign and select “Install package from disk”
10. Select the “package.json” from the moved TestPackage folder and install the package
11. Now navigate to Packages/UI Toolkit Bug Test/Runtime/Resources/UIToolkit/TSS
12. Select the “MainStyle.tss” and observe the Inspector
Expected result: The reference to the “BaseStyle” Style Sheet is not lost
Actual result: The reference to the “BaseStyle” Style Sheet is missing
Reproducible with: 2022.3.64f1, 6000.0.55f1, 6000.2.0f1, 6000.3.0a4
Reproducible on: Windows 10 (user reported), Windows 11
Not reproducible on: No other environment tested
Notes:
- This issue appears to happen due to the fact that selecting a TSS file and using the Inspector to add a USS reference a project relative path is made. Any time a USS files path is changed, all TSS files lose any references to said USS files as the Project Relative path is no longer valid. When developing a Unity package, the paths are different from when the package is installed via the package manager, and so the references are lost
- Workaround: Manually editing TSS files to use relative paths (e.g., `../USS/BaseStyle.uss`) instead of Inspector-generated absolute paths resolves the issue for same-package references. However, this workaround fails for cross-package dependencies when multiple packages are developed in a single project, as packages have different paths during development vs installation
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Add comment