Pending Review

2.0.0a8 List Variable instance changes being applied to Class

NeedsLoomis 2 years ago updated by Lazlo Bonin (Lead Developer) 2 years ago 2

When I create a List Class Variable and add an item to it in a graph during play or normally through an override, it adds it to the actual Definition, not just the instance.

Restarting Unity can fix the individual lists when using overrides, but lists that aren't overridden will continue to share their values globally before/during/after play.

Related to https://support.ludiq.io/communities/5/topics/4748-200a8-list-class-var-is-set-by-an-override-permanently 

Bolt Version:
Unity Version:
Scripting Backend:
.NET Version (API Compatibility Level):
.NET 4.x
Bolt 2 GFI

Still happening in a10

Pending Review

Hi NeedsLoomis and David,

Thanks for the additional information.

I did think I had fixed it in #4748.

I'll test again with the specific case you described (correct me if it's wrong):

  1. Create a List class variable
  2. Use a List Add unit to add an item to it during play mode
  3. Enter Play Mode
  4. The item gets added to the list
  5. When exiting play mode, the item is still within the list (bug)

Is that correct?