原版的:http://edu.china.unity3d.com/learning_document/getData?file=/Manual/TheComponent-ScriptRelationship.html

创建脚本并将其连接到游戏对象 (GameObject) 时,脚本会出如今游戏对象 (GameObject) 的检视器 (Inspector) 中,就像一个组件 (Component)。

这是由于脚本在保存时变成了组件 (Components) - 脚本仅仅是一个特定类型的组件 (Component)。在技术层面,脚本编译器作为一种成分的 (Component),Unity 发动机一样的待遇其他组件。

所以基本上,脚本是您自己创建的一个组成部分 (Component),您将定义在观众的显示器 (Inspector) 这些元素。它将运行任何你写的功能。


相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-12
  • 2021-10-19
  • 2022-12-23
  • 2021-11-10
猜你喜欢
  • 2021-10-21
  • 2021-11-04
  • 2021-10-11
  • 2021-09-11
  • 2021-12-10
  • 2021-11-02
  • 2021-06-19
相关资源
相似解决方案