Log in or register to post comments

when init field of view

July 25, 2017 - 9:43am #1

hi, i can't get camera field of view, because i've no idea when it changes.

my coding like below: 

void Start ()

{

  var vuforia = VuforiaARController.Instance;

  vuforia.RegisterVuforiaStartedCallback (OnVuforiaStarted);

}

private void OnVuforiaStarted ()

{

  Debug.Log (Camera.main.fieldOfView);

}

void Update ()

{

  if (Vuforia.VuforiaManager.Instance.Initialized) {

   Debug.Log (Camera.main.fieldOfView);

  }

}

the result prints init value in the camera inspector before my program running in the editor.

OnVuforiaStarted and Update function print that.

but later, i don't know when, the value changed, and the update will print another value.

now, another value, that's the value i really want it.

who can help me?

thank you very much!!

Log in or register to post comments