UnityEngine.Animation.Blend C# (CSharp) Method

Blend() public method

public Blend ( string animation ) : void
animation string
return void
		public void Blend(string animation){}
		public AnimationState CrossFadeQueued(string animation, float fadeLength, QueueMode queue, PlayMode mode){}

Same methods

Animation::Blend ( string animation, [ targetWeight, [ fadeLength ) : void
Animation::Blend ( string animation, float targetWeight ) : void
Animation::Blend ( string animation, float targetWeight, float fadeLength ) : void

Usage Example

コード例 #1
0
ファイル: AnimationQueue.cs プロジェクト: MrBek/Poker
        public void Update()
        {
            var currentTime = Time.time;

            foreach (var entry in entries.ToArray())
            {
                if (entry.StartTime <= currentTime)
                {
                    entries.Remove(entry);

                    if (entry.OnlyIfNotPlaying)
                    {
                        if (animation.IsPlaying(entry.Name))
                        {
                            continue;
                        }
                    }

                    if (entry.BlendWeight > 0.0f)
                    {
                        animation.Blend(entry.Name, entry.BlendWeight);
                    }
                    else
                    {
                        animation.Play(entry.Name, entry.PlayMode);
                    }

                    animationStartedCallback(entry.Name, animation.GetClip(entry.Name).length);
                }
            }
        }
All Usage Examples Of UnityEngine.Animation::Blend