I have a layer which deals with pistol animations, seen here: 2013-01-20_1000
My problem is that, in some cases i can use an upper body mask which is great, but in other cases I want to add a couple more joints to be affected by this layers animations.
Setting the mask in the animations directly only seems to override for that animation in general (expected) and the layer seems to allow for only a single mask.
Ideally, I’d like to have a mask that i can assign per STATE, so in terms of my sub-state machine that i’ve linked a SS to above, i’d like “PS_Melee” to use a different Human/Mask (say: FullBodyMask), vs PS_Reload (i.e. UpperBodyMask).
Anyone? Also, I’d like to know if there is some way of selectively choosing “Additive” vs “Override” for the Layer States? In that layer shown above (see link), the PS_Draw and PS_Holster for instance, require “override”, but the others look much better with “additive”. Is there no way to selectively choose which to use in the state machine? This doesn’t even seem to be possible via API.
Am I basically stuck creating multiple layers for each given mask/blending combination?
Thats what I did for the masks. I had no mask on first layer, head mask and right arm mask on other two layers.
At some point I wanted to play a turn animation but keep the head from the idle animation and it could be done easily because I had one mask per layer already setup. It might seem more work setting it up in this way but I think in the end its easier to keep track of what you are doing, otherwise there would be a lot of going back and forth between states just to see what mask is on which state.
As for the question of selecting Additive versus Override per state, I don’t think such feature exists but as an alternative have you tried animation layer syncing ? It would seem you can have one layer with Override blending synced to another layer with Additive blending. That way it should allow to switch from Additive to Override anytime you wish and even blend between them if you wanted.
Is there any detailed documentation/videos regarding syncing layers? I’m looking at Unity docs atm and they seem a tad light - I’m reading the sync feature as “replace like-named states with those from one layer to another”.
Yeah I just checked it out and you are right. For some reason I thought it would retain the animation in the synced layer by default and then you could replace them with others if you wished but it only retains the name and transitions so I was wrong about that sorry… If you do use sync you’d have to drag and drop the same animations again on the right states in the layer that is synced. Not the best type of workflow
I also agree theres no info other than that small part on that page. I haven’t really used that feature yet. Sorry I couldn’t be of much help.