Version: 5.6
Transform
Desactivando GameObjects

Creando componentes desde scripting

Programar (o la creación de scripts) es escribir sus propias adiciones a la funcionalidad del Editor de Unity en el código, utilizando el Unity Scripting API.

Cuando cree un script y lo adjunte a un GameObject, el script aparece en el Inspector del GameObject como un Component incorporado. Esto se debe a que los scripts se convierten en components cuando los guarda en su proyecto.

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
Desactivando GameObjects
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961