void OnDestroy() { if (Instance == this) { Instance = null; } UnityARSessionNativeInterface.ARUserAnchorAddedEvent -= UnityARSessionNativeInterface_ARUserAnchorAddedEvent; UnityARSessionNativeInterface.ARUserAnchorUpdatedEvent -= UnityARSessionNativeInterface_ARUserAnchorUpdatedEvent; UnityARSessionNativeInterface.ARUserAnchorRemovedEvent -= UnityARSessionNativeInterface_ARUserAnchorRemovedEvent; }
void Awake() { if (Instance == null) { Instance = this; } Application.SetStackTraceLogType(LogType.Log, StackTraceLogType.None); sceneInstance = Instantiate(scenePrefab); modelTypeText.text = ActiveChild.name; SetChildrenActive(false); referenceImage.SetActive(false); }