Forum rules - please read before posting.

Issue with Playing Animations in UI (Prefab)

edited June 2024 in Technical Q&A

https://drive.google.com/file/d/1RIBmQetgCYdP7LY_zXd3IGOA_O9WD7eU/view?usp=sharing <- video of the issue occurring on Link Variable to Animator setup.

AC Version: 1.81.1
Unity Version: 2022.3.9f1

Hey all,

I know it's probably some really simple thing I'm missing, but I've looked on threads/Google and I've not been able to find a concrete answer, and this particular issue is blocking a few things I need to add.

This is my current setup: I have UI prefabs for various parts of the menus (character, objectives) which I've separated into tabs. My problem is that whenever I try to play an animation in a prefab UI menu, in an ActionList (When AL Turn On/Off or any type of AL), the Animator is either "missing" or it's there but isn't playing at all (the default animation bar that shows a sprite playing in the animator is stuck/not updating). I've tried it in a scene, and that works. Also, I have the same issue with "Link variable to Animator."

I've tried copying the prefab in the scene, adding the Animator, and then applying changes, and that seems to cause the animator sprite update issue where it's stuck.

I don't know if it's the menu system, the prefab, or me.

Thank you in advance for your help.

Info about how the menus are set up:

-Prefab
-Unity UI in Scene
-Screen Space - Camera
-Appear Type - On Input Key

For the Link Variable to Animator I've tried both (Link to Custom Script and None for the Variable - Same outcome)

Comments

  • Looks like the game is paused at the time. If so, the Animator's Update Mode needs to be set to Unscaled Time.

  • that did the trick! thank you! I knew it was something simple on my side. have a wonderful weekend!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.