Focus/Unfocus animation doesn't work on portraits with separately animated parts
Posted: Thu Sep 03, 2020 7:12 pm
Hello, I have a question about Focus/Unfocus animation.
I set up a Dialogue Panel with two Subtitle Panels (Subtitle Panel 0 and Subtitle Panel 1);
both panels have child objects like Portrait Name and Portrait Image (0 and 1 respectively);
and those Portrait Images have child objects: Portrait Image Eyes and Portrait Image Mouth.
The animated portraits work as expected. But when I want to play Focus/Unfocus animation, it doesn't affect the Portrait images.
Both Subtitle Panel 0 and 1 have Animator component with Canvas Group Animator Controller assigned.
The Focus animation changes the Color property of the Subtitle Panel from 50%gray to white.
(I changed it from affecting the alpha of a Canvas Group). When I try to add a Color property (Image component) in Focus animation for the Portrait Image (ie the child object of the Subtitle Panel) it adds it, but I cant change it due to the fact that Portrait image has it's own Animator Controller assigned (that animates the character portrait and its parts). So when I click on it, it shows me the animations of another Animator Controller.
I was able to animate Portrait Names on Focus/Unfocus, but can't do the same with Portrait Images.
Interestingly enough, if I animate the Alpha of the Canvas Group component on a Subtitle Panel, it seems to work well enough (but I don't want a semi-transparent portrait, I want it slightly darkened).
Please, can you help understand why this doesn't work. I am a newbie still, so maybe I'm missing something.
I will add screenshots in attachments.
I set up a Dialogue Panel with two Subtitle Panels (Subtitle Panel 0 and Subtitle Panel 1);
both panels have child objects like Portrait Name and Portrait Image (0 and 1 respectively);
and those Portrait Images have child objects: Portrait Image Eyes and Portrait Image Mouth.
The animated portraits work as expected. But when I want to play Focus/Unfocus animation, it doesn't affect the Portrait images.
Both Subtitle Panel 0 and 1 have Animator component with Canvas Group Animator Controller assigned.
The Focus animation changes the Color property of the Subtitle Panel from 50%gray to white.
(I changed it from affecting the alpha of a Canvas Group). When I try to add a Color property (Image component) in Focus animation for the Portrait Image (ie the child object of the Subtitle Panel) it adds it, but I cant change it due to the fact that Portrait image has it's own Animator Controller assigned (that animates the character portrait and its parts). So when I click on it, it shows me the animations of another Animator Controller.
I was able to animate Portrait Names on Focus/Unfocus, but can't do the same with Portrait Images.
Interestingly enough, if I animate the Alpha of the Canvas Group component on a Subtitle Panel, it seems to work well enough (but I don't want a semi-transparent portrait, I want it slightly darkened).
Please, can you help understand why this doesn't work. I am a newbie still, so maybe I'm missing something.
I will add screenshots in attachments.