Log in or register to post comments

RegisterVuforiaStartedCallback depreciated?

January 16, 2017 - 12:47am #1

Hello

I have downloaded the latest version for vuforia for my unity project.

However, the following function RegisterVuforiaStartedCallback, is not recognised as a function of VuforiaBehavior

I have found one other thread with a similar problem https://developer.vuforia.com/forum/unity-extension-technical-discussion/camera-focus-mode-android-unity



The exact error : Assets/source/TestScript.cs(17,12): error CS1061: Type `Vuforia.VuforiaBehaviour' does not contain a definition for `RegisterVuforiaStartedCallback' and no extension method `RegisterVuforiaStartedCallback' of type `Vuforia.VuforiaBehaviour' could be found. Are you missing an assembly reference?

Has RegisterVuforiaStartedCallback been deprecated or moved to another class in the latest version?

If not, could there be an error in loading plugin dll?



and help would be appreciated.

RegisterVuforiaStartedCallback depreciated?

December 11, 2019 - 3:12pm #6

This Works now.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Vuforia;

public class fixFocus: MonoBehaviour
{


    void Start()
    {
        VuforiaARController.Instance.RegisterVuforiaStartedCallback(OnVuforiaStarted);
        VuforiaARController.Instance.RegisterOnPauseCallback(OnPaused);
    }

    private void OnVuforiaStarted()
    {
        CameraDevice.Instance.SetFocusMode(
            CameraDevice.FocusMode.FOCUS_MODE_CONTINUOUSAUTO);
    }

    private void OnPaused(bool paused)
    {
        if (!paused) // resumed
        {
            // Set again autofocus mode when app is resumed
            CameraDevice.Instance.SetFocusMode(
                CameraDevice.FocusMode.FOCUS_MODE_CONTINUOUSAUTO);
        }
    }


}

RegisterVuforiaStartedCallback depreciated?

December 11, 2019 - 3:08pm #5

Same question as above.

RegisterVuforiaStartedCallback depreciated?

May 17, 2017 - 9:48am #4

I just wanted to bump this thread to point out that the documentation about camera focus modes for Unity (https://library.vuforia.com/articles/Solution/Camera-Focus-Modes) still has not been fixed. The documentation says that RegisterVuforiaStartedCallback() is a method of VuforiaBehaviour, when in reality it is now a method of VuforiaARController.

RegisterVuforiaStartedCallback depreciated?

April 2, 2017 - 6:31am #3

if we use VuforiaARController it said give reference. the reference that i gave is VuforiaBehavoir (type) what should i do ?

RegisterVuforiaStartedCallback depreciated?

January 16, 2017 - 2:39pm #2

Hello, so apparently the function RegisterVuforiaStartedCallback belongs to the VuforiaARController

The documentation I was reading that used RegisterVuforiaStartedCallback, is outdated. So this is solved for me.

Log in or register to post comments