# C++

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

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

**Page:** 44

---

## [UE Not Pulling Lates Project Visual Studio Build](https://forums.unrealengine.com/t/ue-not-pulling-lates-project-visual-studio-build/2435386)

<div class="topic-metadata">

**Author:** [@Ryujin2003](https://forums.unrealengine.com/u/Ryujin2003)\
**Replies:** 1\
**Last updated:** [April 3, 2025, 3:11am UTC](https://forums.unrealengine.com/t/ue-not-pulling-lates-project-visual-studio-build/2435386 "2025-04-03T03:11:02Z")

</div>

Hello everyone, I’ve been dealing with a strange scenario where UE Editor appears to be loading some cached version of my game build instead of grabbing the latest compiled artifacts… I am using Visual Studio Community…

---

## [Basically, I can't open or create a C++ Project in Unreal 5.4 ](https://forums.unrealengine.com/t/basically-i-cant-open-or-create-a-c-project-in-unreal-5-4/2436154)

<div class="topic-metadata">

**Author:** [@M.Lghtn](https://forums.unrealengine.com/u/M.Lghtn)\
**Replies:** 1\
**Last updated:** [April 2, 2025, 3:11pm UTC](https://forums.unrealengine.com/t/basically-i-cant-open-or-create-a-c-project-in-unreal-5-4/2436154 "2025-04-02T15:11:52Z")

</div>

Whenever I try to create or open a C++ Project, Unreal gives this error: An error occurred while trying to generate project files. Running C:/Program Files/Epic Games/5.4/Engine/Build/BatchFiles/Build.bat -projectfile…

---

## [How to detach player character from a platform?](https://forums.unrealengine.com/t/how-to-detach-player-character-from-a-platform/2436030)

<div class="topic-metadata">

**Author:** [@volumetrix](https://forums.unrealengine.com/u/volumetrix)\
**Replies:** 2\
**Last updated:** [April 2, 2025, 3:07pm UTC](https://forums.unrealengine.com/t/how-to-detach-player-character-from-a-platform/2436030 "2025-04-02T15:07:09Z")

</div>

When a player character stands on a moving platform, they are transported when it moves, which is exactly what’s desired. However, when the platform is teleported to a location or drops away fast, the player should stay…

---

## [Move File doesn't work?](https://forums.unrealengine.com/t/move-file-doesnt-work/1864684)

<div class="topic-metadata">

**Author:** [@OldChippy](https://forums.unrealengine.com/u/OldChippy)\
**Replies:** 1\
**Last updated:** [April 2, 2025, 2:41pm UTC](https://forums.unrealengine.com/t/move-file-doesnt-work/1864684 "2025-04-02T14:41:14Z")

</div>

bool RenameFile(const FString& OldFilename, const FString& NewFilename) { // Get the file manager instance IPlatformFile& FileManager = FPlatformFileManager::Get().GetPlatformFile(); // Attempt to rename the file if…

---

## [Cannot open source file name.generated.hc](https://forums.unrealengine.com/t/cannot-open-source-file-name-generated-hc/413312)

<div class="topic-metadata">

**Author:** [@MrZelektronz](https://forums.unrealengine.com/u/MrZelektronz)\
**Replies:** 24\
**Last updated:** [April 2, 2025, 6:40am UTC](https://forums.unrealengine.com/t/cannot-open-source-file-name-generated-hc/413312 "2025-04-02T06:40:51Z")

</div>

Hey guys, I have a problem with my UE4 project, every time I want to compile I get an error which says that the generated.h class of every class of mine cannot be opened. And yes I tried this: Rightclick on .uproject and…

---

## [Physics movement stuttering and veering/sliding](https://forums.unrealengine.com/t/physics-movement-stuttering-and-veering-sliding/2435584)

<div class="topic-metadata">

**Author:** [@Burgturdler2](https://forums.unrealengine.com/u/Burgturdler2)\
**Replies:** 0\
**Last updated:** [April 2, 2025, 5:53am UTC](https://forums.unrealengine.com/t/physics-movement-stuttering-and-veering-sliding/2435584 "2025-04-02T05:53:08Z")

</div>

Hey all, so my buddy and I are rookies trying to make a little tank game and I am experiencing some really annoying issues all of the sudden. I will lay out the issue and story as best I can and thank you in advance to a…

---

## [Error LNK2019 ](https://forums.unrealengine.com/t/error-lnk2019/2434481)

<div class="topic-metadata">

**Author:** [@user\_ca49b34042c697](https://forums.unrealengine.com/u/user_ca49b34042c697)\
**Replies:** 2\
**Last updated:** [April 2, 2025, 2:32am UTC](https://forums.unrealengine.com/t/error-lnk2019/2434481 "2025-04-02T02:32:38Z")

</div>

This is the problem I encountered with the error message 10\>GM\_EditorBase.cpp.obj: Error LNK2019 : unresolved external symbol "public: void \_\_cdecl FMyMainFrameModuleModule::TestModuleLoad(void)" (?TestModuleLoad@FMyMai…

---

## [The system cannot find the file specified (Invalid Output)](https://forums.unrealengine.com/t/the-system-cannot-find-the-file-specified-invalid-output/644374)

<div class="topic-metadata">

**Author:** [@boisbois2](https://forums.unrealengine.com/u/boisbois2)\
**Replies:** 3\
**Last updated:** [April 1, 2025, 11:21am UTC](https://forums.unrealengine.com/t/the-system-cannot-find-the-file-specified-invalid-output/644374 "2025-04-01T11:21:18Z")

</div>

This error message started appearing every time I try to build my project with VS and it’s starting to drive me crazy. I don’t think the issue comes from something I wrote in the code, maybe something is wrong with VS. i…

---

## [How UE\_LIFETIMEBOUND macro suppose to work?](https://forums.unrealengine.com/t/how-ue-lifetimebound-macro-suppose-to-work/2428400)

<div class="topic-metadata">

**Author:** [@N1ghtwish386](https://forums.unrealengine.com/u/N1ghtwish386)\
**Replies:** 2\
**Last updated:** [April 1, 2025, 6:38am UTC](https://forums.unrealengine.com/t/how-ue-lifetimebound-macro-suppose-to-work/2428400 "2025-04-01T06:38:57Z")

</div>

Hi, I found UE\_LIFETIMEBOUND macro in some places in UE source code, for example, in the operator\[\] of TArray. What I’ve found about this in the UE’s source code is only this /\* Wrap lifetimebound annotations to indica…

---

## [Solution for UE 5.5.1 new c++ project compilation issues ("Attempted to read or write protected memory")](https://forums.unrealengine.com/t/solution-for-ue-5-5-1-new-c-project-compilation-issues-attempted-to-read-or-write-protected-memory/2298265)

<div class="topic-metadata">

**Author:** [@ontnevertries](https://forums.unrealengine.com/u/ontnevertries)\
**Replies:** 1\
**Last updated:** [March 31, 2025, 9:54pm UTC](https://forums.unrealengine.com/t/solution-for-ue-5-5-1-new-c-project-compilation-issues-attempted-to-read-or-write-protected-memory/2298265 "2025-03-31T21:54:06Z")

</div>

Hey all. I’ve been struggling getting Unreal 5.5.1 to compile any c++ code on one of my machines (but not the other, go figure). Not sure whether it’s relevant, but the problem machine is running Windows 11, and the one …

---

## [Procedural Mesh Falls Through the Floor Despite Physics and Collision Settings](https://forums.unrealengine.com/t/procedural-mesh-falls-through-the-floor-despite-physics-and-collision-settings/2203004)

<div class="topic-metadata">

**Author:** [@IdrisKhan](https://forums.unrealengine.com/u/IdrisKhan)\
**Replies:** 1\
**Last updated:** [March 31, 2025, 8:59pm UTC](https://forums.unrealengine.com/t/procedural-mesh-falls-through-the-floor-despite-physics-and-collision-settings/2203004 "2025-03-31T20:59:10Z")

</div>

I’m working on generating a procedural mesh from a skeletal mesh at runtime and have hit a bit of a roadblock. I’m using UProceduralMeshComponent to create the mesh, and while everything appears to be set up correctly (g…

---

## [Grasping the details of Learning Agents QKV attention mechanism, e.g. for position encoding with RoPE ](https://forums.unrealengine.com/t/grasping-the-details-of-learning-agents-qkv-attention-mechanism-e-g-for-position-encoding-with-rope/2427793)

<div class="topic-metadata">

**Author:** [@Senyarik](https://forums.unrealengine.com/u/Senyarik)\
**Replies:** 2\
**Last updated:** [March 31, 2025, 7:45pm UTC](https://forums.unrealengine.com/t/grasping-the-details-of-learning-agents-qkv-attention-mechanism-e-g-for-position-encoding-with-rope/2427793 "2025-03-31T19:45:20Z")

</div>

Hello everyone. I am creating a game with Learning Agents in UE 5.5, which is going great. I’m making just a simple proof-of-concept where RL agents are expected to be running on a plane, collect stationary resources an…

---

## [Player collision on moving platform](https://forums.unrealengine.com/t/player-collision-on-moving-platform/2419790)

<div class="topic-metadata">

**Author:** [@Metalbob](https://forums.unrealengine.com/u/Metalbob)\
**Replies:** 5\
**Last updated:** [March 31, 2025, 3:15pm UTC](https://forums.unrealengine.com/t/player-collision-on-moving-platform/2419790 "2025-03-31T15:15:58Z")

</div>

Hi everyone! For the context: The players are in a ship that travels at highspeed in the world. The players should be able to move inside the ship while it’s travelling. If there is only the floor moving and the player…

---

## [Cannot open SharedPCH.UnrealEd.Project.ValApi.Cpp20.h.pch](https://forums.unrealengine.com/t/cannot-open-sharedpch-unrealed-project-valapi-cpp20-h-pch/2431247)

<div class="topic-metadata">

**Author:** [@Angius](https://forums.unrealengine.com/u/Angius)\
**Replies:** 1\
**Last updated:** [March 31, 2025, 7:22am UTC](https://forums.unrealengine.com/t/cannot-open-sharedpch-unrealed-project-valapi-cpp20-h-pch/2431247 "2025-03-31T07:22:11Z")

</div>

Out of nowhere, my project stopped compiling today. I tried rolling back to earlier commits, running Rider as admin, installed older versions of .NET, nothing works and I’m at my wit’s end… 0\>#19 15/92: SharedPCH.Unreal…

---

## [Procedural generated nav mesh for city map](https://forums.unrealengine.com/t/procedural-generated-nav-mesh-for-city-map/2414641)

<div class="topic-metadata">

**Author:** [@M411](https://forums.unrealengine.com/u/M411)\
**Replies:** 2\
**Last updated:** [March 30, 2025, 6:21pm UTC](https://forums.unrealengine.com/t/procedural-generated-nav-mesh-for-city-map/2414641 "2025-03-30T18:21:37Z")

</div>

So currently working on a proejct with pretty sizeable city, and wanted to be able to identify different areas with custom costs (road / steep evironment would be very high cost and sidewalks/alleyways would be lowcost) …

---

## [UE 4.27 - (SVN) How to make FPaths::ProjectContentDir() take my 'trunk' directory in account?](https://forums.unrealengine.com/t/ue-4-27-svn-how-to-make-fpaths-projectcontentdir-take-my-trunk-directory-in-account/2429392)

<div class="topic-metadata">

**Author:** [@Karma\_Game](https://forums.unrealengine.com/u/Karma_Game)\
**Replies:** 0\
**Last updated:** [March 30, 2025, 4:47pm UTC](https://forums.unrealengine.com/t/ue-4-27-svn-how-to-make-fpaths-projectcontentdir-take-my-trunk-directory-in-account/2429392 "2025-03-30T16:47:15Z")

</div>

Hi, I’m using SVN for versionning my project. Here’s my folders : myUEproject/ /tunk /Build /Content /Blueprints /Levels /M…

---

## [When use UPROPERTY Specifier GetOptions, please add a search field and allow to input values directly](https://forums.unrealengine.com/t/when-use-uproperty-specifier-getoptions-please-add-a-search-field-and-allow-to-input-values-directly/2429095)

<div class="topic-metadata">

**Author:** [@fongcrush](https://forums.unrealengine.com/u/fongcrush)\
**Replies:** 1\
**Last updated:** [March 30, 2025, 4:13pm UTC](https://forums.unrealengine.com/t/when-use-uproperty-specifier-getoptions-please-add-a-search-field-and-allow-to-input-values-directly/2429095 "2025-03-30T16:13:24Z")

</div>

It’s very inconvenient when option array size is over hundreds. We have to scroll through the list to find it. Apart from options, Please also make be able to input value directly.

---

## [UGameplayEffect\* & TSubclassOf\<UGameplayEffect\> in Unreal Editor](https://forums.unrealengine.com/t/ugameplayeffect-tsubclassof-ugameplayeffect-in-unreal-editor/223882)

<div class="topic-metadata">

**Author:** [@Ian8\_8](https://forums.unrealengine.com/u/Ian8_8)\
**Replies:** 1\
**Last updated:** [March 30, 2025, 2:56pm UTC](https://forums.unrealengine.com/t/ugameplayeffect-tsubclassof-ugameplayeffect-in-unreal-editor/223882 "2025-03-30T14:56:02Z")

</div>

Hello guys, I am a bit confused, I need to make use of the function ApplyGameplayEffectToSelf(), which takes a UGameplayEffect\* as its first argument. So, in the header file, I have declared: UPROPERTY(EditDefaultsOn…

---

## [MakeFile failed with error code 6](https://forums.unrealengine.com/t/makefile-failed-with-error-code-6/2428630)

<div class="topic-metadata">

**Author:** [@ASTROKARMA](https://forums.unrealengine.com/u/ASTROKARMA)\
**Replies:** 1\
**Last updated:** [March 30, 2025, 7:09am UTC](https://forums.unrealengine.com/t/makefile-failed-with-error-code-6/2428630 "2025-03-30T07:09:25Z")

</div>

I started a new blank project on UE 5.5.3 I added a simple UObject class ( that is empty ). I quit the project, run the .sln to build the solution. The command ““D:\\Unreal Engine\\UE\_5.5\\Engine\\Build\\BatchFiles\\Build.b…

---

## [Build error from the moment i make a (simple) change in c++](https://forums.unrealengine.com/t/build-error-from-the-moment-i-make-a-simple-change-in-c/2427463)

<div class="topic-metadata">

**Author:** [@Davy88MM](https://forums.unrealengine.com/u/Davy88MM)\
**Replies:** 1\
**Last updated:** [March 30, 2025, 1:56am UTC](https://forums.unrealengine.com/t/build-error-from-the-moment-i-make-a-simple-change-in-c/2427463 "2025-03-30T01:56:55Z")

</div>

Hey guys, from the moment i make change in c++, for example a boolean from true to false or somehing like that. When i want to build i get this error: The command ““C:\\Program Files\\Epic Games\\UE\_5.4\\Engine\\Build\\BatchF…

---

## [level streaming for UE 5.4 and C++ - how to?](https://forums.unrealengine.com/t/level-streaming-for-ue-5-4-and-c-how-to/2426911)

<div class="topic-metadata">

**Author:** [@bsack23](https://forums.unrealengine.com/u/bsack23)\
**Replies:** 2\
**Last updated:** [March 29, 2025, 7:42pm UTC](https://forums.unrealengine.com/t/level-streaming-for-ue-5-4-and-c-how-to/2426911 "2025-03-29T19:42:15Z")

</div>

I want to figure out how to load a new level and ‘move’ my character into it when the character overlaps or enters a certain area. Im trying to follow this tutorial: but there are a few things that i don’t understand, …

---

## [Dynamically create skeletal meshes in editor](https://forums.unrealengine.com/t/dynamically-create-skeletal-meshes-in-editor/2427163)

<div class="topic-metadata">

**Author:** [@d0minas](https://forums.unrealengine.com/u/d0minas)\
**Replies:** 0\
**Last updated:** [March 29, 2025, 5:45pm UTC](https://forums.unrealengine.com/t/dynamically-create-skeletal-meshes-in-editor/2427163 "2025-03-29T17:45:47Z")

</div>

Hi, I’m creating an actor component that adds a feature of “modular” character into any UCharacter that takes data from UDataAsset with module definitions. It works ok for most part except the meshes disappears after I …

---

## [City sample Object disappear](https://forums.unrealengine.com/t/city-sample-object-disappear/1842341)

<div class="topic-metadata">

**Author:** [@SteveRogers3397](https://forums.unrealengine.com/u/SteveRogers3397)\
**Replies:** 1\
**Last updated:** [February 5, 2025, 5:38am UTC](https://forums.unrealengine.com/t/city-sample-object-disappear/1842341 "2025-02-05T05:38:00Z")

</div>

I been using City sample for some time and tying to figure out the bug where, when i import my 3d into the sceen and play game the object disapear automatically and when i came near it. it pops up. if i want to see that…

---

## [Unreal Engine 5 c++ GetValueTypeHash definition in TSet\<customStruct\>](https://forums.unrealengine.com/t/unreal-engine-5-c-getvaluetypehash-definition-in-tset-customstruct/614977)

<div class="topic-metadata">

**Author:** [@AceHigh](https://forums.unrealengine.com/u/AceHigh)\
**Replies:** 5\
**Last updated:** [September 14, 2022, 2:22am UTC](https://forums.unrealengine.com/t/unreal-engine-5-c-getvaluetypehash-definition-in-tset-customstruct/614977 "2022-09-14T02:22:46Z")

</div>

I a trying to create a set of structs using TSet, however, when I compile I get the error: The structure Fpiece is used in a TSet but does not have a GetValueTypeHash defined How do I implement a GetValueTypeHash defin…

---

## [\[Solution\] How to change root component at runtime](https://forums.unrealengine.com/t/solution-how-to-change-root-component-at-runtime/2167811)

<div class="topic-metadata">

**Author:** [@amshegarh](https://forums.unrealengine.com/u/amshegarh)\
**Replies:** 1\
**Last updated:** [March 28, 2025, 4:56pm UTC](https://forums.unrealengine.com/t/solution-how-to-change-root-component-at-runtime/2167811 "2025-03-28T16:56:22Z")

</div>

So in order to flawlessly change root component at runtime, there are exactly three lines that need to be done auto c = Entity-\>AddComponentByClass(USomeComponent::StaticClass(), true, FTransform::Identity, false)); //c…

---

## [Is it possible to allocate UObjects contiguously?](https://forums.unrealengine.com/t/is-it-possible-to-allocate-uobjects-contiguously/2423183)

<div class="topic-metadata">

**Author:** [@Moon515](https://forums.unrealengine.com/u/Moon515)\
**Replies:** 3\
**Last updated:** [March 28, 2025, 3:01am UTC](https://forums.unrealengine.com/t/is-it-possible-to-allocate-uobjects-contiguously/2423183 "2025-03-28T03:01:30Z")

</div>

Using TArrays doesn’t solve the problem as they will have a collection of pointers that are contiguous, but not the objects themselves. Heap fragmentation will occur. Just curious how the community handles this issue.

---

## [Why i must use IDE that i don't like to have advandage of compiling through one button in engine? ](https://forums.unrealengine.com/t/why-i-must-use-ide-that-i-dont-like-to-have-advandage-of-compiling-through-one-button-in-engine/2422878)

<div class="topic-metadata">

**Author:** [@True-Reached](https://forums.unrealengine.com/u/True-Reached)\
**Replies:** 1\
**Last updated:** [March 27, 2025, 11:09pm UTC](https://forums.unrealengine.com/t/why-i-must-use-ide-that-i-dont-like-to-have-advandage-of-compiling-through-one-button-in-engine/2422878 "2025-03-27T23:09:27Z")

</div>

As far as i know when you using other IDE’s beside Visual Studio 2022 (purple) it all works just fine unless you delete this Visual Studio, it even sounds strange. Is it paid microsoft marketing? I can’t work in overover…

---

## [Creating a component type variable in C++, then assigning it in the Blueprint Details panel.](https://forums.unrealengine.com/t/creating-a-component-type-variable-in-c-then-assigning-it-in-the-blueprint-details-panel/2421964)

<div class="topic-metadata">

**Author:** [@Kenthriaa](https://forums.unrealengine.com/u/Kenthriaa)\
**Replies:** 1\
**Last updated:** [March 27, 2025, 8:44pm UTC](https://forums.unrealengine.com/t/creating-a-component-type-variable-in-c-then-assigning-it-in-the-blueprint-details-panel/2421964 "2025-03-27T20:44:23Z")

</div>

I appreciate any help, and if there is a solution, a lot of people googling this issue will too I’m sure! The issue I am having: I have a C++ Actor script. I have created a Blueprint Class from it. I added the follow…

---

## [Can't declare more than one CustomStructureParam](https://forums.unrealengine.com/t/cant-declare-more-than-one-customstructureparam/2421251)

<div class="topic-metadata">

**Author:** [@Kotaru\_1](https://forums.unrealengine.com/u/Kotaru_1)\
**Replies:** 3\
**Last updated:** [March 27, 2025, 8:32pm UTC](https://forums.unrealengine.com/t/cant-declare-more-than-one-customstructureparam/2421251 "2025-03-27T20:32:53Z")

</div>

I could have sworn there was a way to include multiple parameters in the meta tag Here’s what I have: UFUNCTION(BlueprintCallable, CustomThunk, meta=( DisplayName = "Test", CustomStructureParam = "A, B" ), Category="T…

---

## [Epic's Unreal Container: does it exist?](https://forums.unrealengine.com/t/epics-unreal-container-does-it-exist/250284)

<div class="topic-metadata">

**Author:** [@E847](https://forums.unrealengine.com/u/E847)\
**Replies:** 15\
**Last updated:** [March 27, 2025, 4:16pm UTC](https://forums.unrealengine.com/t/epics-unreal-container-does-it-exist/250284 "2025-03-27T16:16:50Z")

</div>

Hello! Last week, I posted a question on UE4-AnswerHub(1) about downloading the docker image of Unreal Engine following the Unreal documentation (2) but got on answer. I am wondering if the image actually exist. When I…

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

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