originalnicodr / CinematicUnityExplorer

UnityExplorer fork focused on providing tools for creating marketing material for Unity games.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Analyze if we should let the user select the animator pause method

originalnicodr opened this issue · comments

Describe the issue

Right now we have two methods in place:

  • Using Animator.StopPlayback() and Animator.StartPlayback().
  • Enable/disable the animator object itself.

If for some reason we can't find the functions above through reflection it will fall on the second method (since some characters T-pose with the second method we want to prioritize the first one). However, in some cases (e.g. Lost in Random) the first method won't work with some characters, so maybe adding a toggle or dropdown to let the user choose for each entity the pause method could be useful.

After researching for a bit, I found that, actually, the best way of pausing animations is with the animator speed property, so we will be using that for now.

Keep in mind that the current implementation assumes the normal speed is 1. If this becomes a problem we should save it as a variable on the AnimatorPlayer.