Steps to reproduce:
- Open the attached project
- Select Shader Graphs_testGraph material
- In the Inspector, observe that 3 material properties are exposed, two of them including 'Color' are read-only
- Open NewUXMLTemplate.uxml asset in UI Builder
- Select the Button Visual Element
- In the UI Builder's Inspector window, expand the Material Section
- Press the + button to add a Material Property
- Observe that 4 material Properties are available
- Add the Color Property
- Change the Color Property value
Actual results: Read-only material properties can be added and overriden in UI Builder's Inspector
Expected results: Read-only material properties are not shown in the UI Builder's Inspector
Reproducible with versions: 6000.3.0b9, 6000.3.3f1, 6000.4.0b3, 6000.5.0a4
Can’t test with versions: 6000.0.65f1, 6000.3.0b8 (UI Builder did not yet support Material Property overrides)
Tested on (OS): Ubuntu 24.04, macOS 26.1
Notes:
- Material Properties marked with the [PerRendererData] attribute are displayed in the Material Inspector as read-only and cannot be changed. These Properties can be selected and modified in the UI Builder window. The Color Property in the attached project is using this attribute.
- Material Properties marked with the [NonModifiableTextureData] attribute are not displayed in the Material Inspector. These properties can be selected and modified in the UI Builder window. For instance, ShaderGraph's UV Distortion node does not show a Noise Map property in the Graph, same for the Material Inspector. However, this Property is shown in the UI Builder
- Material Properties marked with the [HideInInspector] behave as expected and are not displayed in the UI Builder