- Home /
is it possible to copy a mecanim layer?
hello,
I am making an fps and in my ignorance i used the base layer in mecanim to control my animations, and it's working.Now, the problem is that the animations animate the full body. For what i want the head of the character should be controlled by wether the player is looking up or down. I know this can be done using avatar masks, but the base layer does not support avatar masks. Also my animations web is pretty complicated so i cannot just manually do that all over again.
Is there any way of copying a layer so i can change the mask?
thanks in advance,
erik
Answer by Teravisor · Feb 06, 2016 at 05:25 PM
Select all nodes in a layer. Ctrl+C. Create new layer, select it. Ctrl+V.
Answer by gameplay4all · Feb 06, 2016 at 04:14 PM
You can control the bone in your players head through scripting by setting it's local transform rotation/position in the LateUpdate()
function, this will update after the animation is applied so it gets rendered properly. Hope I was quick enough to solve your problem before you did a lot of work :)
-Gijs
Your answer
Follow this Question
Related Questions
Check if Layer is in Layermask? 5 Answers
LayerMask for RayCast 1 Answer
My LayerMask is not working 1 Answer
Why is Physics.Raycast returning colliders in a layer not included in the layermask? 2 Answers