我应该注意到这是一个增强现实项目。应用程序与Mono2x完美配合。已更改为IL2CPP,因为应用商店需要64位。启动画面仍在播放,但现在当相机尝试启动时,应用程序崩溃。
我正在实例化代表玩家得分的对象。这与Mono2X完美配合。 我也有一个非常简单的碰撞,之前也很好。
我得到了非常模糊的错误:
ArgumentException: The thing you want to instantiate is null.
at UnityEngine.AssetBundle.LoadAsset_Internal (System.String name,
System.Type type) [0x00000] in <filename unknown>:0
at UnityEngine.Object.Instantiate (UnityEngine.Object original)
[0x00000] in <filename unknown>:0
at UnityEngine.Object.Instantiate (UnityEngine.Object original)
[0x00000] in <filename unknown>:0
at ScoreHandler.OnCollisionEnter (UnityEngine.Collision col) [0x00000]
in <filename unknown>:0
(Filename: currently not available on il2cpp Line: -1)
Unhandled Exception: System.ArgumentException: The thing you want to
instantiate is null.
at UnityEngine.AssetBundle.LoadAsset_Internal (System.String name,
System.Type type) [0x00000] in <filename unknown>:0
at UnityEngine.Object.Instantiate (UnityEngine.Object original)
[0x00000] in <filename unknown>:0
at UnityEngine.Object.Instantiate (UnityEngine.Object original)
[0x00000] in <filename unknown>:0
at ScoreHandler.OnCollisionEnter (UnityEngine.Collision col) [0x00000]
in <filename unknown>:0
我在加载ARMarker时也遇到错误。尽管标记成功加载。
ARController (native): [error]Loading single AR marker from buffer,
width 55.000000.
ARController (native): [error]ARController::addMarker(): called
ARController (native): ARController::addMarker(): Added marker (UID=0),
total markers loaded: 1, exiting, returning true
ARController: Starting AR.
我更关注导致程序崩溃的ArgumentException。