Hi everyone !
This is my first post here and I’m French, so I’m sorry if this is not the right place to ask for help.
I followed a tutorial to create dialogues with Unity 2D and Ink. This is the video I followed :
So, basically, I have a dialogue box with a frame which depicts the image of the speaker, and their name. I want to switch the image of the speaker from left to right when the speaker changes.
Everythink works perfectly except for the last part of the video. I created a layoutAnimator with two clips, left and right, and I recorded the animations by moving my frames. Here’s what it looks like so far :

When I preview my animations, it does exactly what I want : it moves the white frame from left to right.
In my code, I have a method named HandleTags() and everything works perfeclty except for this line :
case LAYOUT_TAG:
layoutAnimator.Play(tagValue);
break;
It just doesn’t do anything, no errors, nothing. Actually I noticed that I could replace tagValue by anything, including a name that doesn’t exist, and I have no errors.
I also tried to change directly the animation with a trigger, but it changes nothing.
I’m stuck with this problem and I really don’t know how to solve it.
Can someone help ?
