Exemple #1
0
    void OnDestroy()
    {
        if (Instance == this)
        {
            Instance = null;
        }

        UnityARSessionNativeInterface.ARUserAnchorAddedEvent   -= UnityARSessionNativeInterface_ARUserAnchorAddedEvent;
        UnityARSessionNativeInterface.ARUserAnchorUpdatedEvent -= UnityARSessionNativeInterface_ARUserAnchorUpdatedEvent;
        UnityARSessionNativeInterface.ARUserAnchorRemovedEvent -= UnityARSessionNativeInterface_ARUserAnchorRemovedEvent;
    }
Exemple #2
0
    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);
    }