playMaker

Author Topic: Can't Send Animation event if more then 1 FSM  (Read 2786 times)

richicon

  • Playmaker Newbie
  • *
  • Posts: 4
Can't Send Animation event if more then 1 FSM
« on: March 21, 2013, 02:43:37 PM »
Hi

I've noticed that if I have more then 1 FSM on an object I can no longer add a SendEvent to an animation. I've worked around this by writing a C# script to forward the events for me, however I was wondering if there is an official way to get around this?

I did try putting FSM's into a child object, but this got very messy as most wanted to access the root object and I had to go through redirecting a lot of 'Owner objects'

thanks

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Can't Send Animation event if more then 1 FSM
« Reply #1 on: May 17, 2013, 02:25:06 AM »
Hi,

 I am not getting this. What do you mean by "sendEvent to an animation"?

bye,

 Jean

bentarthur

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Can't Send Animation event if more then 1 FSM
« Reply #2 on: May 31, 2014, 10:34:19 PM »
I think he means that you can no longer choose animation event functions in the dropdown menu if a gameobject has more than 1 FSM.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Can't Send Animation event if more then 1 FSM
« Reply #3 on: June 03, 2014, 10:49:33 PM »
Yeah, this is a limitation in the Unity UI - if there's more than one of a specific MonoBehavior type on the GameObject the Animation editor no longer shows that MonoBehavior's methods in the event dropdown.

We should be able to make some kind of generic event forwarding script, but I haven't had time to really look into it yet... Maybe Jean can look into it ;)