unity Find查找简单实用

来源:互联网 发布:2016网络洗脑神曲 编辑:程序博客网 时间:2024/06/03 05:35
using UnityEngine;using System.Collections;public class GameObjectFunctionTest : MonoBehaviour { GameObject object_T; GameObject [] objectS; // Use this for initialization void Start () {  object_T = GameObject .Find ("name_T");  object_T = GameObject .FindWithTag ("tag_T");  objectS = GameObject.FindGameObjectsWithTag ("tag_Objects");  object_T .SetActive (false ); }  // Update is called once per frame void Update () {  }}

0 0