I have such codes that made me unable to build because of using UnityEditor namespace(Motion ,AnimatorState and AnimatorController) But I must get the length