unity2UE
Parrot Game Sample Parrot 游戏示例
本篇为Parrot Game Sample Parrot 游戏示例 的阅读笔记,意在我从unity转ue的一个Epic官方项目,也是在这个项目中熟悉ue的一些关键的概念。
Unity to Unreal Engine Overview
Level Blueprints.
Content/Maps/MainMenu/MainMenu
Level Blueprints 同 Scene 一样
关卡介绍
UE4 World, Level, LevelStreaming
世界(UWorld)
UWorld是UE里面最顶层UObject对象,代表了一个地图,里面存放各种UObject, AActor对象.
UWorld存在哪些地方
在游戏里,大多数时候只存在一个UWorld对象。而在UE引擎编辑器里, 许多UWorld存在。比如当前正在编辑的关卡是一个UWorld, PIE模式存在一个独立的UWorld, 带着独立渲染Viewport窗口的编辑器工具也存在一个UWorld.
C++访问UWorld
Actor获取所在的主World
1 | UWorld* World = GetWorld() |
这里获取的World是间接通过访问Actor所在的Level, 获取Level所在的World.
Level获取所在的主World
1 | Level->OwningWorld |
引擎编辑器获取当前的World
1 | UWorld* World = GEditor->GetEditorWorldContext().World(); |
Sequences in Parrot Parrot 中的序列
Sequences in Parrot Parrot 中的序列
Content/Maps/MainMenu/SwimmingShark
Sequences 同 TimeLine 一样
Subsystems in Parrot(待)
Subsystems 同 unity 单例模式一样
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 零の領域!