Ejemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        mPixelFormat = PIXEL_FORMAT.YV12;
        VuforiaARController ctrInstance = VuforiaARController.Instance;

        ctrInstance.RegisterVuforiaStartedCallback(OnVuforiaStarted);
        ctrInstance.RegisterTrackablesUpdatedCallback(OnTrackablesUpdated);
        ctrInstance.RegisterOnPauseCallback(OnPause);
    }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        rotations = new Queue <Quaternion>(smoothingFrames);
        positions = new Queue <Vector3>(smoothingFrames);

        VuforiaARController vuforia = VuforiaARController.Instance;

//		qcarBehavior.RegisterVuforiaStartedCallback(OnInitialized);
//		qcarBehavior.RegisterTrackablesUpdatedCallback(OnTrackablesUpdated);

        vuforia.RegisterVuforiaStartedCallback(OnInitialized);
        vuforia.RegisterTrackablesUpdatedCallback(OnTrackablesUpdated);
    }