'Vuforia'에 해당되는 글 1건

  1. 2018/05/15 글뻥 How to setup the focus mode on Vuforia 7
No more support to set up the focus mode on Vuforia 7 directly.

However, If you add this code to your AR camera, you could change that by your mind.

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

public class CameraFocusController : MonoBehaviour {

bool mVuforiaStarted = false;

// Use this for initialization
void Start () {
VuforiaARController vuforia = VuforiaARController.Instance;
if (vuforia != null) vuforia.RegisterVuforiaStartedCallback(StartAfterVuforia);
}
 
void StartAfterVuforia() {
mVuforiaStarted = true;
SetAutofocus();
}

void SetAutofocus() {
CameraDevice.Instance.SetFocusMode(CameraDevice.FocusMode.FOCUS_MODE_TRIGGERAUTO);
}

void OnApplicationPause(bool pauseStatus)
{
if (!pauseStatus) SetAutofocus();
}
}



2018/05/15 03:43 2018/05/15 03:43