Unity3D说明文档翻译-Creating Components
来源:互联网 发布:人类进化史知乎 编辑:程序博客网 时间:2024/05/17 08:21
Creating Components
创建组件
When you create a script and attach it to a GameObject, the script appears in the GameObject’s Inspector just like a Component. This is because scripts become Components when they are saved - a script is just a specific type of Component. In technical terms, a script compiles as a type of Component, and is treated like any other Component by the Unity engine. So basically, a script is a Component that you are creating yourself. You will define its members to be exposed in the Inspector, and it will execute whatever functionality you’ve written.
当你创建一个脚本并附加到一个游戏对象上,脚本将显示在对象的检视面板上就像一个组件.这是因为当脚本被保存时脚本变成了组件-一个脚本仅是一个特定类型的组件.在专业术语中,一个脚本编译为一个组件类型,并被Unity引擎视为和任何其他组件一样.所以本质上,一个脚本就是一个组件.你可以定义它的成员来在检视面板上暴露,和它将执行些什么功能.
Read more about creating and using scripts the Scripting section of the manual.
阅读更多关于创建和使用脚本,查看手册的”脚本”部分.
- Unity3D说明文档翻译-Creating Components
- Unity3D说明文档翻译-Introduction to Components
- Unity3D说明文档翻译-Using Components
- Unity3D说明文档翻译-Creating Gameplay
- Unity3D说明文档翻译-Basics
- Unity3D说明文档翻译-Searching
- Unity3D说明文档翻译-Scenes
- Unity3D说明文档翻译-GameObjects
- Unity3D说明文档翻译-GameObject
- Unity3D说明文档翻译-Transform
- Unity3D说明文档翻译-Tags
- Unity3D说明文档翻译-Prefabs
- Unity3D说明文档翻译-Input
- Unity3D说明文档翻译-Graphics
- Unity3D说明文档翻译-Physics
- Unity3D说明文档翻译-Scripting
- Unity3D说明文档翻译-Audio
- Unity3D说明文档翻译-Animation
- centos7在vmware上安装后不能连接网络和没有ifconfig命令
- liunx终端进入、退出python命令行
- spring boot入门实现
- sql 面试题
- 研究生的非学历教育
- Unity3D说明文档翻译-Creating Components
- Android 双应用实例的一点记录
- 创建单链表,求链表长度、查找、插入、删除、合并。
- 短 URL 系统是怎么设计的?
- 安装数据库mysql
- React.js 小书
- VMware 12安装Redhat 7.0详解
- 无法将文件”obj\debug\XXX.dll复制到“bin\Debug\XXX.dll”的错误?
- 设置环境变量