构造物体的方法
1.第一种创建方法
GameObjecy go =new GameObject(“Cube”);
2.第二种
根据prefab
根据另外一个游戏物体
GameObject.Instantiate(prefab);
GameObject.CreatePrimitive(PrimitiveType.Plane);
3.第三种,创建原始的几何体
GameObject.CreatPrimitive(Primitive.Plame);
GameObjecy go =GameObject.CreatePrimitive(PrimitiveType.Plane);
go.AddComponent();
goAddComponnent();
如何禁用和启用一个游戏物体
activeinHierarchy 判断一个物体的属性是否**
tag用来判断物体
九到十四课时笔记
九到十四课时笔记

相关文章:

  • 2021-11-05
  • 2022-01-15
  • 2021-11-01
  • 2022-12-23
  • 2021-12-02
  • 2021-08-18
  • 2022-12-23
  • 2021-06-20
猜你喜欢
  • 2021-05-08
  • 2021-06-12
  • 2021-11-20
  • 2021-07-14
  • 2021-07-25
  • 2021-12-21
  • 2021-12-13
相关资源
相似解决方案