Search Issue Tracker

Active

Under Consideration for 6000.5.X

Votes

0

Found in

6000.5.0a5

Issue ID

UUM-130877

Regression

No

UI Builder allows overriding read only material properties

UI Toolkit Graphics

-

Steps to reproduce:

  1. Open the attached project
  2. Select Shader Graphs_testGraph material
  3. In the Inspector, observe that 3 material properties are exposed, two of them including 'Color' are read-only
  4. Open NewUXMLTemplate.uxml asset in UI Builder
  5. Select the Button Visual Element
  6. In the UI Builder's Inspector window, expand the Material Section
  7. Press the + button to add a Material Property
  8. Observe that 4 material Properties are available
  9. Add the Color Property
  10. 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

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.