简体   繁体   中英

What is Blend parameter in Unity Animator?

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.

在此处输入图片说明

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

在此处输入图片说明

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM