Animator.GetCurrentAnimationClipState error

Hi,

Animator.GetCurrentAnimationClipState does not compile for Windows Store Apps. It works in the editor.

Example CS-code:

using UnityEngine;
using System.Collections;

public class PlayerAnimatorController : MonoBehaviour {

    public Animator animatorComponent;
    void Update () {
        AnimationInfo[] animationInfos = animatorComponent.GetCurrentAnimationClipState(0);
    }
}

Error-message:
Assets\Scripts\PlayerAnimatorController.cs(8,60): error CS1061: ‘UnityEngine.Animator’ does not contain a definition for ‘GetCurrentAnimationClipState’ and no extension method ‘GetCurrentAnimationClipState’ accepting a first argument of type ‘UnityEngine.Animator’ could be found (are you missing a using directive or an assembly reference?)

Any ideas how to get it working?

Thanks.

Unfortunately GetCurrentAnimationClipState() and GetNextAnimationClipState() is not yet supported for Windows Store Apps, as well as Windows Phone 8 and Flash.
There is work in progress on this, but I can’t tell, when we will have this support.

Any idea when this may become supported ? Its a blocking issue on converting various pieces of Software to the windows app store and window surface.

Yes, this will be supported in 4.3.

And 4.3 is almost around the corner, just wait a bit longer.