-
Notifications
You must be signed in to change notification settings - Fork 14
Closed
Description
Hi,
I think I am missing something still, code sample:
public class ExperimentsWindow : Window
{
class ViewModel
{
[Atom]
public int IntValue { get; set; }
}
[Atom]
ViewModel VM { get; set; }
private void Start()
{
Initialize();
VM = new ViewModel() { IntValue = 5 };
// tried this too: Atom.Reaction(() => Debug.Log($"Int value {VM.IntValue}"));
Atom.Reaction(() => VM.IntValue, i => Debug.Log($"Int value {i}"));
VM.IntValue = 6;
VM = new ViewModel() { IntValue = 7 };
}
}
When running, I always only see values "5" or "7" printed but not "6". Is there a way to React to changes in multi-level Atoms?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels