Search Issue Tracker
Fixed
Fixed in 2021.3.19f1, 2022.2.5f1, 2023.1.0a25
Votes
0
Found in
2021.3.11f1
2022.1.18f1
2022.2.0b10
2023.1.0a13
Issue ID
UUM-16426
Regression
No
Warning “warning: Expected (<resource> | <url>) but found 'none'“ is thrown when setting Font Asset to None in UI Builder window
Steps to reproduce:
1. Open the user’s project
2. Open TestUIDocument.uxml (Assets → UIAssets)
3. Expand TestStyle.uss and select .style1
4. Set Font Asset to None in the UI Builder Inspector
5. Save and observe the Console
Expected result: No warning
Actual result: Warning “Assets/UIAssets/TestStyle.uss (line 3): warning: Expected (<resource> | <url>) but found 'none'“ occurs
Reproducible with: 2021.3.11f1, 2022.1.18f1, 2022.2.0b10, 2023.1.0a13
Could not test with: 2020.3.40f1 (Console error)
Reproduced on: macOS Monterey 12.5.1 (Intel)
Workaround:
1. Open TestStyle.uss
2. Delete “-unity-font-definition: none;” line of code
Notes:
- Throws “IndexOutOfRangeException: Index was outside the bounds of the array” error at the 4th step (Often)
- Same issue with Font
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Only the left screen is rendering when using Render Graph Fullscreen Blit in Meta Quest 2
- Context menu with the "Revert" option doesn't appear when pressing the right mouse button on a "Vector2" or "Vector3" property in the Inspector of a custom shader
- Missing Render Feature "Full Screen Pass Render Feature" in any “Universal Renderer Data” asset when upgrading from 2022.3
- Inconsistent ParticleSystemVertexStream.PercentageAlongTrail data range in Trail Texture Modes except "Stretch"
- The Graph Debug Window can be right clicked through and the Node Workspace is manipulated instead
Resolution Note (fix version 2021.3.19f1):
Fix for 2021.3.X: Warning “warning: Expected (<resource> | <url>) but found 'none'“ is thrown when setting Font Asset to None in UI Builder window