コード例 #1
0
 void Start()
 {
     mTrackableBehaviour = GetComponent <Vuforia.TrackableBehaviour>();
     if (mTrackableBehaviour)
     {
         mTrackableBehaviour.RegisterTrackableEventHandler(this);
     }
 }
コード例 #2
0
 void Start()
 {
     manager             = GameObject.FindObjectOfType <Manage> ();
     mTrackableBehaviour = GetComponent <TrackableBehaviour>();
     if (mTrackableBehaviour)
     {
         mTrackableBehaviour.RegisterTrackableEventHandler(this);
     }
 }
コード例 #3
0
 void Start()
 {
     mTrackableBehaviour = GetComponent <TrackableBehaviour>();
     if (mTrackableBehaviour)
     {
         mTrackableBehaviour.RegisterTrackableEventHandler(this);
     }
     DigitalEyewearARController.Instance.EnableWorldAnchorUsage(false);
 }
コード例 #4
0
 void Start()
 {
     mTrackableBehaviour = GetComponent <TrackableBehaviour>();
     trackingFound       = false;
     if (mTrackableBehaviour)
     {
         mTrackableBehaviour.RegisterTrackableEventHandler(this);
     }
 }
コード例 #5
0
 // Use this for initialization
 void Start()
 {
     rbRef       = gameObject.GetComponent <Rigidbody>();
     trackingRef = trackingTarget.GetComponent <TrackableBehaviour>();
     if (trackingRef)
     {
         trackingRef.RegisterTrackableEventHandler(this);
     }
 }
コード例 #6
0
 void Start()
 {
     arCam = GameObject.Find("ARCamera");
     mTrackableBehaviour = GetComponent <TrackableBehaviour>();
     if (mTrackableBehaviour)
     {
         mTrackableBehaviour.RegisterTrackableEventHandler(this);
     }
 }
 void Start()
 {
     mTrackableBehaviour = GetComponent <TrackableBehaviour>();
     if (mTrackableBehaviour)
     {
         mTrackableBehaviour.RegisterTrackableEventHandler(this);
     }
     soundTarget = (AudioSource)gameObject.AddComponent <AudioSource> ();
 }
コード例 #8
0
 void Start()
 {
     mTrackableBehaviour = GetComponent <TrackableBehaviour>();
     select_flag         = false;
     if (mTrackableBehaviour)
     {
         mTrackableBehaviour.RegisterTrackableEventHandler(this);
     }
 }
コード例 #9
0
            public void SetWorldAnchor(TrackableBehaviour trackableBehaviour, TrackableIdPair trackableID)
            {
                // add a world anchor to the given trackablebehaviour
                WorldAnchor wa = trackableBehaviour.gameObject.AddComponent <WorldAnchor>();

                mWorldAnchors[trackableID] = wa;
                // register for callbacks
                wa.OnTrackingChanged += OnWorldAnchorTrackingChanged;
            }
コード例 #10
0
 void Start()
 {
     //textInfo.transform.Find("ProductNameText").GetComponent<Text>().text = "";
     mTrackableBehaviour = GetComponent <TrackableBehaviour>();
     if (mTrackableBehaviour)
     {
         mTrackableBehaviour.RegisterTrackableEventHandler(this);
     }
 }
コード例 #11
0
 void Start()
 {
     video = controller.GetComponent <ControlVideo> ();
     mTrackableBehaviour = GetComponent <TrackableBehaviour>();
     if (mTrackableBehaviour)
     {
         mTrackableBehaviour.RegisterTrackableEventHandler(this);
     }
 }
コード例 #12
0
 void Start()
 {
     field = GameObject.Find("FieldTarget");
     mTrackableBehaviour = GetComponent <TrackableBehaviour>();
     if (mTrackableBehaviour)
     {
         mTrackableBehaviour.RegisterTrackableEventHandler(this);
     }
 }
コード例 #13
0
        public Transform Target;//识别物

        //bool isFirstTime = true;

        #endregion // PRIVATE_MEMBER_VARIABLES



        #region UNTIY_MONOBEHAVIOUR_METHODS

        void Start()
        {
            mTrackableBehaviour = GetComponent <TrackableBehaviour>();
            if (mTrackableBehaviour)
            {
                mTrackableBehaviour.RegisterTrackableEventHandler(this);
            }
            //Target.GetComponent<MeshRenderer>().enabled = false;//起始时不显示
        }
コード例 #14
0
 void Start()
 {
     //augmented = GameObject.FindGameObjectWithTag ("aumgented");
     mTrackableBehaviour = GetComponent <TrackableBehaviour>();
     if (mTrackableBehaviour)
     {
         mTrackableBehaviour.RegisterTrackableEventHandler(this);
     }
 }
コード例 #15
0
        /*
         * public string url = "http://tcon1.dothome.co.kr/image/number_10.91515.png";;
         * public Texture2D mTex = new Texture2D(4, 4, TextureFormat.DXT1, false);
         * public RawImage Rimage;
         */

        #endregion // PRIVATE_MEMBER_VARIABLES



        #region UNTIY_MONOBEHAVIOUR_METHODS

        void Start()
        {
            mTrackableBehaviour = GetComponent <TrackableBehaviour>();
            if (mTrackableBehaviour)
            {
                mTrackableBehaviour.RegisterTrackableEventHandler(this);
            }
            popImage.sprite = Resources.Load <Sprite>("markerbar1");
        }
コード例 #16
0
        void Start()
        {
            canvas.enabled = false;

            mTrackableBehaviour = GetComponent <TrackableBehaviour>();
            if (mTrackableBehaviour)
            {
                mTrackableBehaviour.RegisterTrackableEventHandler(this);
            }
        }
コード例 #17
0
 void Start()
 {
     //m_check_manager = GameObject.Find("CheckManager").GetComponent<CheckManager>();
     child_transform     = transform.GetChild(0);
     mTrackableBehaviour = GetComponent <TrackableBehaviour>();
     if (mTrackableBehaviour)
     {
         mTrackableBehaviour.RegisterTrackableEventHandler(this);
     }
 }
コード例 #18
0
        void Start()
        {
            mTrackableBehaviour = GetComponent <TrackableBehaviour>();
            if (mTrackableBehaviour)
            {
                mTrackableBehaviour.RegisterTrackableEventHandler(this);
            }

            transform.SetParent(scene.transform);
        }
コード例 #19
0
        /////


        #endregion         // PRIVATE_MEMBER_VARIABLES



        #region UNTIY_MONOBEHAVIOUR_METHODS

        void Start()
        {
            mTrackableBehaviour = GetComponent <TrackableBehaviour>();
            if (mTrackableBehaviour)
            {
                mTrackableBehaviour.RegisterTrackableEventHandler(this);
            }
            startscale = ObjectPrefab.transform.localScale;
            Debug.Log("start scale: " + startscale);
        }
コード例 #20
0
        //private static bool trackedSingleFrameMarker = false;

        void Start()
        {
            model = null;
            mTrackableBehaviour = GetComponent <TrackableBehaviour>();
            if (mTrackableBehaviour)
            {
                mTrackableBehaviour.RegisterTrackableEventHandler(this);
            }
            network = GameObject.Find("GameNetwork");
        }
コード例 #21
0
        //private ArrayList foundModels;
        //private ArrayList foundModelsC;

        #endregion // PRIVATE_MEMBER_VARIABLES



        #region UNTIY_MONOBEHAVIOUR_METHODS

        void Start()
        {
            mTrackableBehaviour = GetComponent <TrackableBehaviour>();
            //foundModels = new ArrayList();
            //foundModelsC = new ArrayList();
            if (mTrackableBehaviour)
            {
                mTrackableBehaviour.RegisterTrackableEventHandler(this);
            }
        }
コード例 #22
0
        void Start()
        {
            mImportSpheres      = FindObjectOfType <ImportSpheres>();
            mTrackableBehaviour = GetComponent <TrackableBehaviour>();

            if (mTrackableBehaviour)
            {
                mTrackableBehaviour.RegisterTrackableEventHandler(this);
            }
        }
コード例 #23
0
 void Start()
 {
     mTrackableBehaviour = GetComponent <TrackableBehaviour>();
     if (mTrackableBehaviour)
     {
         mTrackableBehaviour.RegisterTrackableEventHandler(this);
     }
     soundTarget = (AudioSource)gameObject.AddComponent <AudioSource>();
     clipTarget  = (AudioClip)Resources.Load("sounds/Kids");
 }
コード例 #24
0
        void Start()
        {
            UItext = FindObjectOfType <Text>();

            mTrackableBehaviour = GetComponent <TrackableBehaviour>();
            if (mTrackableBehaviour)
            {
                mTrackableBehaviour.RegisterTrackableEventHandler(this);
            }
        }
コード例 #25
0
 void Start()
 {
     //Player.SetActive (false);
     gameController.SetActive(false);
     mTrackableBehaviour = GetComponent <TrackableBehaviour>();
     if (mTrackableBehaviour)
     {
         mTrackableBehaviour.RegisterTrackableEventHandler(this);
     }
 }
コード例 #26
0
 void Start()
 {
     // intially false these buttons
     mTrackableBehaviour = GetComponent <TrackableBehaviour>();
     if (mTrackableBehaviour)
     {
         mTrackableBehaviour.RegisterTrackableEventHandler(this);
     }
     canvas2.gameObject.SetActive(false);
 }
コード例 #27
0
 private void Start()
 {
     RequestSendHandler  = FindObjectOfType <RequestSendHandler>();
     mTrackableBehaviour = GetComponent <TrackableBehaviour>();
     if (mTrackableBehaviour)
     {
         mTrackableBehaviour.RegisterTrackableEventHandler(this);
     }
     _targetIDComponent = GetComponent <TargetID>();
 }
コード例 #28
0
        void Start()
        {
            mTrackableBehaviour = GetComponent <TrackableBehaviour>();
            if (mTrackableBehaviour)
            {
                mTrackableBehaviour.RegisterTrackableEventHandler(this);
            }

            //Sphere s = GetComponent<Sphere>();
        }
コード例 #29
0
        //public GameObject canvasUI;
        #endregion // PUBLIC_MEMBER_VARIABLES

        #region UNTIY_MONOBEHAVIOUR_METHODS
        void Start()
        {
            //canvasUI.SetActive(false);

            mTrackableBehaviour = GetComponent <TrackableBehaviour>();
            if (mTrackableBehaviour)
            {
                mTrackableBehaviour.RegisterTrackableEventHandler(this);
            }
        }
コード例 #30
0
        void Start()
        {
            mTrackableBehaviour = GetComponent <TrackableBehaviour>();
            if (mTrackableBehaviour)
            {
                mTrackableBehaviour.RegisterTrackableEventHandler(this);
            }

            Screen.autorotateToPortrait = true;
        }