void Start()
    {
        VuforiaApplication.Instance.OnVuforiaInitialized += OnVuforiaInitialized;

        safeAreaManager = FindObjectOfType <SafeAreaManager>();

        if (safeAreaManager)
        {
            safeAreaManager.SetAreaColors(lightGrey, Color.white);
            safeAreaManager.SetAreasEnabled(true, true);
        }
    }
    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);
        }
    }
Beispiel #3
0
 void Init()
 {
     if (!initialized)
     {
         canvasGroup       = GetComponentInChildren <CanvasGroup>();
         canvasGroup.alpha = 0;
         message           = GetComponentInChildren <Text>();
         message.text      = "";
         initialized       = true;
         RectTransform   root = transform.GetChild(0).GetComponent <RectTransform>();
         SafeAreaManager sam  = FindObjectOfType <SafeAreaManager>();
         if (sam)
         {
             sam.AddSafeAreaRect(root, true, false);
         }
     }
 }
Beispiel #4
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);
        }
    }