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.