Unreal/작업방식
언리얼: 모듈 추가해서 코드 분리 작성하기
calci
2021. 10. 21. 12:34
참고링크 : https://docs.unrealengine.com/4.27/en-US/ProgrammingAndScripting/GameplayArchitecture/Gameplay/
Gameplay Modules
Collections of gameplay classes belonging to a game project compiled into DLLs.
docs.unrealengine.com
생성해야 하는 파일
모듈폴더/모듈이름.Build.cs
모듈폴더/모듈이름.h
모듈폴더/모듈이름.cpp
수정해야 하는 파일
Source/메인모듈.Target.cs
Source/메인모듈Editor.Target.cs
새로 생성한 모듈 이름을 ExtraModule을 추가해준다.
프로젝트.uproject
uproject에 모듈도 명시적으로 추가해주기
해야할 일
uproject 파일 우클릭 - Generate Visual Studio Project Files 메뉴
에디터 종료
uproject 파일 실행해서 에디터 모듈 강제 클린 리로드