Unity3D说明文档翻译-GameObject

GameObject

游戏对象

SWITCH TO SCRIPTING

切换到脚本

GameObjects are the fundamental objects in Unity that represent characters, props and scenery. They do not accomplish much in themselves but they act as containers for Components, which implement the real functionality.

游戏对象是Unity中的基本对象,用于表示角色,道具和风景.它们本身不能完成这些,但它们表现为能真正实现这些功能的组件的容器.

For example, a Light object is created by attaching a Light component to a GameObject.

例如,一个灯光对象是由附加一个灯光组件到一个游戏对象上创建的.

A simple Cube GameObject with several Components

一个简单的立方体游戏对象和它多个组件

 

A solid cube object has a Mesh Filter and Mesh Renderer component, to draw the surface of the cube, and a Box Collider component to represent the object’s solid volume in terms of physics.

一个立方体对象有一个网格过滤器和一个网格渲染器组件来绘制立方体的表面和一个碰撞检测盒组件代表对象的物理实体体积.

A simple Cube GameObject with several Components

一个带有几个组件的简单立方体游戏对象

Details

详细说明

A GameObject always has a Transform component attached (to represent position and orientation) and it is not possible to remove this. The other components that give the object its functionality can be added from the editor’s Component menu or from a script. There are also many useful pre-constructed objects (primitive shapes, Cameras, etc) available on the GameObject > 3D Object menu, see Primitive Objects.

一个游戏对象通常附加有一个变换组件(用来表示位置和方向)并且不可用删除.其他提供对象功能的组件可通过编辑器的组件菜单或脚本添加.在游戏对象>3D对象菜单上也有许多有用的预先建造的对象(简单形状,摄像机等),参考简单对象.

Since GameObjects are a very important part of Unity, there is a GameObjects section in the manual with extensive detail about them. You can find out more about controlling GameObjects from scripts on the GameObject scripting reference page.

由于游戏对象是Unity中非常重要的部分,手册有一个游戏对象部分对它们详细介绍.你可以在游戏对象脚本编辑参考页面发现更多关于通过脚本控制游戏对象的信息.

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值