前言
寒假回家到现在已经有十多天了,这些天回家不是睡就是吃....哎╮(╯▽╰)╭,今天早上一觉醒来,突然得知,UE4免费了,这绝对是个好消息,前不久我还在纠结怎么申请校园账号呢o(╯□╰)o。迫不及待打开电脑下载了UE引擎的一个类似管理的客户端,在里面最醒目的一栏,看到一个令人哭笑不得的导航,如下图:
EPIC这是要逆天的节奏吗?不过不管他了,接下来,我们便一同学习一下EPIC提供给我们的这篇从Unity过渡到UE4的经验之谈吧。说明一下,下面我将对这篇文章中的重点内容做翻译和一些自己的见解,仅供参考,若需更详细的内容,请访问官方提供的文档手册。
那我们就开始吧
The Editor 编辑器
两个编辑器的布局如下:
Editing Assets编辑资源
Detail面板就是负责编辑工程资源,类似于Unity里面的Inspector。
Quick Glossary(Glossary:术语)
两个引擎的部分术语对比:
Category | Unity | UE4 |
---|---|---|
Gameplay Types | Component | Component |
|
GameObject | Actor, Pawn |
|
Prefab | Blueprint Class |
Editor UI | Hierarchy Panel | World Outliner |
|
Inspector | Details Panel |
|
Project Browser | Content Browser |
|
Scene View | Viewport |
Meshes | Mesh | Static Mesh |
|
Skinned Mesh | Skeletal Mesh |
Materials | Shader | Material, Material Editor |
|
Material | Material Instance |
Effects | Particle Effect | Effect, Particle, Cascade |
|
Shuriken | Cascade |
Game UI | UI | UMG (Unreal Motion Graphics) |
Animation | Animation | Skeletal Animation System |
|
Mecanim | Persona , Animation Blueprint |
2D | Sprite Editor | Paper2D |
Programming | C# | C++ |
|
Script | Blueprint |
Physics | Raycast | Line Trace, Shape Trace |
|
Rigid Body | Collision, Physics |
Runtime Platforms | iOS Player, Web Player | Platforms |
Projects and files工程和文件
So what are all these directories and files?工程目录和文件的具体内容?
Just like Unity projects, Unreal projects always exist in their own directory and have their own project file. You can double-click on .uproject files to load your game into the Unreal Editor, or right click for additional options. Project folders have various sub-folders that contain your game's content and source as well as various configuration files and binaries. The most important are the Content and Source sub-folders.就像Untiy的工程一样,Unreal4的每一个工程都有他们单独的工程文件夹。可以通过双击.uproject 文件打开工程,或者通过右键查看更多选项。UE4的工程文件夹包含很多子文件夹和文件,里面最重要的是Content和Source 文件夹。
Where do I put my assets?我应该把资源放在那里?
In UE4, each project has a Content folder. Similar to a Unity project's Assets folder, this is where your game assets are stored. To import assets into your game simply drop files into your project's Content directory and they will be automatically imported and appear in the Content Browser. The assets in the editor will update automatically as you make changes to the files using an external program.UE4的工程文件夹里面的Content文件夹和Unity的Asset文件夹类似,用来存放游戏资源。可以通过拖拽的方式,载入资源,对资源进行处理过后,UE4工程将会自动在Content文件夹和ContentBrowser面板中更新资源信息。
What common file formats are supported?支持的文件格式
UE4所能支持的一些文件格式
Asset Type | Supported Formats |
---|---|
3D | .fbx, .obj |
Texture | .png, .jpeg, .bmp ,.tga, .dds, .exr, .psd, .hdr |
Sound | .wav |
Fonts | .ttf, .otf |
Videos | .mov, .mp4, .wmv |
How is my Scene stored?场景文件是如何存储的呢?
In Unity you place GameObjects in a scene and save that as a Scene asset file. Unreal has a Map file that is