Animated Portraits issue; AnimationController getting deactivated on runtime?
Posted: Tue Jul 01, 2025 8:57 pm
Hello, this is my first time posting here, I came across a seemingly simple bug/issue, I'm sure it's nothing major but for the life of me I cannot figure out what I'm doing wrong.
To preface, I started by getting familiar with the Dialogue UI by making my own as per this video:
I did made a few changes, but nothing in regards to the actual settings and such, just colors, font size, positioning, etc.
Then I wanted to try animating the portraits, I followed the following video tutorial:
However here lies the issue, whenever I try and run a specific animation from an arbitrary Dialogue node, the error: "Animator does not have an AnimatorController" appears and I'm clueless to why that is.
I have tried using both "AnimatorPlay(FadeOut, speakerportrait)" and "AnimatorPlay(FadeOut, Portrait Image) " and both return that error.
I will attach every relevant image and what I've tried to solve this issue.
First, my Custom UI tree, as you can see, it's fairly similar to what is shown on the first video:
This "Standard Dialogue UI" is attached to CustomDialogueUI: And this is the "Standard UI Subtitle Panel" attached to the Subtitle Panel: With these I've made sure all the relevant fields are filled properly,
I also made an empty actor object for my character and assigned the animator accordingly like so: I do have other actors but they do not appear on the conversation I'm testing, and do note the node I am triggering the animation play is set-up correctly, even using AnimatorPlay(FadeOut, listenerportrait)" does not work, I've also tried making separate panels and actor objects to no avail, the error simply keeps happening.
I do have noticed that the animator component of the Portrait Image gets both deactivated and emptied during run-time, I assume that is the cause of the error, but I cannot figure out what is causing this.
Funnily enough, removing all the subtitle panel references from the CustomDialogueUI's Standard Dialogue UI does make the animation play correctly, but as expected, every reference is broken and thus, the correct dialogue is not set on the UI properly.
Any ideas on what I may be doing wrong or missing? I've watched the videos several times and looked for solutions on other topics and online to no avail. I am not able to provide a sample project atm, but I will provide one if asked and if I can replicate the issue.
To preface, I started by getting familiar with the Dialogue UI by making my own as per this video:
I did made a few changes, but nothing in regards to the actual settings and such, just colors, font size, positioning, etc.
Then I wanted to try animating the portraits, I followed the following video tutorial:
However here lies the issue, whenever I try and run a specific animation from an arbitrary Dialogue node, the error: "Animator does not have an AnimatorController" appears and I'm clueless to why that is.
I have tried using both "AnimatorPlay(FadeOut, speakerportrait)" and "AnimatorPlay(FadeOut, Portrait Image) " and both return that error.
I will attach every relevant image and what I've tried to solve this issue.
First, my Custom UI tree, as you can see, it's fairly similar to what is shown on the first video:
This "Standard Dialogue UI" is attached to CustomDialogueUI: And this is the "Standard UI Subtitle Panel" attached to the Subtitle Panel: With these I've made sure all the relevant fields are filled properly,
I also made an empty actor object for my character and assigned the animator accordingly like so: I do have other actors but they do not appear on the conversation I'm testing, and do note the node I am triggering the animation play is set-up correctly, even using AnimatorPlay(FadeOut, listenerportrait)" does not work, I've also tried making separate panels and actor objects to no avail, the error simply keeps happening.
I do have noticed that the animator component of the Portrait Image gets both deactivated and emptied during run-time, I assume that is the cause of the error, but I cannot figure out what is causing this.
Funnily enough, removing all the subtitle panel references from the CustomDialogueUI's Standard Dialogue UI does make the animation play correctly, but as expected, every reference is broken and thus, the correct dialogue is not set on the UI properly.
Any ideas on what I may be doing wrong or missing? I've watched the videos several times and looked for solutions on other topics and online to no avail. I am not able to provide a sample project atm, but I will provide one if asked and if I can replicate the issue.