RandomWeaponGame

Unreal Engine 빌드

EpicGames 계정 Github 연동

https://www.unrealengine.com/ko/ue4-on-github?sessionInvalidated=true

EpicGames 계정을 Github와 연동해야 함.


Install & configure git

Windows용 Git 설치

https://git-scm.com/download/win

Install & configure git

$ git config -–global user.name “name”
$ git config –-global user.email name@test.com
$ git config –-global core.editor vim
$ git config –-global merge.tool vimdiff
$ git config –-global core.pager “less -r”

Unreal Engine Clone

https://github.com/EpicGames/UnrealEngine

1

git clone git@github.com:EpicGames/UnrealEngine.git --dept 1

Visual Studio 2022 설치

https://my.visualstudio.com/Downloads?q=visual%20studio%202022

2

  • 위의 옵션으로 Visual Studio 2022 설치

.NET Framework 4.6.2

https://dotnet.microsoft.com/en-us/download/dotnet-framework/thank-you/net462-developer-pack-offline-installer

설치를 진행한다.

Unreal Engine Build

  • Setup.bat 실행

  • GenerateProjectFiles.bat 실행

  • UE4.sln 더블 클릭하여 Visual Studio 2022 실행

3

  • UE4를 시작 프로젝트로 지정

4

  • 빌드 항목을 지정

6

  • 로컬 디버거 실행

5

  • 솔루션 탐색기에서 위의 항목을 찾아 우클릭 후, 빌드 진행

    Engine\Binaries\Win64 디렉터리에 UE4Editor.exe 생겼으면 성공

Project Setting

Project Clone

git clone git@github.com:RandomWeaponGame/RandomWeaponGame.git

Visual Studio Code 설치

https://code.visualstudio.com/

Visual Studio 2022 Build Tools 설치

https://aka.ms/vs/17/release/vs_buildtools.exe

7

  • 위의 옵션으로 Visual Studio 2022 Build Tools 설치 ( 설치 시, 경로를 Program File이 아닌 띄어쓰기가 없이 영어로만 되어있는 경로로 바꿀 것.)

Unreal Engine Setting

  • UnrealEngine\Engine\Binaries\Win64\UE4Editor.exe 실행

8

  • 게임 클릭

9

  • 기본 프로젝트 생성

10

  • 아무렇게나 생성 ( 사용하지 않을 프로젝트임 )

11

  • 편집 - 에디터 개인설정

12

  • 소스코드 - 소스 코드 에디터 Visual Studio Code로 변경

Visual Studio Code Setting

  • Visual Studio Code 실행

14

15

  • 위와 같이 Plugin 설치

Project Build

  • Project Clone 받은 경로로 이동

  • RandomWeaponGame.uproject 우클릭 후, Switch Unreal Engine Version 클릭

13

  • 본인이 Build한 Unreal Engine 경로로 지정.

  • RandomWeaponGame.uproject 우클릭 후, Generate Visual Studio project files 클릭

  • Visual Studio Code 켠 후, Project Import.

16

  • 실행 및 디버그 - RandomWeaponEditor (Development) 설정 후, 빌드