Search Issue Tracker

Fixed

Fixed in 2023.2.10f1, 2023.3.0b7

Votes

1

Found in

2023.3.0b6

Issue ID

UUM-62267

Regression

No

[Data Bindings] BindingUpdateTrigger.WhenDirty mode does not support multiple bindings

-

  1. Open attached project LocBindTest
  2. Open Scenes/SampleScene
  3. Press play
  4. Click in the gameview a few times to spawn some items.
  5. Change the game language using the gameview locale changer or via Windows/Asset Management/Localization Scene Tools
  6. Notice only 1 of the items are updated

 

Open the file InventoryService.cs

Add the following lines:
{code:java}
item.Config.Name.updateTrigger = BindingUpdateTrigger.EveryUpdate;
item.Config.Description.updateTrigger = BindingUpdateTrigger.EveryUpdate;{code}
Just before :
{code:java}
nameLabel.SetBinding("text", item.Config.Name);
descriptionLabel.SetBinding("text", item.Config.Description);{code}
Now run again, and notice all items are updated. 

Add comment

Log in to post comment