Search Issue Tracker

Active

Under Consideration for 6000.6.X

Votes

0

Found in

6000.3.14f1

6000.4.4f1

6000.5.0b5

6000.6.0a3

Issue ID

UUM-140515

Regression

No

AssetReference Variable Asset Reference Type is tied to list position and will produce unexpected results when creating, duplicating or saving unset AssetReference Variables

UI Builder

-

Steps to reproduce:

  1. Open any Project
  2. Create a UIDocument Asset in the Project Browser and open it in UI Builder
  3. In the StyleSheets panel create a new USS and select the :root selector
  4. In the Inspector Variable list create an AssetReference Variable
  5. Change the Variable's Asset Reference Type to any other than Texture
  6. Right click the Variable and select "Duplicate"

OR

After step 3:

  1. In the Inspector Variable list create an AssetReference Variable and change the Variable's Asset Reference Type to any other
  2. Remove the Variable from the list
  3. Add an AssetReference Variable to the list

Actual results:

  • Variable is duplicated as an AssetReference Variable but the Asset Reference Type defaults to Texture when no Asset Reference is set
  • When an AssetReference Variable Asset Reference type is changed for an item in one position of the list, the same Asset Reference type will be applied if another is created in it's place
  • Saving the USS file with unset Assets in AssetReference Variables will change their Types while the UI Builder Window is open
  • Changing AssetReference Types for unset Variables, then saving and reopening the UIDocument in UI Builder will default the Asset Reference Types to Texture

Expected results: Variables Asset Reference Type persists through duplication and does not default to the Asset Type that was previously set for a Variable in the same list position

Reproducible with versions: 6000.3.14f1, 6000.4.4f1, 6000.5.0b5, 6000.6.0a3

Can’t test with versions: 6000.0.73f1 (No Variables in selector)

Tested on (OS): Windows 11

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.