Unreal Engine C++ Developer: Learn C++ and Make Video Games (Udemy)
Section 2: Bulls & Cows Word Console Game 학습 내용

 

구동이미지

 

작성코드

https://github.com/anifilm/workspace/tree/master/cpp_unrealcourse/section_02/BullCowGame

'Study > Unreal Engine 4' 카테고리의 다른 글

[UE4] Unreal Engine C++ Developer: Section 4  (0) 2019.07.01
[UE4] Unreal Engine C++ Developer: Section 3  (0) 2019.07.01
[UE4] VS Code 설정 참고  (0) 2019.06.29
[UE4] C++ with VS Code  (0) 2019.06.26
[UE4] C++ Class 삭제하는 방법  (0) 2019.06.25

c_cpp_properties.json

 

"defines": [
    "IS_PROGRAM=0",
    "UE_EDITOR=1",
    "WITH_DEV_AUTOMATION_TESTS=1",
    "WITH_PERF_AUTOMATION_TESTS=1",
    "UNICODE",
    "_UNICODE",
    "__UNREAL__",
    "IS_MONOLITHIC=0",
    "WITH_ENGINE=1",
    "WITH_UNREAL_DEVELOPER_TOOLS=1",
    "WITH_COREUOBJECT=1",
    "USE_STATS_WITHOUT_ENGINE=0",
    "WITH_PLUGIN_SUPPORT=0",
    "WITH_PERFCOUNTERS=1",
    "USE_LOGGING_IN_SHIPPING=0",
    "WITH_LOGGING_TO_MEMORY=0",
    "USE_CACHE_FREED_OS_ALLOCS=1",
    "USE_CHECKS_IN_SHIPPING=0",
    "UE_BUILD_MINIMAL=0",
    "WITH_EDITOR=1",
    "WITH_SERVER_CODE=1",
    "WITH_CEF3=1",
    "WITH_XGE_CONTROLLER=1",
    "UBT_COMPILED_PLATFORM=Win64",
    "UBT_COMPILED_TARGET=Editor",
    "WIN32=1",
    "_WIN32_WINNT=0x0601",
    "WINVER=0x0601",
    "PLATFORM_WINDOWS=1",
    "DEPTH_32_BIT_CONVERSION=0",
    "NDEBUG=1",
    "UE_BUILD_DEVELOPMENT=1",
    "ORIGINAL_FILE_NAME='UE4Editor-BattleTank.dll'",
    "UE_IS_ENGINE_MODULE=0",
    "UE_BUILD_DEVELOPMENT_WITH_DEBUGGAME=0",
    "UE_PROJECT_NAME=BattleTank",
    "DEPRECATED_FORGAME=DEPRECATED",
    "BATTLETANK_API=",
    "UE_ENABLE_ICU=1",
    "WITH_VS_PERF_PROFILER=0",
    "WITH_DIRECTXMATH=0",
    "CORE_API=",
    "COREUOBJECT_API=",
    "WITH_PHYSX=1",
    "WITH_APEX=1",
    "WITH_APEX_CLOTHING=1",
    "WITH_CLOTH_COLLISION_DETECTION=1",
    "WITH_PHYSX_COOKING=1",
    "WITH_NVCLOTH=1",
    "WITH_RECAST=1",
    "ENGINE_API=",
    "APPLICATIONCORE_API=",
    "RHI_API=",
    "JSON_API=",
    "SLATE_DEFERRED_DESIRED_SIZE=0",
    "WITH_FREETYPE=1",
    "SLATECORE_API=",
    "INPUTCORE_API=",
    "SLATE_API=",
    "WITH_UNREALPNG=1",
    "WITH_UNREALJPEG=1",
    "WITH_UNREALEXR=1",
    "IMAGEWRAPPER_API=",
    "MESSAGINGCOMMON_API=",
    "MESSAGING_API=",
    "RENDERCORE_API=",
    "SHADERCORE_API=",
    "UTILITYSHADERS_API=",
    "ASSETREGISTRY_API=",
    "ENGINEMESSAGES_API=",
    "ENGINESETTINGS_API=",
    "SYNTHBENCHMARK_API=",
    "RENDERER_API=",
    "GAMEPLAYTAGS_API=",
    "WITH_GAMEPLAY_DEBUGGER=1",
    "AIMODULE_API=",
    "GAMEPLAYTASKS_API=",
    "DATABASESUPPORT_API=",
    "PACKETHANDLER_API=",
    "RELIABILITYHANDLERCOMPONENT_API=",
    "HARDWARESURVEY_API=",
    "UNREALED_API=",
    "BSPMODE_API=",
    "DIRECTORYWATCHER_API=",
    "DOCUMENTATION_API=",
    "LOAD_PLUGINS_FOR_TARGET_PLATFORMS=1",
    "PROJECTS_API=",
    "SANDBOXFILE_API=",
    "EDITORSTYLE_API=",
    "SOURCE_CONTROL_WITH_SLATE=1",
    "SOURCECONTROL_API=",
    "UNREALEDMESSAGES_API=",
    "GAMEPLAYDEBUGGER_API=",
    "BLUEPRINTGRAPH_API=",
    "HTTP_PACKAGE=1",
    "HTTP_API=",
    "UNREALAUDIO_API=",
    "FUNCTIONALTESTING_API=",
    "AUTOMATIONCONTROLLER_API=",
    "LOCALIZATION_API=",
    "AUDIOEDITOR_API=",
    "LEVELEDITOR_API=",
    "SETTINGS_API=",
    "INTROTUTORIALS_API=",
    "HEADMOUNTEDDISPLAY_API=",
    "VREDITOR_API=",
    "LANDSCAPE_API=",
    "PROPERTYEDITOR_API=",
    "ACTORPICKERMODE_API=",
    "SCENEDEPTHPICKERMODE_API=",
    "DETAILCUSTOMIZATIONS_API=",
    "CLASSVIEWER_API=",
    "GRAPHEDITOR_API=",
    "CONTENTBROWSER_API=",
    "ENABLE_HTTP_FOR_NFS=1",
    "NETWORKFILESYSTEM_API=",
    "SOCKETS_PACKAGE=1",
    "SOCKETS_API=",
    "UMG_API=",
    "MOVIESCENE_API=",
    "MOVIESCENETRACKS_API=",
    "WITH_OGGVORBIS=1",
    "XAUDIO2_API=",
    "AUDIOMIXERXAUDIO2_API=",
    "COLLECTIONMANAGER_API=",
    "ADDCONTENTDIALOG_API=",
    "USE_EMBREE=1",
    "MESHUTILITIES_API=",
    "MESHMERGEUTILITIES_API=",
    "HIERARCHICALLODUTILITIES_API=",
    "MESHREDUCTIONINTERFACE_API=",
    "ASSETTOOLS_API=",
    "KISMETCOMPILER_API=",
    "KISMET_API=",
    "CLOTHINGSYSTEMRUNTIMEINTERFACE_API=",
    "NETWORKREPLAYSTREAMING_API=",
    "AUDIOMIXER_API="
],

In the spirit of show casing alternative ways of working with Unreal and C++ I wanted to share with you guys how to use Visual Studio Code as your primary IDE.

Visual Studio Code is a fairly lean IDE based on the Electron framework that was designed to tap into the market of Sublime, Atom, etc etc but it works just fine as a C++ editor.

Similar to my earlier post there are a few prerequisites you need to have available / installed to follow this tutorial:

  • Ensure that you either have Visual Studio Community 2017  installed or alternatively just the Visual Studio Build Tools as you need something to still compile the code.
    • Visual Studio Code will recognize what you have these packages installed and assign the correct compiler configurations
  • Unreal Engine 4.20.3
  • Visual Studio Code
  • Windows 10

Once you have these pieces installed, let’s move onto the Unreal Editor configuration

  • Open Unreal Editor ( source or binary doesn’t matter )
  • Go to Edit -> Editor Preferences

  • Then go to General -> Source Code -> Source Code Editor and select Visual Studio Code

  • Once this is done you should now be able to generate a new Visual Studio Code project  using File -> Generate Visual Studio Code Project

  • This generation step will take a few seconds to complete
  • To open up Visual Studio Code go to File -> Open Visual Studio Code

You should now be able to see the IDE getting launched from Unreal and your project available for compilation.

The only other thing you need to be aware of is how to get at the build targets.

To do so you can go to Terminal -> Run Build Task or simply hit CTRL + SHIFT + B

That’s it !

You are now setup to use Visual Studio Code.

 

 

Additional Information

The only other thing you may want to setup within Visual Studio Code are a number of plugins that assist with intellisense, auto complete, etc etc

Here is a list of plugins I currently have configured:

Deleting Visual Studio Code references and changing back to a different editor

In case you are not happy with Visual Studio Code and want to revert things back to use Visual Studio I recommend cleaning up the files the VS Code integration generated.

Specifically the following folders / files inside of your root project:

.vscode/ [PROJECTNAME].code-workspace

Once this is complete you simply follow the initial set of instructions but instead of picking VS Code just select Visual Studio 2015/2017. This should then give you the option to re-generate the Visual Studio project within Unreal Editor ( File -> Refresh / Generate Visual Studio Project )

 

출처 : http://jollymonsterstudio.com/2018/11/02/unreal-c-with-visual-studio-code/

+ Recent posts