# C++

**URL:** https://forums.unrealengine.com/c/development-discussion/programming-scripting/c-programming/29.md?page=34

[Latest](https://forums.unrealengine.com/latest.md) · [Categories](https://forums.unrealengine.com/categories.md) · [Tags](https://forums.unrealengine.com/tags.md)

**Page:** 35

---

## [How can I optimize lighting performance in Unreal Engine 5 when using Lumen? ](https://forums.unrealengine.com/t/how-can-i-optimize-lighting-performance-in-unreal-engine-5-when-using-lumen/2519097)

<div class="topic-metadata">

**Author:** [@Daniel\_Lee\_Xyz](https://forums.unrealengine.com/u/Daniel_Lee_Xyz)\
**Replies:** 2\
**Last updated:** [June 19, 2025, 6:06am UTC](https://forums.unrealengine.com/t/how-can-i-optimize-lighting-performance-in-unreal-engine-5-when-using-lumen/2519097 "2025-06-19T06:06:13Z")

</div>

You can optimize lighting performance with Lumen in UE5 by: Lowering Screen Traces in your Post Process Volume. Using Software Ray Tracing instead of Hardware if your hardware struggles. Setting Global Illumination and…

---

## [Adding C++ Code to UE 5.5 Causes "The Following Modules Are Missing" ](https://forums.unrealengine.com/t/adding-c-code-to-ue-5-5-causes-the-following-modules-are-missing/2536453)

<div class="topic-metadata">

**Author:** [@dayspring\_games](https://forums.unrealengine.com/u/dayspring_games)\
**Replies:** 1\
**Last updated:** [June 19, 2025, 2:11am UTC](https://forums.unrealengine.com/t/adding-c-code-to-ue-5-5-causes-the-following-modules-are-missing/2536453 "2025-06-19T02:11:35Z")

</div>

In certain UE 5.5 projects where C++ code is added to a Blueprint project or a fresh C++ project is created, the Game target build succeeds and populates the Binaries\\Win64 folder with executables and DLLs, yet the Edito…

---

## [Replicated/Multicasted characters only multicast their VFX when a server character is physically looking at them.](https://forums.unrealengine.com/t/replicated-multicasted-characters-only-multicast-their-vfx-when-a-server-character-is-physically-looking-at-them/2565135)

<div class="topic-metadata">

**Author:** [@xsmokumsx](https://forums.unrealengine.com/u/xsmokumsx)\
**Replies:** 1\
**Last updated:** [June 18, 2025, 10:27pm UTC](https://forums.unrealengine.com/t/replicated-multicasted-characters-only-multicast-their-vfx-when-a-server-character-is-physically-looking-at-them/2565135 "2025-06-18T22:27:59Z")

</div>

Hi, I was wondering if anyone knows what might be up here with this. I have an issue where im trying redesign my client side prediction systems for my networked characters, and everything has worked pretty well so far, I…

---

## [Compiled project wont run, module compiled with different version?](https://forums.unrealengine.com/t/compiled-project-wont-run-module-compiled-with-different-version/2554043)

<div class="topic-metadata">

**Author:** [@ShreddinPB](https://forums.unrealengine.com/u/ShreddinPB)\
**Replies:** 2\
**Last updated:** [June 17, 2025, 6:12pm UTC](https://forums.unrealengine.com/t/compiled-project-wont-run-module-compiled-with-different-version/2554043 "2025-06-17T18:12:26Z")

</div>

Hey guys, I am working on my game and after updating a plugin and compiling running the project file complains the plugin isnt compiled for the correct version of the engine. The project directories are setup like so: P…

---

## [Bink Media Player - SetRate does not really work?](https://forums.unrealengine.com/t/bink-media-player-setrate-does-not-really-work/2554290)

<div class="topic-metadata">

**Author:** [@Ysgrathe](https://forums.unrealengine.com/u/Ysgrathe)\
**Replies:** 3\
**Last updated:** [June 17, 2025, 5:14pm UTC](https://forums.unrealengine.com/t/bink-media-player-setrate-does-not-really-work/2554290 "2025-06-17T17:14:17Z")

</div>

After spending a bunch of time trying to figure out why attempting to call SetRate with any number of different values in an attempt to speed up, or slow down playback didnt work (AS I THINK MOST PEOPLE WOULD EXPECT), I …

---

## [Constants for Gameplay tags](https://forums.unrealengine.com/t/constants-for-gameplay-tags/258140)

<div class="topic-metadata">

**Author:** [@reisandbeans](https://forums.unrealengine.com/u/reisandbeans)\
**Replies:** 12\
**Last updated:** [June 17, 2025, 3:56pm UTC](https://forums.unrealengine.com/t/constants-for-gameplay-tags/258140 "2025-06-17T15:56:54Z")

</div>

Hello! I’m getting started with Gameplay tags (and Unreal as a whole to be honest) and it seems a pretty useful system. I have a mix of C++ and Blueprint classes and I was looking for a way of sharing gameplay tags betw…

---

## [Remove Actor Instance](https://forums.unrealengine.com/t/remove-actor-instance/2562102)

<div class="topic-metadata">

**Author:** [@Moosah](https://forums.unrealengine.com/u/Moosah)\
**Replies:** 1\
**Last updated:** [June 17, 2025, 1:56pm UTC](https://forums.unrealengine.com/t/remove-actor-instance/2562102 "2025-06-17T13:56:27Z")

</div>

Hi, Wondering if anyone has successfully implemented this function in 5.6, and if so you could share your implementation? Any way I’ve attempted it causes the engine to crash. I’ve tried various things, generally al…

---

## [\[SOLVED\] Cannot package Plugin due to AllowWindowsPlatformTypes.h not being found by the build tool](https://forums.unrealengine.com/t/solved-cannot-package-plugin-due-to-allowwindowsplatformtypes-h-not-being-found-by-the-build-tool/121347)

<div class="topic-metadata">

**Author:** [@vr\_marco](https://forums.unrealengine.com/u/vr_marco)\
**Replies:** 7\
**Last updated:** [June 17, 2025, 9:08am UTC](https://forums.unrealengine.com/t/solved-cannot-package-plugin-due-to-allowwindowsplatformtypes-h-not-being-found-by-the-build-tool/121347 "2025-06-17T09:08:15Z")

</div>

Hi there, I have written a Plugin, basically a BP Function Library, which is Windows specific. Since it requires some Windows specific includes, I have used AllowWindowsPlatformTypes.h / HideWindowsPlatformTypes.h to in…

---

## [I have a software idea I wanted to submit to epic ](https://forums.unrealengine.com/t/i-have-a-software-idea-i-wanted-to-submit-to-epic/2561372)

<div class="topic-metadata">

**Author:** [@Chaotic316](https://forums.unrealengine.com/u/Chaotic316)\
**Replies:** 1\
**Last updated:** [June 17, 2025, 7:57am UTC](https://forums.unrealengine.com/t/i-have-a-software-idea-i-wanted-to-submit-to-epic/2561372 "2025-06-17T07:57:38Z")

</div>

So I have created a software that I’m trying to pitch to unreal engine and I’m trying to figure out how I would do that

---

## [BlueprintCallable function with delegate doesn't work if the delegate has a TArray of UObjects](https://forums.unrealengine.com/t/blueprintcallable-function-with-delegate-doesnt-work-if-the-delegate-has-a-tarray-of-uobjects/2561175)

<div class="topic-metadata">

**Author:** [@andyvyking](https://forums.unrealengine.com/u/andyvyking)\
**Replies:** 1\
**Last updated:** [June 16, 2025, 11:54pm UTC](https://forums.unrealengine.com/t/blueprintcallable-function-with-delegate-doesnt-work-if-the-delegate-has-a-tarray-of-uobjects/2561175 "2025-06-16T23:54:47Z")

</div>

I’m writing a Blueprint callable wrapper for the AssetManager, and I ran into an issue with my delegate/event setup. I accept a singlecast delegate from blueprint callable function, bind it to a multicast delegate, and b…

---

## [How to save Widget Reflector's application scale setting?](https://forums.unrealengine.com/t/how-to-save-widget-reflectors-application-scale-setting/66921)

<div class="topic-metadata">

**Author:** [@Curious\_Rubick](https://forums.unrealengine.com/u/Curious_Rubick)\
**Replies:** 22\
**Last updated:** [June 16, 2025, 5:02pm UTC](https://forums.unrealengine.com/t/how-to-save-widget-reflectors-application-scale-setting/66921 "2025-06-16T17:02:34Z")

</div>

Every time I open the editor, the application scale setting is reset to 1.0. Is there a way to save it between sessions? For those who don’t know where this setting is located: MainMenuBar-\>Windows-\>Developer Tools-\>Wid…

---

## [How do you serialize and deserialize a UObject to/from an FArchive file?](https://forums.unrealengine.com/t/how-do-you-serialize-and-deserialize-a-uobject-to-from-an-farchive-file/563740)

<div class="topic-metadata">

**Author:** [@zos](https://forums.unrealengine.com/u/zos)\
**Replies:** 6\
**Last updated:** [June 16, 2025, 12:48pm UTC](https://forums.unrealengine.com/t/how-do-you-serialize-and-deserialize-a-uobject-to-from-an-farchive-file/563740 "2025-06-16T12:48:41Z")

</div>

Please consider the following code: UMyObject\* MyObject1 = NewObject\<UMyObject\>(); UMyObject\* MyObject2 = NewObject\<UMyObject\>(); MyObject1-\>MyField = "Hello"; MyObject2-\>MyField = "Goodbye"; { auto Archive = std::un…

---

## [How MassAi built in Runtime?](https://forums.unrealengine.com/t/how-massai-built-in-runtime/2559952)

<div class="topic-metadata">

**Author:** [@ALLMANL](https://forums.unrealengine.com/u/ALLMANL)\
**Replies:** 0\
**Last updated:** [June 16, 2025, 8:59am UTC](https://forums.unrealengine.com/t/how-massai-built-in-runtime/2559952 "2025-06-16T08:59:13Z")

</div>

While I am a newer to the MassAi. I want to know, if there is a way to build zoneGraph in Runtime. I want to adjust the zoneGraph to control the road direction. I found the information on the Internet, most of them ar…

---

## [Niagara SpawnSystemAttached not registered to actor](https://forums.unrealengine.com/t/niagara-spawnsystemattached-not-registered-to-actor/2555175)

<div class="topic-metadata">

**Author:** [@imtrobin2](https://forums.unrealengine.com/u/imtrobin2)\
**Replies:** 3\
**Last updated:** [June 15, 2025, 1:09pm UTC](https://forums.unrealengine.com/t/niagara-spawnsystemattached-not-registered-to-actor/2555175 "2025-06-15T13:09:13Z")

</div>

Hi, I just found the niagara components spawn with SpawnSystemAttached is not registered with Actor, e.g we cannot retrieve it with GetComponent , is this a design choice or bug?

---

## [TArray and nullptrs issues ](https://forums.unrealengine.com/t/tarray-and-nullptrs-issues/2553135)

<div class="topic-metadata">

**Author:** [@DimonDemon0](https://forums.unrealengine.com/u/DimonDemon0)\
**Replies:** 4\
**Last updated:** [June 15, 2025, 12:10pm UTC](https://forums.unrealengine.com/t/tarray-and-nullptrs-issues/2553135 "2025-06-15T12:10:48Z")

</div>

I am working on Inventory System, which is divided into Inventory Component and UI, it works fine, until Items started to clean up from my Inventory suddenly (Checked this while playing editor, after certain item manipul…

---

## [MotionController module ](https://forums.unrealengine.com/t/motioncontroller-module/2556655)

<div class="topic-metadata">

**Author:** [@devcodon](https://forums.unrealengine.com/u/devcodon)\
**Replies:** 2\
**Last updated:** [June 15, 2025, 8:21am UTC](https://forums.unrealengine.com/t/motioncontroller-module/2556655 "2025-06-15T08:21:21Z")

</div>

I want to build a VR game with C++ using Unreal Engine. I created a blank project, wrote some C++ classes and used the MotionController module. When I packaged the project, I got an error: Could not find definition for m…

---

## [when a friend and I want to create a multiplayer game together, we use multi-user editing, but an error occurs due to the source engine:failed to launch the Unreal Multi User server Could not find the executable. Have you compiled the Unreal multi user se](https://forums.unrealengine.com/t/when-a-friend-and-i-want-to-create-a-multiplayer-game-together-we-use-multi-user-editing-but-an-error-occurs-due-to-the-source-engine-failed-to-launch-the-unreal-multi-user-server-could-not-find-the-executable-have-you-compiled-the-unreal-multi-user-se/2556976)

<div class="topic-metadata">

**Author:** [@Grisha\_floos](https://forums.unrealengine.com/u/Grisha_floos)\
**Replies:** 0\
**Last updated:** [June 14, 2025, 5:08pm UTC](https://forums.unrealengine.com/t/when-a-friend-and-i-want-to-create-a-multiplayer-game-together-we-use-multi-user-editing-but-an-error-occurs-due-to-the-source-engine-failed-to-launch-the-unreal-multi-user-server-could-not-find-the-executable-have-you-compiled-the-unreal-multi-user-se/2556976 "2025-06-14T17:08:43Z")

</div>

when a friend and I want to create a multiplayer game together, we use multi-user editing, but an error occurs due to the source engine:failed to launch the Unreal Multi User server Could not find the executable. Have yo…

---

## [Writing to an RVT Programatically for Persistent Tire Tracks](https://forums.unrealengine.com/t/writing-to-an-rvt-programatically-for-persistent-tire-tracks/2374604)

<div class="topic-metadata">

**Author:** [@SeniorCPPbutNewToUE](https://forums.unrealengine.com/u/SeniorCPPbutNewToUE)\
**Replies:** 4\
**Last updated:** [June 14, 2025, 2:17am UTC](https://forums.unrealengine.com/t/writing-to-an-rvt-programatically-for-persistent-tire-tracks/2374604 "2025-06-14T02:17:11Z")

</div>

I’m trying to draw persistent tire tracks and skid marks on the landscape and the idea is to draw them onto an RVT and sample that in my landscape material. However, I don’t want to spawn in invisible actors that draw to…

---

## [Config for the game](https://forums.unrealengine.com/t/config-for-the-game/2555599)

<div class="topic-metadata">

**Author:** [@blAddddDe](https://forums.unrealengine.com/u/blAddddDe)\
**Replies:** 1\
**Last updated:** [June 13, 2025, 10:58pm UTC](https://forums.unrealengine.com/t/config-for-the-game/2555599 "2025-06-13T22:58:11Z")

</div>

Hi!!! Where (how) can I store gameplay settings for the game, to get the data in any blueprint. Like in ARK: Thx

---

## [How to declare a generic delegate signature as a parameter Unreal/C++?](https://forums.unrealengine.com/t/how-to-declare-a-generic-delegate-signature-as-a-parameter-unreal-c/874392)

<div class="topic-metadata">

**Author:** [@andyvyking](https://forums.unrealengine.com/u/andyvyking)\
**Replies:** 4\
**Last updated:** [June 13, 2025, 5:18pm UTC](https://forums.unrealengine.com/t/how-to-declare-a-generic-delegate-signature-as-a-parameter-unreal-c/874392 "2025-06-13T17:18:22Z")

</div>

I’m trying to create a wrapper object that sets up enhanced action bindings by basically wrapping UEnhancedInputComponent::BindAction(), however I’m having a hard time declaring the wrapper method parameter so that BindA…

---

## [Can we use code to read the FBX model and convert it to UASSET before using it during runtime ](https://forums.unrealengine.com/t/can-we-use-code-to-read-the-fbx-model-and-convert-it-to-uasset-before-using-it-during-runtime/2555008)

<div class="topic-metadata">

**Author:** [@ruiwray](https://forums.unrealengine.com/u/ruiwray)\
**Replies:** 0\
**Last updated:** [June 13, 2025, 2:24pm UTC](https://forums.unrealengine.com/t/can-we-use-code-to-read-the-fbx-model-and-convert-it-to-uasset-before-using-it-during-runtime/2555008 "2025-06-13T14:24:36Z")

</div>

Hello experts, I am a novice and now I need to create a mod like feature. After packaging it into a PC package, I specify a folder where users can drag models into it, and then I only load models from that folder for use…

---

## [Why do I get the error: '\_\_GNUC\_\_' and '\_\_clang\_major\_\_' not defined as a preprocessor macro. ](https://forums.unrealengine.com/t/why-do-i-get-the-error-gnuc-and-clang-major-not-defined-as-a-preprocessor-macro/2388339)

<div class="topic-metadata">

**Author:** [@StarkTech47](https://forums.unrealengine.com/u/StarkTech47)\
**Replies:** 2\
**Last updated:** [June 12, 2025, 5:12pm UTC](https://forums.unrealengine.com/t/why-do-i-get-the-error-gnuc-and-clang-major-not-defined-as-a-preprocessor-macro/2388339 "2025-06-12T17:12:12Z")

</div>

Hello everyone, I am new to Unreal Engine 5.5 and Unreal in general and have been struggling with the following issue for a few hours. I am trying to create blueprint functions in C++ to enhence the UnrealGDAL plugin. …

---

## [Compile bug (NetTokenExportContext.h)](https://forums.unrealengine.com/t/compile-bug-nettokenexportcontext-h/2552189)

<div class="topic-metadata">

**Author:** [@Skiez6055](https://forums.unrealengine.com/u/Skiez6055)\
**Replies:** 0\
**Last updated:** [June 12, 2025, 12:49am UTC](https://forums.unrealengine.com/t/compile-bug-nettokenexportcontext-h/2552189 "2025-06-12T00:49:28Z")

</div>

I was working on a CPP project the other day. Today i opened it and all the progress i made suddenly vanished. I tried re-building my project and got a error “syntax error: ‘FNetBitWriter’ should be preceded by ‘;’” a…

---

## [CrashReportClient.exe missing](https://forums.unrealengine.com/t/crashreportclient-exe-missing/110428)

<div class="topic-metadata">

**Author:** [@acxsasx](https://forums.unrealengine.com/u/acxsasx)\
**Replies:** 8\
**Last updated:** [June 11, 2025, 3:15pm UTC](https://forums.unrealengine.com/t/crashreportclient-exe-missing/110428 "2025-06-11T15:15:31Z")

</div>

4.19.1 I see CrashReportClient-Win64-Development.exe but not the above. I don’t make any changes to the source engine. I didn’t see any problems compiling. Why wouldn’t I get the crashreportcllient.exe?

---

## [Speech recognition in UE4?](https://forums.unrealengine.com/t/speech-recognition-in-ue4/12915)

<div class="topic-metadata">

**Author:** [@zoombapup](https://forums.unrealengine.com/u/zoombapup)\
**Replies:** 6\
**Last updated:** [October 13, 2023, 7:53am UTC](https://forums.unrealengine.com/t/speech-recognition-in-ue4/12915 "2023-10-13T07:53:59Z")

</div>

I know this is probably a bit random, but is there an API for handing audio input in UE4? I figured I’d maybe have a go at hacking a speech recognizer into UE4 to go with my Oculus (so I can use voice commands within the…

---

## [Why "PublicIncludePaths.AddRange" doesn't work in Plugin?](https://forums.unrealengine.com/t/why-publicincludepaths-addrange-doesnt-work-in-plugin/105794)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_a2ce06c1](https://forums.unrealengine.com/u/anonymous_user_a2ce06c1)\
**Replies:** 9\
**Last updated:** [June 11, 2025, 3:08am UTC](https://forums.unrealengine.com/t/why-publicincludepaths-addrange-doesnt-work-in-plugin/105794 "2025-06-11T03:08:45Z")

</div>

I add head file folder “include” in my main module folder and then add "PublicIncludePaths.AddRange(new string\] {“XXXX/include”);in the XXXX.build.cs. It works fine. Everything works and compiles successfully. But if I c…

---

## [90 error in VS 2022 and i did nothing!?](https://forums.unrealengine.com/t/90-error-in-vs-2022-and-i-did-nothing/2550320)

<div class="topic-metadata">

**Author:** [@RRobert35025](https://forums.unrealengine.com/u/RRobert35025)\
**Replies:** 1\
**Last updated:** [June 10, 2025, 6:32pm UTC](https://forums.unrealengine.com/t/90-error-in-vs-2022-and-i-did-nothing/2550320 "2025-06-10T18:32:05Z")

</div>

90 errors!? What did i do wrong? I just wanna code, work on my systems, i followed everything in the documentation about setting up VS 2022 with unreal and i faced issues after issues not even related to my code or c…

---

## [Default\_\_Object' is of class 'Object' however property 'ComponentTags' belongs to class 'ActorComponent'](https://forums.unrealengine.com/t/default-object-is-of-class-object-however-property-componenttags-belongs-to-class-actorcomponent/1187142)

<div class="topic-metadata">

**Author:** [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Replies:** 8\
**Last updated:** [June 10, 2025, 2:48pm UTC](https://forums.unrealengine.com/t/default-object-is-of-class-object-however-property-componenttags-belongs-to-class-actorcomponent/1187142 "2025-06-10T14:48:44Z")

</div>

how do i fix this? I know that the fault belongs to timeline created inside an actor component. But sometimes it works correctly and other times it crashes. I think the problem is in the following line. (Inside …

---

## [How to optimize performance with many Blueprint actors in Unreal Engine 5? ](https://forums.unrealengine.com/t/how-to-optimize-performance-with-many-blueprint-actors-in-unreal-engine-5/2549973)

<div class="topic-metadata">

**Author:** [@MAnChestetr](https://forums.unrealengine.com/u/MAnChestetr)\
**Replies:** 1\
**Last updated:** [June 10, 2025, 2:38pm UTC](https://forums.unrealengine.com/t/how-to-optimize-performance-with-many-blueprint-actors-in-unreal-engine-5/2549973 "2025-06-10T14:38:59Z")

</div>

Hi everyone! I’m currently working on a FPS project in Unreal Engine 5 and facing some performance issues when having too many Blueprint actors spawned at the same time (around 200-300 actors). The FPS drops significant…

---

## [Problem Spawning ANavMeshBoundsVolume in editor](https://forums.unrealengine.com/t/problem-spawning-anavmeshboundsvolume-in-editor/134487)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_a5e4dc30](https://forums.unrealengine.com/u/anonymous_user_a5e4dc30)\
**Replies:** 4\
**Last updated:** [June 10, 2025, 2:14pm UTC](https://forums.unrealengine.com/t/problem-spawning-anavmeshboundsvolume-in-editor/134487 "2025-06-10T14:14:33Z")

</div>

Hello, I am currently creating a plugin, where if I click on the button, it will spawn some static meshes as well as an ANavMeshBoundsVolume on an empty map. Initially, I have tried something like ANavMeshBoundsVo…

[Previous page](https://forums.unrealengine.com/c/development-discussion/programming-scripting/c-programming/29.md?page=33)

[Next page](https://forums.unrealengine.com/c/development-discussion/programming-scripting/c-programming/29.md?page=35)
