从Unity引擎过度到Unreal4引擎(最终版)

本文档详细介绍了从Unity过渡到Unreal4的过程,涵盖了编辑器、资源管理、术语、工程结构、游戏对象与Actor、代码编写、游戏逻辑等多个方面。在UE4中,Actor相当于Unity的GameObject,而Component则对应于Unity的组件。此外,文档还讨论了物理系统、输入事件、碰撞检测等方面的差异,并提供了常见问题解答。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 前言

        

        寒假回家到现在已经有十多天了,这些天回家不是睡就是吃....哎╮(╯▽╰)╭,今天早上一觉醒来,突然得知,UE4免费了,这绝对是个好消息,前不久我还在纠结怎么申请校园账号呢o(╯□╰)o。迫不及待打开电脑下载了UE引擎的一个类似管理的客户端,在里面最醒目的一栏,看到一个令人哭笑不得的导航,如下图:

  

       EPIC这是要逆天的节奏吗?不过不管他了,接下来,我们便一同学习一下EPIC提供给我们的这篇从Unity过渡到UE4的经验之谈吧。说明一下,下面我将对这篇文章中的重点内容做翻译和一些自己的见解,仅供参考,若需更详细的内容,请访问官方提供的文档手册。

      原文目录:https://docs.unrealengine.com/latest/INT/GettingStarted/FromUnity/index.html?utm_source=uelauncher&utm_medium=software&utm_campaign=learntab


那我们就开始吧

The Editor  编辑器

两个编辑器的布局如下:



Editing Assets编辑资源


Detail面板就是负责编辑工程资源,类似于Unity里面的Inspector。


Quick Glossary(Glossary:术语)

 两个引擎的部分术语对比:

Category Unity UE4
Gameplay Types Component Component

GameObject ActorPawn

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 MaterialMaterial 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

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值