123456789101112131415161718192021222324252627 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- public class EnableIfOpenCVNotDetected : MonoBehaviour
- {
- public GameObject objectToEnable;
-
- void Awake ()
- {
- #if !ZED_OPENCV_FOR_UNITY
- if(!objectToEnable)
- {
- objectToEnable = GetComponentInChildren<Text>().gameObject;
- }
- objectToEnable.gameObject.SetActive(true);
- #endif
- }
-
- }
|