Given that I have a Blender model with four animations - raising right arm/lowering right arm, same for left arm. Unity imports them, and I have a script that calls each of them by Action name, all of which works fine.
If I wanted to combine them, and play two Actions simultaneously (for instance, raising both arms), what is the best way? I can think of at least four ways it might work:
Option 1 - in Blender, make a new Action combining the ones I want. I'm certain it would work, but makes for a lot of combinations.
Option 2 - Can the Animation Editor/View combine imported Animation clips? Based on a few attempts, and looking over the online docs, I suspect not. But I could have missed it.
Option 3 - in a Script: finding and playing two clips with the blendMode = Additive.
Option 4 - in a Script: finding two clips in the Animation object and setting their Enabled = true to make them play simultaneously.
I'm not sure if the last two will work, just ran across them in some random Animations questions. Or if they do work - which is best?
I'm very tempted to delete this question, having just found the obvious answer in the docs, where I totally overlooked it. :) But, on the off chance it might be useful to someone else, I'll leave it.
The answer is the Animation.Blend function, and the code I used looks like:
Both of those will now play simultaneously. The reason I overlooked it, is misreading the descriptive text on the Overview page, where it said Blend - "Blends the animation named X over the next Y seconds." And I assumed it also stopped the current animation - which it doesn't... Wups. :)
Granted, I'm still not sure if it's the best way, but it certainly seems easy enough.
Update - okay, I was wrong, this doesn't work as expected. :) I was trying to solve the two-body problem (upper body/lower body each have separate animations), and even though my two animation clips have completely different sets of Bone keys - they are mixing. There is interference in upper and lower body.
So, I'm still looking for how to play two animation clips simultaneously, with no mixing of the two.