✅ Solved: How can I use a view model instance to control a state machine condition?
I want a condition in the state machine to be dependent on the string value in an assigned view model instance.
I think I’m doing something wrong here and hope someone can help me:
I have an artboard with different icons as solos that I want to use as nested artboards.
I have created a View Model 1 with a name (string) for the solos.
In another View Model 2, I have created an instance for each solo and entered an individual text value for the name (string) in each instance.
I assigned the View Model 1 with Instance [Solo Name] to the artboard.
Then I created a timeline for each solo.
In the State Machine, I connected the timelines from Any State with the following condition:
If [Solo Name] from [View Model 1] = [Solo Name] from [View Model 2 → Instance]
Nevertheless, the state machine always remains in the entry state in play mode. What am I doing wrong? Thanks in advance for any support!