0

When I do some changes to my animators, sometimes I notice a float parameter named Blend with value of 0.0 appears in the parameter list of the animator.

enter image description here

I think this happens when I change blending mode or weight of a layer.

enter image description here

I didn't find any documentation for this. Anyone knows what does this parameter do and how to use it, Is it safe to delete it?

Bizhan
  • 16,157
  • 9
  • 63
  • 101
  • Can you be more specific about where you see this parameter, maybe with a small screen snippet? What do you mean by 'change blending option of a layer'? As your question currently stands I don't know if you're talking about Blend Trees, Blend Shapes, Animation.Blend, or something else entirely. – ashbygeek Jan 19 '17 at 12:13
  • Ok. I added some screenshots – Bizhan Jan 19 '17 at 12:30
  • Well, that goes above my knowledge of unity animation, but the question is much clearer. I'm sure you're right about the blend parameter being tied to the additive layer blending, but I don't know how it works or where specific documentation for it can be found. Hopefully somebody more knowledgable will give an answer soon. In the meantime I'd probably look through blend trees and blend shapes documentation to see if you can find any answers there. – ashbygeek Jan 19 '17 at 12:40
  • Hey I'm taking a look at the animator now and I'm not getting a random Blend parameter. Are you sure it's not a plugin or something that's doing it? Can you try the same thing with a blank Unity project? If it still happens can you add exact reproduction steps? – Nonameghost Jan 20 '17 at 03:46
  • @Nonameghost I'm not sure how it happens, I will try to reproduce it. – Bizhan Jan 20 '17 at 10:40

1 Answers1

1

Blend is a default float variable they included for you to use in your scripts. You can safely remove it if you wish. The method for controlling animator variables is Anim.SetFloat. For example you might want to replace it with 'movementDirection' on a character controller. In Mechanim you control blends between x and y axis of animation combinations using external variables such as Blend

Absinthe
  • 3,258
  • 6
  • 31
  • 70