void Start() { // register callbacks to VuMark Manager mVuMarkManager = TrackerManager.Instance.GetStateManager().GetVuMarkManager(); mVuMarkManager.RegisterVuMarkDetectedCallback(OnVuMarkDetected); mVuMarkManager.RegisterVuMarkLostCallback(OnVuMarkLost); }
void Start() { vuMarkManager = TrackerManager.Instance.GetStateManager().GetVuMarkManager(); for (int i = 0; i <= MAX_TRACKER_ID; i++) { trackers[i] = new TrackerState(i); } vuMarkManager.RegisterVuMarkDetectedCallback(target => { // If necessary, here we can access the new VuMarkTarget (determine ID). // But the VuMarkBehavior is not available yet. var tracker = GetTrackerFromTarget(target); if (tracker != null && tracker.id == centerTrackerId) { // Center tracker is automatically registered to the origin. tracker.isRegistered = true; tracker.knownWorldPosition = Vector3.zero; } }); vuMarkManager.RegisterVuMarkBehaviourDetectedCallback(behavior => { // If necessary, here we can access the assigned VuMarkBehavior. // But the VuMarkTarget is not available yet. }); }
void Start() { // register callbacks to VuMark Manager _vuMarkManager = TrackerManager.Instance.GetStateManager().GetVuMarkManager(); _vuMarkManager.RegisterVuMarkDetectedCallback(OnVuMarkDetected); _vuMarkManager.RegisterVuMarkLostCallback(OnVuMarkLost); _rotationValues = new List <float>(); }
void Start() { // register callbacks to VuMark Manager _vuMarkManager = TrackerManager.Instance.GetStateManager().GetVuMarkManager(); _vuMarkManager.RegisterVuMarkDetectedCallback(OnVuMarkDetected); _vuMarkManager.RegisterVuMarkLostCallback(OnVuMarkLost); _gameObjectManager = GameObjectManager.Instance; }
void Start() { mIdPanel = GetComponent <PanelShowHide>(); // register callbacks to VuMark Manager mVuMarkManager = TrackerManager.Instance.GetStateManager().GetVuMarkManager(); mVuMarkManager.RegisterVuMarkDetectedCallback(OnVuMarkDetected); mVuMarkManager.RegisterVuMarkLostCallback(OnVuMarkLost); }
void Start() { // get the Planet View component planetView = GetComponent <PlanetView>(); // register callbacks to VuMark Manager mVuMarkManager = TrackerManager.Instance.GetStateManager().GetVuMarkManager(); mVuMarkManager.RegisterVuMarkDetectedCallback(OnVuMarkDetected); }
private void Start() { vuMarkManager = TrackerManager.Instance.GetStateManager().GetVuMarkManager(); // Set VuMarkManager vuMarkManager.RegisterVuMarkDetectedCallback(OnVuMarkDetected); // Set VuMark detected vuMarkManager.RegisterVuMarkLostCallback(OnVuMarkLost); // Set VuMark Lost //foreach (var model in m_ModelList) // Deactivate all models // model.SetActive (false); }
// Use this for initialization void Start() { _vuMarkManager = TrackerManager.Instance.GetStateManager().GetVuMarkManager(); _vuMarkManager.RegisterVuMarkDetectedCallback(OnVuMarkDetected); _vuMarkManager.RegisterVuMarkLostCallback(OnVuMarkLost); VuMarkHandler.Instance.VuMarkDetected += Instance_VuMarkDetected; _renderer = GetComponentsInChildren <Renderer>(); }
// Use this for initialization void Start() { hologramDictionary = new Dictionary <string, GameObject>(); foreach (var entry in Holograms) { hologramDictionary[entry.VuforiaId] = entry.Hologram; } vuMarkManager = TrackerManager.Instance.GetStateManager().GetVuMarkManager(); vuMarkManager.RegisterVuMarkDetectedCallback(OnVumarkDetected); }
void Start() { mIdPanel = GetComponent <PanelShowHide>(); secretKey = Resources.Load <TextAsset>("secret").text; // register callbacks to VuMark Manager mVuMarkManager = TrackerManager.Instance.GetStateManager().GetVuMarkManager(); mVuMarkManager.RegisterVuMarkDetectedCallback(OnVuMarkDetected); mVuMarkManager.RegisterVuMarkLostCallback(OnVuMarkLost); }
void Start() { // mIdPanel = GetComponent<PanelShowHide>(); dataController = FindObjectOfType <DataController>(); // register callbacks to VuMark Manager mVuMarkManager = TrackerManager.Instance.GetStateManager().GetVuMarkManager(); mVuMarkManager.RegisterVuMarkDetectedCallback(OnVuMarkDetected); mVuMarkManager.RegisterVuMarkLostCallback(OnVuMarkLost); //mVuMarkManager.RegisterVuMarkBehaviourDetectedCallback(OnBehaviourDetected); }
void Start() { // Set VuMarkManager vuMarkManager = TrackerManager.Instance.GetStateManager().GetVuMarkManager(); // Set VuMark detected and lost behavior methods vuMarkManager.RegisterVuMarkDetectedCallback(onVuMarkDetected); vuMarkManager.RegisterVuMarkLostCallback(onVuMarkLost); // Deactivate all models foreach (GameObject item in modelList) { item.SetActive(false); } }
int valorObjeto; //Variable utilizada para guardar la posicion del objeto dentro del array void Start() { m_VuMarkManager = TrackerManager.Instance.GetStateManager().GetVuMarkManager(); m_VuMarkManager.RegisterVuMarkDetectedCallback(OnVuMarkDetected); m_VuMarkManager.RegisterVuMarkLostCallback(OnVuMarkLost); //Desactiva todos los objetos for (int i = 0; i < arrayObjetos.Length; i++) { arrayObjetos[i].SetActive(false); } txtId.text = ""; //Borra el texto actual imgVuMark.sprite = null; //Borra el texto actual txtDescripcion.text = ""; //Borra la imagen actual }
// Use this for initialization void Start() { // Get the Planet View component planetView = GetComponent <PlanetView>(); // Register callbacks to VuMark Manager mVuMarkManager = TrackerManager.Instance.GetStateManager().GetVuMarkManager(); mVuMarkManager.RegisterVuMarkDetectedCallback(OnVuMarkDetected); mVuMarkManager.RegisterVuMarkLostCallback(OnVuMarkLost); // Deactivate all Planet views //solarSystem.SetActive(false); foreach (GameObject item in bodiesObj) { Debug.Log("item : " + item); //Debug.Log(item); //item.SetActive(false); } }
// Use this for initialization void Start() { vuMarkManager = TrackerManager.Instance.GetStateManager().GetVuMarkManager(); vuMarkManager.RegisterVuMarkDetectedCallback(VuMarkDetected); vuMarkManager.RegisterVuMarkLostCallback(VuMarkLost); }