1. 组成关系
    GameObject`Component和Object
    1.场景
    一个游戏由多个场景组成
    2.游戏物体GameObject
    一个场景由多个游戏物体组成
    3.组件Component
    一个游戏物体由多个组件组成
    另附:常用组件
    GameObject`Component和Object
  2. 继承关系
    GameObject`Component和Object
    1.相同:
    共同继承于UnityEngine Object
    name获得游戏物体的名字
    Destroy(销毁)
    Destroyimmediate(即可销毁)
    DomtDestroyOnload
    FindObjectOfType
    FindObjectsOfType
    Instantiate
    等。

2.不同
GameObject:
GameObject`Component和Object
Component:
GameObject`Component和Object

相关文章:

  • 2019-10-26
  • 2019-06-30
  • 2021-12-18
  • 2018-09-07
  • 2021-11-20
  • 2021-11-07
  • 2021-11-04
猜你喜欢
  • 2021-12-16
  • 2020-04-30
  • 2021-12-28
  • 2021-05-19
  • 2021-05-26
  • 2021-07-31
  • 2021-12-05
  • 2019-12-21
相关资源
相似解决方案