AnimationPlayMode.Mix

I have some code (written by someone else, and I’m not sure how it works) that calls Animation.Play with AnimationPlayMode.Mix. AnimationPlayMode no longer exists, and apparently it has been deprecated for so long that Google won’t tell me what AnimationPlayMode.Mix used to mean. Should I replace those calls with Animation.CrossFade, or Animation.Blend? Or is there more to it?

Hello, noticed the same thing, it doesn’t come up in the documents but its not marked a deprecated either :frowning:

I’ve just updated to Unity 4.2 and I got a warning saying:

I can’t find an explanation for what AnimationPlayMode.Mix used to mean either. By drilling into the class definitions I can see:

public enum AnimationPlayMode
{
Stop,
Queue,
Mix
}

So the value for AnimationPlaymode.Mix is 2.

The suggested enumerator PlayMode does not seem to have a constant for 2:

public enum PlayMode
{
StopSameLayer,
StopAll = 4
}

Then getting the definition for Play(AnimationPlayMode mode) we can see:

[Obsolete(“use PlayMode instead of AnimationPlayMode.”)]
public bool Play(AnimationPlayMode mode)
{
return this.PlayDefaultAnimation((PlayMode)mode);
}

I can’t see the definition for PlayDefaultAnimation. I think the safest thing to do is to just leave AnimationPlaymode.Mix as it is for now?