Keep getting this error, but randomly:
Full Error from log:
MissingFieldException: Field 'UnityEditor.HierarchyProperty.speed' not found.
at Boo.Lang.Runtime.DynamicDispatching.PropertyDispatcherFactory.FindExtension (IEnumerable`1 candidates) [0x00000] in <filename unknown>:0
at Boo.Lang.Runtime.DynamicDispatching.PropertyDispatcherFactory.Create (SetOrGet gos) [0x00000] in <filename unknown>:0
at Boo.Lang.Runtime.DynamicDispatching.PropertyDispatcherFactory.CreateSetter () [0x00000] in <filename unknown>:0
at Boo.Lang.Runtime.RuntimeServices.DoCreatePropSetDispatcher (System.Object target, System.Type type, System.String name, System.Object value) [0x00000] in <filename unknown>:0
at Boo.Lang.Runtime.RuntimeServices.CreatePropSetDispatcher (System.Object target, System.String name, System.Object value) [0x00000] in <filename unknown>:0
at Boo.Lang.Runtime.RuntimeServices+<SetProperty>c__AnonStorey17.<>m__D () [0x00000] in <filename unknown>:0
at Boo.Lang.Runtime.DynamicDispatching.DispatcherCache.Get (Boo.Lang.Runtime.DynamicDispatching.DispatcherKey key, Boo.Lang.Runtime.DynamicDispatching.DispatcherFactory factory) [0x00000] in <filename unknown>:0
at Boo.Lang.Runtime.RuntimeServices.Dispatch (System.Object target, System.String cacheKeyName, System.Type[] cacheKeyTypes, System.Object[] args, Boo.Lang.Runtime.DynamicDispatching.DispatcherFactory factory) [0x00000] in <filename unknown>:0
at Boo.Lang.Runtime.RuntimeServices.Dispatch (System.Object target, System.String cacheKeyName, System.Object[] args, Boo.Lang.Runtime.DynamicDispatching.DispatcherFactory factory) [0x00000] in <filename unknown>:0
at Boo.Lang.Runtime.RuntimeServices.SetProperty (System.Object target, System.String name, System.Object value) [0x00000] in <filename unknown>:0
at jsGun+$Fire$25+$.MoveNext () [0x00056] in C:\Users\quentin\Documents\Unity Projects\hacknslash\Assets\items\jsGun.js:55
UnityEngine.MonoBehaviour:StartCoroutine_Auto(IEnumerator)
jsGun:Update() (at Assets\items\jsGun.js:33)
Snippet of Code it points to:
var state:AnimationState;
for (state in animation) {
state.speed = fAniSpeed;
}
Note that I declare state outside of the for loop because I was trying to figure out what was happening with a different error, where I’d get a casting error:
InvalidCastException: Cannot cast from source type to destination type.
at jsGun+$Fire$25+$.MoveNext () [0x00023] in C:\Users\quentin\Documents\Unity Projects\hacknslash\Assets\items\jsGun.js:53
UnityEngine.MonoBehaviour:StartCoroutine_Auto(IEnumerator)
jsGun:Update() (at Assets\items\jsGun.js:33)
Can’t quite figure out what is going on![/code]