Blogger Information
Blog 95
fans 0
comment 11
visits 248623
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
Unity3d获取某物体身上的组件(脚本)
龍__遇见彩虹的博客
Original
9072 people have browsed it

using UnityEngine;

using System.Collections;

using Vuforia;//第一步:调用命名空间


public class ChooseModel : MonoBehaviour {


    public GameObject cameraAR;//第二步:获取该物体

    ImageTargetBehaviour imageTarge;//第二步:创建该空间下的接口

    

void Start () {

        imageTarge = cameraAR.GetComponent<ImageTargetBehaviour>();//第三步:取得该物体的组件(或脚本)

    }

void Update () {

        //之后就可以随便用了

    }

}


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post