Hi,
I'm using Mecanim to play my 2d tentacle animation and right now I have an "Object:Animate set to Change Parameter" for changing my speed multiplier parameter and the next "Object: Animate to Play Custom" to play my clip.
I'm wondering if I can customize the Object:Animate Action to combine them into 1 action? Is that relatively easy to do?
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
http://imgur.com/a/V3IHqxb
A custom Action could feasibly do this: the exact code to simply change a parameter and play animation by name is relatively simple:
What's the underlying intent? Do you have many such Action combinations to deal with?
If so, you're probably best off creating an ActionList asset file with the above two Actions, and using parameters to override the animation fields (speed, clip, optionally the animator itself). When needed, you can then use a single ActionList: Run Action to trigger the sequence and set the parameter values at that point.