void OnVuforiaInitialized(VuforiaInitError error)
    {
        VuforiaApplication.Instance.OnVuforiaInitialized -= OnVuforiaInitialized;

        // initialize if null
        if (aboutScreenInfo == null)
        {
            aboutScreenInfo = new AboutScreenInfo();
        }
    }
Example #2
0
    void Start()
    {
        // reset about screen state variable to false when returning from AR scene
        isAboutScreenVisible = false;

        if (aboutScreenInfo == null)
        {
            // initialize if null
            aboutScreenInfo = new AboutScreenInfo();
        }
    }
Example #3
0
    void UpdateAboutText()
    {
        AboutScreenInfo m_AboutScreenInfo = new AboutScreenInfo();

        string title       = m_AboutScreenInfo.GetTitle(m_AboutScreenSample.ToString());
        string description = m_AboutScreenInfo.GetDescription(m_AboutScreenSample.ToString());

        Text[] textElements = GetComponentsInChildren <Text>();
        textElements[0].text = title;
        textElements[1].text = description;
    }
Example #4
0
    void OnVuforiaInitialized(VuforiaInitError error)
    {
        VuforiaApplication.Instance.OnVuforiaInitialized -= OnVuforiaInitialized;

        var aboutScreenInfo = new AboutScreenInfo();
        var title           = aboutScreenInfo.GetTitle(AboutScreenSampleInfo.ToString());
        var description     = aboutScreenInfo.GetDescription(AboutScreenSampleInfo.ToString());
        var textElements    = GetComponentsInChildren <Text>();

        textElements[0].text = title;
        var textMeshProUGUI = GetComponentInChildren <TextMeshProUGUI>();

        textMeshProUGUI.text = description;
    }
    void Start()
    {
        if (this.aboutScreenInfo == null)
        {
            // initialize if null
            this.aboutScreenInfo = new AboutScreenInfo();
        }

        this.safeAreaManager = FindObjectOfType <SafeAreaManager>();

        if (this.safeAreaManager)
        {
            this.safeAreaManager.SetAreaColors(lightGrey, Color.white);
            this.safeAreaManager.SetAreasEnabled(true, true);
        }
    }
Example #6
0
    void Start()
    {
        this.lightGrey = new Color(220f / 255f, 220f / 255f, 220f / 255f);

        // reset about screen state variable to false when returning from AR scene
        isAboutScreenVisible = false;

        if (this.aboutScreenInfo == null)
        {
            // initialize if null
            this.aboutScreenInfo = new AboutScreenInfo();
        }

        this.safeAreaManager = FindObjectOfType <SafeAreaManager>();

        if (this.safeAreaManager)
        {
            this.safeAreaManager.SetAreaColors(lightGrey, Color.white);
            this.safeAreaManager.SetAreasEnabled(true, true);
        }
    }