Steps to reproduce:
- Create a new project using 3D URP template
- Create a new UI Document (Assets > Create > UI Toolkit > UI Document)
- Open the .uxml file in UI Builder
- Create a new USS file with a new selector (e.g. "test")
- Select the newly created selector
- In the Inspector "Variables" foldout click "+" and add any variable (e.g. float")
- Open the uss file in any text or code editor
- Remove the line that declared the variable (e.g. "--new-var-1: 0;")
- Save the uss file
- Without closing the text editor, click on the Inspector in UI Builder
- Observe the Console
Actual results: "Accessing invalid property" error is thrown
Expected results: No errors
Reproducible with versions: 6000.0.72f1, 6000.3.13f1, 6000.4.3f1, 6000.5.0b4, 6000.6.0a3
Tested on (OS): macOS 26.4, Ubuntu 24.04
Notes:
- Sometimes reproduces when adding code lines in the uss file as well
- Affects not only "Variables" and reproduces when editing most code lines
- Does not seem to reproduce if the text editor is closed before refocusing