playMaker

Author Topic: Request for Turn Off All Animator Bool  (Read 1074 times)

hoyoyo80

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Request for Turn Off All Animator Bool
« on: June 13, 2020, 03:50:07 AM »
Hi all,

I would like to request an action to turn off all bool from animator controller. Moving from one animation to another might be easier if we can turn off all animator and then turn on the needed one.

Thanks

Thore

  • Sr. Member
  • ****
  • Posts: 480
    • View Profile
Re: Request for Turn Off All Animator Bool
« Reply #1 on: June 13, 2020, 04:43:19 AM »
I recommend using the (ecosystem) animator cross fade action, and keep the logic (i.e. the bools) in PlayMaker. Mechanim is only told what to play, the states and  transitions are handled in PlayMaker. You can also pack a lot of animations into blend trees. For example, idle and moving can go into one state; all animations for the jump arch go into one blend tree etc. The blend tree then only needs one or two parameters, like the horizontal/vertical velocity. But that all depends on what you're trying to achieve.

hoyoyo80

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Re: Request for Turn Off All Animator Bool
« Reply #2 on: June 14, 2020, 08:45:45 AM »
Sound great,Thore and thanks for that. First time i heard about that(since i jump direct to PM).

Beside downloading the action, is there any resource i can learn from?Thanks

Thore

  • Sr. Member
  • ****
  • Posts: 480
    • View Profile
Re: Request for Turn Off All Animator Bool
« Reply #3 on: June 14, 2020, 09:42:43 AM »
I got some of the blendtree tricks from here:
Create A 2D Platformer - Unite Berlin Training Day

It's much cleaner and nicer. My reasoning for using PM for the logic, and only use Mechanim for the visuals is explained here.

hoyoyo80

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Re: Request for Turn Off All Animator Bool
« Reply #4 on: June 16, 2020, 01:07:15 AM »
Thank you so much. But i cannot find any Animator Cross Fade on ecosystem.Maybe there is a new name?

Thore

  • Sr. Member
  • ****
  • Posts: 480
    • View Profile
Re: Request for Turn Off All Animator Bool
« Reply #5 on: June 16, 2020, 05:29:42 AM »
Attached below. Test out the approach though, before you make sweeping changes. It may (or may not) be the best idea for your project. :)

hoyoyo80

  • Full Member
  • ***
  • Posts: 123
    • View Profile
Re: Request for Turn Off All Animator Bool
« Reply #6 on: June 20, 2020, 06:42:22 PM »
Sweet!!! Thanks Bro, ill try that:)