- Issue category: Unity
- Host machine & OS version: M1 iMac (latest macOS)
- Issue Environment : On Device
- Xcode version: Latest
- ARDK version: 1.3.1
- Unity version:2021.3.2f1
Bug reproduction steps:
Make project (using vs 2022 preview and URP)
Import ARDK (I use a blank scene with a default camera in it, not the ARDK camera)
edit script and save script
UnityException: Internal_CreateGameObject is not allowed to be called from a MonoBehaviour constructor (or instance field initializer), call it in Awake or Start instead. Called from MonoBehaviour ‘_UpdateLoop’ on game object ‘update_loop’.
See “Script Serialization” page in the Unity Manual for further details.
UnityEngine.GameObject…ctor (System.String name, System.Type components) (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/GameObject.bindings.cs:377)
Niantic.ARDK.Utilities._UpdateLoop…cctor () (at Assets/ARDK/Utilities/_UpdateLoop.cs:36)
Rethrow as TypeInitializationException: The type initializer for ‘Niantic.ARDK.Utilities._UpdateLoop’ threw an exception.
This did not happen for me on my Windows machine