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);
    }
Exemplo n.º 2
0
    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];
        }
    }