Hello. I have recently posted this thread in Scripting section, but got no answers there. Maybe people in this thread helps me?
I have some troubles with Unity 3.0. I’m working on game on IPhone
When I start scene in Unity - no errors or warnings, but when I build it to IPhone I get Exception:
[INDENT]ExecutionEngineException: Attempting to JIT compile method '(wrapper dynamic-method) DominationPoint:smile:ominationPoint$get_transform$ (object,object[])' while running with --aot-only.
at System.Delegate.CreateDelegate (System.Type type, System.Object firstArgument, System.Reflection.MethodInfo method, Boolean throwOnBindFailure) [0x00000] in <filename unknown>:0
at System.Delegate.CreateDelegate (System.Type type, System.Reflection.MethodInfo method, Boolean throwOnBindFailure) [0x00000] in <filename unknown>:0
at System.Delegate.CreateDelegate (System.Type type, System.Reflection.MethodInfo method) [0x00000] in <filename unknown>:0
at System.Reflection.Emit.DynamicMethod.CreateDelegate (System.Type delegateType) [0x00000] in <filename unknown>:0
at Boo.Lang.Runtime.DynamicDispatching.Emitters.DispatcherEmitter.CreateMethodDispatcher () [0x00000] in <filename unknown>:0
at Boo.Lang.Runtime.DynamicDispatching.Emitters.DispatcherEmitter.Emit () [0x00000] in <filename unknown>:0
at Boo.Lang.Runtime.DynamicDispatching.PropertyDispatcherFactory.EmitPropertyDispatcher (System.Reflection.PropertyInfo property, SetOrGet gos) [0x00000] in <filename unknown>:0
at Boo.Lang.Runtime.DynamicDispatching.PropertyDispatcherFactory.EmitDispatcherFor (System.Reflection.MemberInfo info, SetOrGet gos) [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.CreateGetter () [0x00000] in <filename unknown>:0
at Boo.Lang.Runtime.RuntimeServices.DoCreatePropGetDispatcher (System.Object target, System.Type type, System.String name) [0x00000] in <filename unknown>:0
at Boo.Lang.Runtime.RuntimeServices.CreatePropGetDispatcher (System.Object target, System.String name) [0x00000] in <filename unknown>:0
at Boo.Lang.Runtime.RuntimeServices+<GetProperty>c__AnonStorey15.<>m__A () [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.GetProperty (System.Object target, System.String name) [0x00000] in <filename unknown>:0
at UnityScript.Lang.UnityRuntimeServices.GetProperty (System.Object target, System.String name) [0x00000] in <filename unknown>:0
at InfoForDomination.DominationMakeDecision () [0x00000] in <filename unknown>:0
at AI.DominationEnemyLoop () [0x00000] in <filename unknown>:0
at AIManager+$DominationMainLoop$489+$.MoveNext () [0x00000] in <filename unknown>:0 [/INDENT]
I think trouble is that I want get transform property from my component DominationPoint that is Javascript class. This class extends MonoBehaviour, so I can access transform property. It is attached to gameObject on scene. Also, there is null-check in script (in this case Unity shows NullException).
What mean this error, and in which situations it rise?
Forwardly, Thanks for any help!