- Home /
field not found when building for windows
AnimationClip ac = new AnimationClip();
Debug.Log(ac.apparentSpeed);
error CS1061: Type `UnityEngine.AnimationClip' does not contain a definition for `apparentSpeed' and no extension method `apparentSpeed' of type `UnityEngine.AnimationClip' could be found (are you missing a using directive or an assembly reference?)
AnimationClip is inherited from Motion, which has 'apparentSpeed' as public.
I don't have my own class or file named 'AnimationClip'.
It works fine in Editor, but error occurs when building for Windows platform.
It's a public property, why can't i visit it? I've found 'apparentSpeed' is not listed in Unity Scripting Document.
Could somebody help me?
By the way, i'm doing javascript binding, since this property is public, so it was exported automatically. If it is not allowed to use, is there a way to know?
Anything not listed in the Unity Scripting API is considered unsupported and not recommended to use. The functions may be removed without notice in any future patch, not work as intended and/or have unknown side effects with its use (as in your case).