Version: 5.6
变换组件 (Transform)
停用游戏对象

使用脚本来创建组件

编写脚本(或创建脚本)是指使用 Unity Scripting API 以代码方式来自行编写 Unity Editor 的附加功能。

创建脚本并将脚本附加到__游戏对象__时,脚本将显示在__游戏对象__的 Inspector 中,就像内置__组件__一样。这是因为,将脚本保存到项目后,脚本也变成了__组件__。

In technical terms, any script you make compiles as a type of component, so the Unity Editor treats your script like a built-in component. You define the members of the scipt to be exposed in the Inspector, and the Editor executes whatever functionality you’ve written.

Read more about creating and using scripts the Scripting section of this User Manual.

变换组件 (Transform)
停用游戏对象