# C++

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

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

**Page:** 37

---

## [Unable to create a ProjectNameGameModeBase.cpp/h from new blank c++ project ](https://forums.unrealengine.com/t/unable-to-create-a-projectnamegamemodebase-cpp-h-from-new-blank-c-project/2534677)

<div class="topic-metadata">

**Author:** [@nicklesimba](https://forums.unrealengine.com/u/nicklesimba)\
**Replies:** 1\
**Last updated:** [May 30, 2025, 11:06pm UTC](https://forums.unrealengine.com/t/unable-to-create-a-projectnamegamemodebase-cpp-h-from-new-blank-c-project/2534677 "2025-05-30T23:06:11Z")

</div>

Hello Unreal Engine community, This is my first post as I am trying to understand getting started on Unreal Engine with C++. I was following a tutorial: https://www.youtube.com/watch?v=nvruYLgjKkk&t=382s and I observed…

---

## [Unable to use C++ programming to add GAS, even with GAS companion](https://forums.unrealengine.com/t/unable-to-use-c-programming-to-add-gas-even-with-gas-companion/2531885)

<div class="topic-metadata">

**Author:** [@BlueTitan99](https://forums.unrealengine.com/u/BlueTitan99)\
**Replies:** 8\
**Last updated:** [May 30, 2025, 9:47pm UTC](https://forums.unrealengine.com/t/unable-to-use-c-programming-to-add-gas-even-with-gas-companion/2531885 "2025-05-30T21:47:48Z")

</div>

I’m really new to programming in c++, I tried to follow as many tutorial as I can and I’m still looking for a solution, as you can see for some reason VS can’t find the header for the attribute set I created in UnrealE…

---

## [\[UE5.1.1 + VS 2022\] UE Integration Logging: Logs modules while not running the engine??](https://forums.unrealengine.com/t/ue5-1-1-vs-2022-ue-integration-logging-logs-modules-while-not-running-the-engine/881898)

<div class="topic-metadata">

**Author:** [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Replies:** 30\
**Last updated:** [May 30, 2025, 5:22pm UTC](https://forums.unrealengine.com/t/ue5-1-1-vs-2022-ue-integration-logging-logs-modules-while-not-running-the-engine/881898 "2025-05-30T17:22:09Z")

</div>

After reinstalling VS 2022 I see there is new functionality for UE by default, + it suggests an additional new plugin for UE “Visual Studio Integration Tool”. I now have a new output category on my VS Logging “UE Integr…

---

## [Package sqlite on Android](https://forums.unrealengine.com/t/package-sqlite-on-android/744096)

<div class="topic-metadata">

**Author:** [@WoodsyOwl](https://forums.unrealengine.com/u/WoodsyOwl)\
**Replies:** 4\
**Last updated:** [May 30, 2025, 2:29pm UTC](https://forums.unrealengine.com/t/package-sqlite-on-android/744096 "2025-05-30T14:29:14Z")

</div>

Hi, I am running in an i/o disk error, when running my android app when doing write operations, reading from the db works just fine. And it only happens on android (windows works fine (packaged or launched via editor)) …

---

## [Strange Launch Delay Related to Large Custom Device](https://forums.unrealengine.com/t/strange-launch-delay-related-to-large-custom-device/2534009)

<div class="topic-metadata">

**Author:** [@AlreadyUsed333](https://forums.unrealengine.com/u/AlreadyUsed333)\
**Replies:** 0\
**Last updated:** [May 30, 2025, 11:54am UTC](https://forums.unrealengine.com/t/strange-launch-delay-related-to-large-custom-device/2534009 "2025-05-30T11:54:23Z")

</div>

Hello, We’ve been experiencing a strange issue with our project and would appreciate some insight. We have a custom device in our map that’s quite large — it holds an array with over 180 items and controls our entire t…

---

## [Handled error Ensure condition failed InvocationList\[ CurFunctionIndex \] != InDelegate](https://forums.unrealengine.com/t/handled-error-ensure-condition-failed-invocationlist-curfunctionindex-indelegate/363872)

<div class="topic-metadata">

**Author:** [@Bolobolo](https://forums.unrealengine.com/u/Bolobolo)\
**Replies:** 9\
**Last updated:** [May 30, 2025, 11:03am UTC](https://forums.unrealengine.com/t/handled-error-ensure-condition-failed-invocationlist-curfunctionindex-indelegate/363872 "2025-05-30T11:03:24Z")

</div>

The project I’m working on used to compile in less than 6s, now it takes around 100s eventhough the code base is about the same size. Hotreload takes a lot longer than usual, and memory usage goes way up when Holtreload…

---

## [Correct way to draw textured/material lines in Slate/UMG?](https://forums.unrealengine.com/t/correct-way-to-draw-textured-material-lines-in-slate-umg/115947)

<div class="topic-metadata">

**Author:** [@benui](https://forums.unrealengine.com/u/benui)\
**Replies:** 3\
**Last updated:** [May 30, 2025, 9:26am UTC](https://forums.unrealengine.com/t/correct-way-to-draw-textured-material-lines-in-slate-umg/115947 "2025-05-30T09:26:25Z")

</div>

I’m trying to implement some textured line charts in UMG/Slate. FSlateDrawElement::MakeLines seemed promising but it seems to only be able to draw basic coloured lines. Is there a better way to draw textured lines in Sl…

---

## [Slate Style - FSlateSound - How to create it to set it in FButtonStyle PressedSound property](https://forums.unrealengine.com/t/slate-style-fslatesound-how-to-create-it-to-set-it-in-fbuttonstyle-pressedsound-property/52102)

<div class="topic-metadata">

**Author:** [@Elvince](https://forums.unrealengine.com/u/Elvince)\
**Replies:** 1\
**Last updated:** [May 30, 2025, 6:55am UTC](https://forums.unrealengine.com/t/slate-style-fslatesound-how-to-create-it-to-set-it-in-fbuttonstyle-pressedsound-property/52102 "2025-05-30T06:55:34Z")

</div>

Hi, I can’t find any example on how to create properly a FSlateSound to set in PressedSound of a button. All the samples that I found are: FSlateSound::FromName\_DEPRECATED(FName(“SoundCue’/Game/UI/Sounds/…”)); But as…

---

## [Rebuild modules...?? Module could not be found ](https://forums.unrealengine.com/t/rebuild-modules-module-could-not-be-found/2532183)

<div class="topic-metadata">

**Author:** [@Crewsssss](https://forums.unrealengine.com/u/Crewsssss)\
**Replies:** 8\
**Last updated:** [May 29, 2025, 9:58pm UTC](https://forums.unrealengine.com/t/rebuild-modules-module-could-not-be-found/2532183 "2025-05-29T21:58:52Z")

</div>

So, I went to start editing my project via C++ because I’m not new to coding and want to keep sharpening my skills When I went to start initializing variables in a header file with very simple ‘float MaxStamina = 100.0…

---

## [How to render dof correctly with a scene capture component?](https://forums.unrealengine.com/t/how-to-render-dof-correctly-with-a-scene-capture-component/480106)

<div class="topic-metadata">

**Author:** [@jimdebrouwerLL](https://forums.unrealengine.com/u/jimdebrouwerLL)\
**Replies:** 6\
**Last updated:** [May 29, 2025, 8:56am UTC](https://forums.unrealengine.com/t/how-to-render-dof-correctly-with-a-scene-capture-component/480106 "2025-05-29T08:56:21Z")

</div>

I want to output the same image with a scene capture(Right) component as the cineCamera(Left). You can notice a major difference in the color and also in the dof. How to achieve a matching result? Some comparisons be…

---

## [编译问题 不知道怎么解决 ](https://forums.unrealengine.com/t/topic/2531555)

<div class="topic-metadata">

**Author:** [@jzy008](https://forums.unrealengine.com/u/jzy008)\
**Replies:** 2\
**Last updated:** [May 29, 2025, 8:07am UTC](https://forums.unrealengine.com/t/topic/2531555 "2025-05-29T08:07:47Z")

</div>

Severity Code Description Project File Line Suppression State Error NU1701 Warning As Error: Package ‘System.IO 4.3.0’ was restored using ‘.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework…

---

## [UE5.3.2 C++ 编译的时候报错](https://forums.unrealengine.com/t/ue5-3-2-c/2532439)

<div class="topic-metadata">

**Author:** [@jzy008](https://forums.unrealengine.com/u/jzy008)\
**Replies:** 0\
**Last updated:** [May 29, 2025, 7:33am UTC](https://forums.unrealengine.com/t/ue5-3-2-c/2532439 "2025-05-29T07:33:14Z")

</div>

Warning As Error: Package ‘System.Collections 4.3.0’ was restored using ‘.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2,…

---

## [Reading IES profile for lighting in Runtime](https://forums.unrealengine.com/t/reading-ies-profile-for-lighting-in-runtime/137971)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_746877e8](https://forums.unrealengine.com/u/anonymous_user_746877e8)\
**Replies:** 1\
**Last updated:** [May 29, 2025, 6:33am UTC](https://forums.unrealengine.com/t/reading-ies-profile-for-lighting-in-runtime/137971 "2025-05-29T06:33:11Z")

</div>

Hi all, I am currently working in a project where I want the user to load and read IES profiles and add to the respective lights. But as of my knowledge unreal only supports for reading IES profile in Editor. So Is it p…

---

## [How Do I add an Include Path to my Project?](https://forums.unrealengine.com/t/how-do-i-add-an-include-path-to-my-project/822764)

<div class="topic-metadata">

**Author:** [@zBeeble](https://forums.unrealengine.com/u/zBeeble)\
**Replies:** 13\
**Last updated:** [May 28, 2025, 10:45pm UTC](https://forums.unrealengine.com/t/how-do-i-add-an-include-path-to-my-project/822764 "2025-05-28T22:45:14Z")

</div>

Simply put, “How Do I add an Include Path to my Project?” I would like to add "D:\\Boost\\Boost\_1\_81\_0" … and I’ve tried this using the visual studio properties (both C++ paths and nmake paths); I’ve also tried creating a…

---

## [Unreal PCG Spawn Dynamic Mesh ignores rotation  ](https://forums.unrealengine.com/t/unreal-pcg-spawn-dynamic-mesh-ignores-rotation/2530264)

<div class="topic-metadata">

**Author:** [@GuruMeditation](https://forums.unrealengine.com/u/GuruMeditation)\
**Replies:** 0\
**Last updated:** [May 27, 2025, 2:45pm UTC](https://forums.unrealengine.com/t/unreal-pcg-spawn-dynamic-mesh-ignores-rotation/2530264 "2025-05-27T14:45:46Z")

</div>

Trying to Spawn dynamic mesh using PCG I noticed that trying to rotate the actor after the mesh has been spawned doesn’t rotate the mesh itself … The core problem is: When the Actor hosting the PCG Component (and thus t…

---

## [Calling C++ Functions from JavaScript in Unreal Engine Using BrowserBinding](https://forums.unrealengine.com/t/calling-c-functions-from-javascript-in-unreal-engine-using-browserbinding/2531363)

<div class="topic-metadata">

**Author:** [@SenseiGuard38](https://forums.unrealengine.com/u/SenseiGuard38)\
**Replies:** 0\
**Last updated:** [May 28, 2025, 11:47am UTC](https://forums.unrealengine.com/t/calling-c-functions-from-javascript-in-unreal-engine-using-browserbinding/2531363 "2025-05-28T11:47:52Z")

</div>

Hello, I’ve created a web page using TypeScript, and I’m trying to call a function from C++. I can see that the connection is working through window.ue, which I understand is the default binding provided by Unreal Engin…

---

## [Getting and setting audio devices](https://forums.unrealengine.com/t/getting-and-setting-audio-devices/2531251)

<div class="topic-metadata">

**Author:** [@M4yh3m.exe](https://forums.unrealengine.com/u/M4yh3m.exe)\
**Replies:** 1\
**Last updated:** [May 28, 2025, 9:52am UTC](https://forums.unrealengine.com/t/getting-and-setting-audio-devices/2531251 "2025-05-28T09:52:35Z")

</div>

Hello everyone, I’m making a game on UE4.27 and at the moment I want to change audio devices from the game settings, but I ran into a problem. It seemed to me that I can use AudioCapture.h to change the microphone, but w…

---

## [Is there a way to call UProceduralMeshComponent::CreateMeshSection on a separate thread? ](https://forums.unrealengine.com/t/is-there-a-way-to-call-uproceduralmeshcomponent-createmeshsection-on-a-separate-thread/2530963)

<div class="topic-metadata">

**Author:** [@evang3071](https://forums.unrealengine.com/u/evang3071)\
**Replies:** 1\
**Last updated:** [May 28, 2025, 6:06am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-call-uproceduralmeshcomponent-createmeshsection-on-a-separate-thread/2530963 "2025-05-28T06:06:40Z")

</div>

I’m generating terrain using the procedural mesh component at runtime. There is a noticeable stutter when generating new chunks of terrain that I would like to resolve. I’ve tried calling UProceduralMeshComponent::Create…

---

## [Best way to find specific actor in world?](https://forums.unrealengine.com/t/best-way-to-find-specific-actor-in-world/103000)

<div class="topic-metadata">

**Author:** [@Kvackie](https://forums.unrealengine.com/u/Kvackie)\
**Replies:** 9\
**Last updated:** [May 28, 2025, 2:02am UTC](https://forums.unrealengine.com/t/best-way-to-find-specific-actor-in-world/103000 "2025-05-28T02:02:15Z")

</div>

Hello, I have created a sort of prototype ‘light switch’ that toggles between on/off on custom defined functionality of a specific actor. (Example: Turn a light source on/off) Currently I am using a complete actor iter…

---

## [Draw Order 2D RPG Game ](https://forums.unrealengine.com/t/draw-order-2d-rpg-game/2530678)

<div class="topic-metadata">

**Author:** [@REAL14DEAL](https://forums.unrealengine.com/u/REAL14DEAL)\
**Replies:** 2\
**Last updated:** [May 27, 2025, 9:48pm UTC](https://forums.unrealengine.com/t/draw-order-2d-rpg-game/2530678 "2025-05-27T21:48:00Z")

</div>

I am making a 2D top down rpg game in UE5 using a tilemap and sprites. I have a character sprite that I can move around the environment. For example, I have some grass but the character appears above or below the grass b…

---

## [How to use array of return value delegates properly](https://forums.unrealengine.com/t/how-to-use-array-of-return-value-delegates-properly/2529998)

<div class="topic-metadata">

**Author:** [@mrm\_dev](https://forums.unrealengine.com/u/mrm_dev)\
**Replies:** 3\
**Last updated:** [May 27, 2025, 2:22pm UTC](https://forums.unrealengine.com/t/how-to-use-array-of-return-value-delegates-properly/2529998 "2025-05-27T14:22:05Z")

</div>

I have an array of delegates which return numbers as such: UDELEGATE() DECLARE\_DYNAMIC\_DELEGATE\_RetVal(int, FNumBP); DECLARE\_DELEGATE\_RetVal(int, FNum); UCLASS() class TESTING\_API AMyActor : public AActor { GENERA…

---

## [Use SetActorLocation() for elements in OnConstruction() ](https://forums.unrealengine.com/t/use-setactorlocation-for-elements-in-onconstruction/2528740)

<div class="topic-metadata">

**Author:** [@Shotendev](https://forums.unrealengine.com/u/Shotendev)\
**Replies:** 6\
**Last updated:** [May 27, 2025, 12:23pm UTC](https://forums.unrealengine.com/t/use-setactorlocation-for-elements-in-onconstruction/2528740 "2025-05-27T12:23:39Z")

</div>

Hello, I want to move static meshes continuously in one direction. I’m using the OnConstruction() function because I want to dynamically modify in the editor the number of static meshes, the distance between them, and t…

---

## [Streaming Level loaded from a Pak File](https://forums.unrealengine.com/t/streaming-level-loaded-from-a-pak-file/2086749)

<div class="topic-metadata">

**Author:** [@flo.rian\_zh](https://forums.unrealengine.com/u/flo.rian_zh)\
**Replies:** 2\
**Last updated:** [May 27, 2025, 11:22am UTC](https://forums.unrealengine.com/t/streaming-level-loaded-from-a-pak-file/2086749 "2025-05-27T11:22:53Z")

</div>

Hi all, I have some questions and problems when streaming a level loaded from a pak file. What I basically wan’t to achieve is that another developer can create a pak file with any level in it and my game can load and un…

---

## [Calling a function from actor component for Enhanced input inside Player Controller ](https://forums.unrealengine.com/t/calling-a-function-from-actor-component-for-enhanced-input-inside-player-controller/2529399)

<div class="topic-metadata">

**Author:** [@BoostedCR24](https://forums.unrealengine.com/u/BoostedCR24)\
**Replies:** 4\
**Last updated:** [May 27, 2025, 8:35am UTC](https://forums.unrealengine.com/t/calling-a-function-from-actor-component-for-enhanced-input-inside-player-controller/2529399 "2025-05-27T08:35:55Z")

</div>

Hello, Sorry if this is a novice question. But I’ve been trying to find a solution to this to no avail. So basically I have my Character, the Character is controlled by a Player Controller, and on the Character is an Ac…

---

## [Cant make an event node with an ActorComponent in CPP ](https://forums.unrealengine.com/t/cant-make-an-event-node-with-an-actorcomponent-in-cpp/2529225)

<div class="topic-metadata">

**Author:** [@k3y\_exe](https://forums.unrealengine.com/u/k3y_exe)\
**Replies:** 2\
**Last updated:** [May 26, 2025, 9:53pm UTC](https://forums.unrealengine.com/t/cant-make-an-event-node-with-an-actorcomponent-in-cpp/2529225 "2025-05-26T21:53:57Z")

</div>

I am trying to make an ActorComponent with CPP called HealthComponent that stores current health, max health, has a function to decrease health and calls an event when the health reaches zero. So far everything has went …

---

## [Certain assets don't seem to be getting loaded in a packaged build (Android)](https://forums.unrealengine.com/t/certain-assets-dont-seem-to-be-getting-loaded-in-a-packaged-build-android/2529066)

<div class="topic-metadata">

**Author:** [@rajeevmukundan](https://forums.unrealengine.com/u/rajeevmukundan)\
**Replies:** 1\
**Last updated:** [May 26, 2025, 6:39pm UTC](https://forums.unrealengine.com/t/certain-assets-dont-seem-to-be-getting-loaded-in-a-packaged-build-android/2529066 "2025-05-26T18:39:36Z")

</div>

I’m packaging my Quest 3 game with Unreal 5.5 and I keep seeing this “LogSerialization” warning when I load up my game that “Memory map bulk data from chunk FAILED”. When I see this warning, Some of my animations aren’t …

---

## [Build.bat fails with exit code 6](https://forums.unrealengine.com/t/build-bat-fails-with-exit-code-6/2523452)

<div class="topic-metadata">

**Author:** [@Vee\_Nguyen](https://forums.unrealengine.com/u/Vee_Nguyen)\
**Replies:** 1\
**Last updated:** [May 22, 2025, 7:56pm UTC](https://forums.unrealengine.com/t/build-bat-fails-with-exit-code-6/2523452 "2025-05-22T19:56:44Z")

</div>

2\>Parsing headers for MyProjectEditor 2\> Running Internal UnrealHeaderTool "C:\\Users\\u275713\\Documents\\Unreal Projects\\MyProject\\MyProject.uproject" "C:\\Users\\u275713\\Documents\\Unreal Projects\\MyProject\\Intermediate\\Bui…

---

## [How do I attach a physics constraint to geometry collection particles? (Chaos)](https://forums.unrealengine.com/t/how-do-i-attach-a-physics-constraint-to-geometry-collection-particles-chaos/2528538)

<div class="topic-metadata">

**Author:** [@playwithmewerder](https://forums.unrealengine.com/u/playwithmewerder)\
**Replies:** 0\
**Last updated:** [May 26, 2025, 11:06am UTC](https://forums.unrealengine.com/t/how-do-i-attach-a-physics-constraint-to-geometry-collection-particles-chaos/2528538 "2025-05-26T11:06:22Z")

</div>

I am currently using FConstraintInstance struct to create a constraint. I create a kinematic handle for 1 side of the constraint, and grab a physics object via GeoCollection-\>GetPhysicsObjectById(MyPBD\_RigidClusteredPar…

---

## [cant see UE\_LOG in the output log](https://forums.unrealengine.com/t/cant-see-ue-log-in-the-output-log/2527710)

<div class="topic-metadata">

**Author:** [@Ahmobaby](https://forums.unrealengine.com/u/Ahmobaby)\
**Replies:** 1\
**Last updated:** [May 25, 2025, 7:45pm UTC](https://forums.unrealengine.com/t/cant-see-ue-log-in-the-output-log/2527710 "2025-05-25T19:45:45Z")

</div>

just started unreal engine and tried to display an error in the output log but it doesnt show it. using vs 2019 and unreal 4.26.2 void AYoutubeCharacter::BeginPlay() { Super::BeginPlay(); UE\_LOG(LogTemp, Error, TEXT(…

---

## [\[UE4\] Error when trying to add new  ](https://forums.unrealengine.com/t/ue4-error-when-trying-to-add-new/2527567)

<div class="topic-metadata">

**Author:** [@KTRSS1315](https://forums.unrealengine.com/u/KTRSS1315)\
**Replies:** 4\
**Last updated:** [May 25, 2025, 6:33pm UTC](https://forums.unrealengine.com/t/ue4-error-when-trying-to-add-new/2527567 "2025-05-25T18:33:05Z")

</div>

Is it OK to use Visual Studio 2022 17.14.2 (latest) with the latest version of UE4? Because I get this error when trying to compile a new class via “New C++ class…”: Successfully added class ‘item\_base\_class’, however …

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

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