官术网_书友最值得收藏!

Compiling the code

Now with everything done for the controller, you're ready to jump back to the editor to make use of it. In order to have the code we made executed by the editor, you need to compile it first. Otherwise, the game will keep behaving as if this code has never been added.

There are different ways you can use to do that, both accessed from a different place. So you can:

  • From within the Visual Studio itself, right-click on the game project from the Solution Explorer window and hit Build, and that will do the build for you. If there are any errors, you'll see them in the output panel; otherwise, you will get a success message.
  • From within the Unreal Editor itself, you can simply hit the Compile button from the top bar. If there are code errors, Unreal will show you a failed message with a failed sound effect.

But anyways, regardless of the method you used, if compilation takes quite some time you can still make it faster as you can copy BuildConfiguration.XML from the unreal Engine installation directory (for example): C:\Program Files (x86)\Epic Games\4.10\Engine\Programs\UnrealBuildTool.

Paste it in your Unreal Engine documents folder (for example): C:\Users\<user>\Documents\Unreal Engine\UnrealBuildTool\.

The last step is changing a small value from this XML file, which is ProcessorCountMultiplier, to 2 or 4 is set to 1 by default.

<ProcessorCountMultiplier>1</ProcessorCountMultiplier>
主站蜘蛛池模板: 滕州市| 铁力市| 敖汉旗| 盐池县| 宜兴市| 中卫市| 广宗县| 金华市| 长寿区| 游戏| 砀山县| 汝州市| 重庆市| 德江县| 兴隆县| 晋中市| 二手房| 土默特左旗| 澄城县| 满城县| 岢岚县| 隆子县| 遂溪县| 吴桥县| 聂荣县| 罗田县| 新绛县| 乐陵市| 鱼台县| 东乌珠穆沁旗| 建湖县| 巴里| 锦州市| 大竹县| 宁德市| 大姚县| 鄂伦春自治旗| 伊宁县| 新河县| 吴川市| 同仁县|