我正在使用 Unity 4.6.4 开发 iOS 和 Android 游戏。我的 UI 内容在 Android 设备上运行良好。但是,在 iOS 设备上,用户界面外观还可以,但无法正常工作。按钮 onClick 事件不起作用,但按钮动画起作用 - 这就是为什么我猜它与 UI 的事件系统有关。
这是我在 Xcode 中的日志:
NotSupportedException: Operation is not supported.
at System.Type.GetGenericArguments () [0x00000] in :0
at System.Type.MakeGenericType (System.Type[] typeArguments) [0x00000] in :0
at UnityEngine.Events.PersistentCall.GetObjectCall (UnityEngine.Object target, System.Reflection.MethodInfo method, UnityEngine.Events.ArgumentCache arguments) [0x00000] in :0
at UnityEngine.Events.PersistentCall.GetRuntimeCall (UnityEngine.Events.UnityEventBase theEvent) [0x00000] in :0
at UnityEngine.Events.PersistentCallGroup.Initialize (UnityEngine.Events.InvokableCallList invokableList, UnityEngine.Events.UnityEventBase unityEventBase) [0x00000] in :0
at UnityEngine.Events.UnityEventBase.RebuildPersistentCallsIfNeeded () [0x00000] in :0
at UnityEngine.Events.UnityEventBase.Invoke (System.Object[] parameters) [0x00000] in :0
at UnityEngine.Events.UnityEvent.Invoke () [0x00000] in :0
at UnityEngine.UI.Button.Press () [0x00000] in :0
at UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) [0x00000] in :0
at UnityEngine.EventSystems.ExecuteEvents.Execute (IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) [0x00000] in :0
at UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.EventFunction`1 functor) [0x00000] in :0
你能帮我吗?