2D or 3D Projects
2D或3D项目
A 3D game’s space has width, height, and depth (known as “planes X, Y, and Z”, respectively), while a 2D game’s space has only width and height (“planes X and Y”, respectively).
一个3D空间有宽度,高度和深度(分别称为X,Y,Z线),然而一个2D游戏空间只有宽和高(分别是X和Y线).
A 2D project (left) and 3D project (right)
2D项目(左)和3D项目(右)
When you create a project in Unity, you can decide whether it is 2D or 3D mode. The mode determines some settings for the Unity Editor. These settings are are listed below in 2D vs 3D Mode Settings.
当你创建一个Unity项目时,你会决定它是使用2D还是3D模式.这个模式确定了一些Unity编辑器的设置.这些设置被罗列在2D和3D模式设置中.
You can swap between 2D or 3D mode at any time, regardless of the mode you set when you created your project. See Switching Between 3D and 2D Modes below. Some projects use both 2D and 3D elements and are sometimes known as “2.5D”.
你可以在任何时候直接切换2D和3D模式,不管你在创建项目时选择的是什么模式.参考Switching Between 3D and 2D Modes. 有些项目同时使用2D和3D元素有时他们被称为"2.5D".
This manual is a guide to creating projects in 3D and 2D but has some specific pages for 2D project development. See Useful 2D Project Information below.
这个文档是一个创建3D和2D项目的向导但有一些对2D项目开发的特别说明.参考Useful 2D Project Information
Switching Between 3D and 2D Modes
在3D和2D模式间切换
To change modes between 2D or 3D mode:
在2D和3D间改变模式:
1. Bring up to the Editor Settings Inspector, via the Edit>Project Settings>Editor menu.
2. Then set Default Behavior Mode to either 2D or 3D.
1. 通过编辑器>项目设置>编辑器菜单,打开编辑器设置选项.
2. 然后设置默认行为模式为2D或3D.
You can find out more about the Editor Settings Inspector on the Editor Settings page.
Default Behavior Mode in the Editor Settings Inspector sets the project to 2D or 3D
你会在编辑器设置页面发现更多关于编辑器设置选项.编辑器设置选项中的默认行为模式设置项目为2D还是3D.
Useful 2D Project Information
2D项目有益信息
Whichever type of project you are working in, 2D or 3D, there are some useful pages to help you get started. There are also specific pages for 2D features.
每一种项目类型都工作在2D或3D模式中,下面是一些帮助你开始项目的页面.,特别是关于2D的特性.
Getting Started with Unity
开始Unity之旅
· Unity基础
· 创建场景
· 制作游戏
2D Overview
2D综述
· 2D中的游戏
2D Graphics
2D图像
· Sprites
· 精灵
· 精灵制作
· 精灵编辑器
· 精灵包装器
· 精灵渲染器
2D Physics
2D物理
· Physics - An introduction to 2D and 3D physics in Unity.
· Rididbody 2D - Placing a game object under control of the physics 2D engine.
· 物理-一个关于Unity中2D和3D物理技术的说明
· 2D刚体-将一个游戏物体置于物理2D引擎控制之下.
2D Joints
2D关节
· 关节距离
· 2D关节固定
· 2D关节摩擦力
· 2D关节铰链
· 2D关节相对性
· 2D关节滑动器
· 2D关节弹性
· 2D关节标靶
· 2D关节旋转
2D Colliders
2D碰撞检测
· 方形2D碰撞检测
· 圆形2D碰撞检测
· 边际2D碰撞检测
· 多边形2D碰撞检测
2D Physics Material
2D物理材质
· 2D物理材质
2D Effectors
2D效应器
· 区域2D效应器
· 浮力2D效应器
· 平台2D效应器
· 点2D效应器
· 面2D效应器
2D vs 3D Mode Settings
2D和3D模式设置
2D or 3D mode determines some settings for the Unity Editor. These are listed below.
2D或3D模式确定了一些Unity编辑器的设置.如下:
In 2D Project Mode:
在2D项目模式
· Any images you import are assumed to be 2D images (Sprites) and set to Sprite mode.
· The Sprite Packer is enabled.
· The Scene View is set to 2D.
· The default game objects do not have real time, directional light.
· The camera’s default position is at 0,0,–10. (It is 0,1,–10 in 3D Mode.)
· The camera is set to be Orthographic. (In 3D Mode it is Perspective.)
· In the Lighting Window:
o Skybox is disabled for new scenes.
o Ambient Source is set to Color. (With the color set as a dark grey: RGB: 54, 58, 66.)
o Precomputed Realtime GI is set to off.
o Baked GI is set to off.
o Auto-Building set to off.
l 你可以导入任何图像作为2D图像(精灵)和设置为精灵模式
l 启用精灵包装器
l 场景视图设为2D
l 默认游戏物体没有实时光照和方向灯.
l 摄像机默认位置是0,0,-10.(在3D模式中是0,1,-10)
l 摄像机设置为交换视窗(在3D模式是透视模式)
l 光照窗口:
n 在新场景中天空盒不启用
n 把周围资源设置为颜色深灰色:RGB54,58,66 (翻译不通畅,谁来补一下)
n 预先计算实时全局光照设置为关闭
n 烘培全局光照设置为打开
n 自动生成设置为打开
In 3D Project Mode:
在3D项目模式
· Any images you import are NOT assumed to be 2D images (Sprites).
· The Sprite Packer is disabled.
· The Scene View is set to 3D.
· The default game objects have real time, directional light.
· The camera’s default position is at 0,1,–10. (It is 0,0,–10. in 2D Mode.)
· The camera is set to be Perspective. (In 2D Mode it is Orthographic.)
· In the Lighting Window:
o Skybox is the built-in default Skybox Material.
o Ambient Source is set to Skybox.
o Precomputed Realtime GI is set to on.
o Baked GI is set to on.
o Auto-Building is set to on.
l 你不能导入任何图片作为2D图片(精灵)
l 精灵包装器关闭
l 场景试图设为3D
l 默认游戏物体有实时光照和方向灯
l 摄像机默认位置为0,1,-10
l 摄像机设置为交换视窗模式
l 光照窗口:
n 天空盒以默认天空盒材质建立
n 源环境设置为天空盒
n 预先计算实时全局光照打开
n 烘培全局光照关闭
n 自动建造关闭