void Awake() { // Get the UI Canvas that contains (parent of) the error text box if (errorText) { errorCanvas = errorText.GetComponentsInParent <Canvas>(true)[0]; } VuforiaRuntime.Instance.RegisterVuforiaInitErrorCallback(OnInitError); }
void Awake() { VuforiaAbstractBehaviour vuforia = FindObjectOfType <VuforiaAbstractBehaviour>(); //vuforia.RegisterVuforiaInitErrorCallback(OnInitError); // Get the UI Canvas that contains (parent of) the error text box if (errorText) { errorCanvas = errorText.GetComponentsInParent <Canvas>(true)[0]; } }