// Use this for initialization void Start () { rotations = new Queue<Quaternion>(smoothingFrames); positions = new Queue<Vector3>(smoothingFrames); qcarBehavior = GetComponent<QCARBehaviour>(); qcarBehavior.RegisterTrackerEventHandler(this, true); }
// Use this for initialization void Start() { rotations = new Queue <Quaternion>(smoothingFrames); positions = new Queue <Vector3>(smoothingFrames); qcarBehavior = GetComponent <QCARBehaviour>(); qcarBehavior.RegisterTrackerEventHandler(this, true); }
void Start() { // register for the OnInitialized event at the QCARBehaviour QCARBehaviour qcarBehaviour = (QCARBehaviour)FindObjectOfType(typeof(QCARBehaviour)); if (qcarBehaviour) { qcarBehaviour.RegisterTrackerEventHandler(this); } // Setup position and size of the camera menu. ComputePosition(); // Find the Wood image target. mImageTargetWood = GameObject.Find("ImageTargetWood").GetComponent <ImageTargetBehaviour>(); // Add a mesh for each virtual button on the Wood target. VirtualButtonBehaviour[] vbs = mImageTargetWood.gameObject.GetComponentsInChildren <VirtualButtonBehaviour>(); foreach (VirtualButtonBehaviour vb in vbs) { CreateVBMesh(vb); // Also store the position and scale for later. mVBPositionDict.Add(vb.VirtualButtonName, vb.transform.localPosition); mVBScaleDict.Add(vb.VirtualButtonName, vb.transform.localScale); } }
/// <summary> /// Register for the OnInitialized event at the QCARBehaviour /// </summary> void Start() { QCARBehaviour qcarBehaviour = (QCARBehaviour)FindObjectOfType(typeof(QCARBehaviour)); if (qcarBehaviour) { qcarBehaviour.RegisterTrackerEventHandler(this); } }
void Start() { QCARBehaviour qcarBehaviour = GetComponent <QCARBehaviour>(); if (qcarBehaviour) { qcarBehaviour.RegisterTrackerEventHandler(this); } }
void Start() { // register for initialized callback at QCARBehaviour QCARBehaviour qcarBehaviour = (QCARBehaviour)FindObjectOfType(typeof(QCARBehaviour)); if (qcarBehaviour) { qcarBehaviour.RegisterTrackerEventHandler(this); } }
// Use this for initialization void Start() { // Register this class as ITrackerEventHandler // for the QCARBehaviour QCARBehaviour qcar = GetComponentInChildren <QCARBehaviour>(); if (qcar) { qcar.RegisterTrackerEventHandler(this); } }
void Start() { QCARBehaviour qcarBehaviour = this.GetComponent <QCARBehaviour>(); if (qcarBehaviour) { qcarBehaviour.RegisterTrackerEventHandler(this); } else { throw new MissingComponentException(); } }
// Use this for initialization void Start() { QCARBehaviour qcar = (QCARBehaviour)FindObjectOfType(typeof(QCARBehaviour)); if (qcar) { qcar.RegisterTrackerEventHandler(this); } else { Debug.LogError("Could not find QCARBehaviour (i.e. ARCamera) in the scene"); } }
void Start() { QCARBehaviour qcarBehaviour = GetComponent <QCARBehaviour>(); if (qcarBehaviour) { qcarBehaviour.RegisterTrackerEventHandler(this, false); } isFrameFormatSet = CameraDevice.Instance.SetFrameFormat(Image.PIXEL_FORMAT.GRAYSCALE, true); InvokeRepeating("Autofocus", 1f, 2f); }
/// <summary> /// Register for the OnInitialized event at the QCARBehaviour /// </summary> void Start() { // keeps the cloud reco object alive across scenes: if (KeepAliveBehaviour.Instance.KeepCloudRecoBehaviourAlive) { DontDestroyOnLoad(gameObject); } QCARBehaviour qcarBehaviour = (QCARBehaviour)FindObjectOfType(typeof(QCARBehaviour)); if (qcarBehaviour) { qcarBehaviour.RegisterTrackerEventHandler(this); } }
void Start() { // keeps the udt builder object alive across scenes: if (KeepAliveBehaviour.Instance != null && KeepAliveBehaviour.Instance.KeepUDTBuildingBehaviourAlive) { DontDestroyOnLoad(gameObject); } // register for initialized callback at QCARBehaviour QCARBehaviour qcarBehaviour = (QCARBehaviour)FindObjectOfType(typeof(QCARBehaviour)); if (qcarBehaviour) { qcarBehaviour.RegisterTrackerEventHandler(this); } }
public void Start() { // register for the OnInitialized event at the QCARBehaviour QCARBehaviour qcarBehaviour = (QCARBehaviour)FindObjectOfType(typeof(QCARBehaviour)); if (qcarBehaviour) { qcarBehaviour.RegisterTrackerEventHandler(this); } // load and set gui style mUISkin = Resources.Load("UserInterface/ButtonSkins") as GUISkin; // remember all custom styles in gui skin to avoid constant lookups mButtonGUIStyles = new Dictionary <string, GUIStyle>(); foreach (GUIStyle customStyle in mUISkin.customStyles) { mButtonGUIStyles.Add(customStyle.name, customStyle); } }
/// <summary> /// Use this for initialize /// </summary> void Start() { // Set frame format, RGB888 equal to RGB24 if (Application.platform == RuntimePlatform.Android) { m_PixelFormat = Image.PIXEL_FORMAT.RGB888; } else { m_PixelFormat = Image.PIXEL_FORMAT.GRAYSCALE; } // Register to have access to trackable events QCARBehaviour qcarBehaviour = (QCARBehaviour)FindObjectOfType(typeof(QCARBehaviour)); if (qcarBehaviour) { qcarBehaviour.RegisterTrackerEventHandler(this); } }