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 () {
}
}
unity Find查找简单实用
最新推荐文章于 2024-04-23 19:29:34 发布
