GameObject类(一)

  1. 构造方法
        GameObject sk = new GameObject("bill", typeof(SpringJoint));
  1. 一些方法
        print(gameObject.GetInstanceID());
        BoxCollider[] gg=  FindObjectsOfType<BoxCollider>();
        object[] ss = FindObjectsOfType(typeof(BoxCollider));   

猜你喜欢

转载自blog.csdn.net/qq_37811712/article/details/86304652
今日推荐