# C++

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

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

**Page:** 39

---

## [How to add to C++ project additional compiler flags?](https://forums.unrealengine.com/t/how-to-add-to-c-project-additional-compiler-flags/2509829)

<div class="topic-metadata">

**Author:** [@T0rgue](https://forums.unrealengine.com/u/T0rgue)\
**Replies:** 2\
**Last updated:** [May 14, 2025, 10:43pm UTC](https://forums.unrealengine.com/t/how-to-add-to-c-project-additional-compiler-flags/2509829 "2025-05-14T22:43:45Z")

</div>

This is very specific, but I want to use VA\_OPT to do some custom MACRO logic, this part works flawlessly … as long as you have the compiler flag “/Zc:preprocessor” in the Additional Options part of the project propertie…

---

## [How do I change a StaticMesh's in UStaticMeshComponent without affecting the original mesh itself?](https://forums.unrealengine.com/t/how-do-i-change-a-staticmeshs-in-ustaticmeshcomponent-without-affecting-the-original-mesh-itself/2510306)

<div class="topic-metadata">

**Author:** [@fwannmacher](https://forums.unrealengine.com/u/fwannmacher)\
**Replies:** 5\
**Last updated:** [May 14, 2025, 8:52pm UTC](https://forums.unrealengine.com/t/how-do-i-change-a-staticmeshs-in-ustaticmeshcomponent-without-affecting-the-original-mesh-itself/2510306 "2025-05-14T20:52:01Z")

</div>

I’m creating a dynamic material for the mesh I’m using in the UStaticMeshComponent but as you can see the original mesh is being edited. Following the code UStaticMesh\* LocalPlaneMesh = ConstructorHelpers::FObjectFinder\<…

---

## [Mouse Interaction during stereoscopic rendering](https://forums.unrealengine.com/t/mouse-interaction-during-stereoscopic-rendering/505081)

<div class="topic-metadata">

**Author:** [@RC-1290](https://forums.unrealengine.com/u/RC-1290)\
**Replies:** 14\
**Last updated:** [May 14, 2025, 4:08pm UTC](https://forums.unrealengine.com/t/mouse-interaction-during-stereoscopic-rendering/505081 "2025-05-14T16:08:06Z")

</div>

This is a report about a bug and a work-around. When using SteamVR (it might also apply to other VR platforms, I did not check) UMG can’t correctly translate mouse coordinates to screenspace coordinates, because the vie…

---

## [Blink Detection for UE 5.4 ](https://forums.unrealengine.com/t/blink-detection-for-ue-5-4/2509966)

<div class="topic-metadata">

**Author:** [@qrackwack](https://forums.unrealengine.com/u/qrackwack)\
**Replies:** 0\
**Last updated:** [May 14, 2025, 2:47pm UTC](https://forums.unrealengine.com/t/blink-detection-for-ue-5-4/2509966 "2025-05-14T14:47:28Z")

</div>

Hi there, I’m currently developing a horror game with webcam integration, is there any possible ways for my idea to make the blink detection? because my python i’ve made only can yield the output in the output log

---

## [Among the 6 parameters in OnComponentBeginOverlap, what does OtherBodyIndex mean? ](https://forums.unrealengine.com/t/among-the-6-parameters-in-oncomponentbeginoverlap-what-does-otherbodyindex-mean/2508364)

<div class="topic-metadata">

**Author:** [@DaegeunChoe](https://forums.unrealengine.com/u/DaegeunChoe)\
**Replies:** 1\
**Last updated:** [May 14, 2025, 1:46pm UTC](https://forums.unrealengine.com/t/among-the-6-parameters-in-oncomponentbeginoverlap-what-does-otherbodyindex-mean/2508364 "2025-05-14T13:46:58Z")

</div>

void AMyClass::OnCompBeginOverlap( UPrimitiveComponent\* OverlappedComponent, AActor\* OtherActor, UPrimitiveComponent\* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResul…

---

## [Is there any way to modify the variable name processing to allow for different naming conventions?](https://forums.unrealengine.com/t/is-there-any-way-to-modify-the-variable-name-processing-to-allow-for-different-naming-conventions/780825)

<div class="topic-metadata">

**Author:** [@dbrespawn](https://forums.unrealengine.com/u/dbrespawn)\
**Replies:** 4\
**Last updated:** [May 13, 2025, 8:32pm UTC](https://forums.unrealengine.com/t/is-there-any-way-to-modify-the-variable-name-processing-to-allow-for-different-naming-conventions/780825 "2025-05-13T20:32:22Z")

</div>

Let’s say that you want to name member variables with a prefix, like mName or m\_Name. By default, Unreal will convert both of these to “M Name”. Is there any way (short of modifying engine code) to change the way this wo…

---

## [Adding More Variable Types to PhysicalMaterial.h](https://forums.unrealengine.com/t/adding-more-variable-types-to-physicalmaterial-h/2466999)

<div class="topic-metadata">

**Author:** [@VelikyPanda](https://forums.unrealengine.com/u/VelikyPanda)\
**Replies:** 16\
**Last updated:** [May 13, 2025, 4:21pm UTC](https://forums.unrealengine.com/t/adding-more-variable-types-to-physicalmaterial-h/2466999 "2025-05-13T16:21:41Z")

</div>

Hi :wave: I’d like to add a couple of more variable types (such as material instances and sounds) to the default PhysicalMaterial.h file so that I could retrieve them after shooting an object, for example, and use them …

---

## [Physics simulation fixed time step and enhanced determinism settings, pull request](https://forums.unrealengine.com/t/physics-simulation-fixed-time-step-and-enhanced-determinism-settings-pull-request/93309)

<div class="topic-metadata">

**Author:** [@B1TZ3R0](https://forums.unrealengine.com/u/B1TZ3R0)\
**Replies:** 19\
**Last updated:** [May 13, 2025, 1:47pm UTC](https://forums.unrealengine.com/t/physics-simulation-fixed-time-step-and-enhanced-determinism-settings-pull-request/93309 "2025-05-13T13:47:48Z")

</div>

I’ve implemented, the possibility to activate fixed delta time of Physics simulation directly in the project editor. The code written is an extension of Snowcrash5 work Using a fixed physics timestep in Unreal Engine, f…

---

## [Camera not attaching to SpringArmComponent ](https://forums.unrealengine.com/t/camera-not-attaching-to-springarmcomponent/2507214)

<div class="topic-metadata">

**Author:** [@seaquill123](https://forums.unrealengine.com/u/seaquill123)\
**Replies:** 9\
**Last updated:** [May 13, 2025, 8:12am UTC](https://forums.unrealengine.com/t/camera-not-attaching-to-springarmcomponent/2507214 "2025-05-13T08:12:01Z")

</div>

this is my code

---

## [How to set tick order when using FTickableGameObject ?](https://forums.unrealengine.com/t/how-to-set-tick-order-when-using-ftickablegameobject/2507070)

<div class="topic-metadata">

**Author:** [@mrm\_dev](https://forums.unrealengine.com/u/mrm_dev)\
**Replies:** 2\
**Last updated:** [May 13, 2025, 6:03am UTC](https://forums.unrealengine.com/t/how-to-set-tick-order-when-using-ftickablegameobject/2507070 "2025-05-13T06:03:59Z")

</div>

I have a custom UObject class as such: UCLASS() class TESTING\_API UMyObject : public UObject, public FTickableGameObject { GENERATED\_BODY() public: UMyObject() { bIsCreateOnRunning = GIsRunning; } privat…

---

## [How to fix artifacts in the mesh? (Geometry Script)](https://forums.unrealengine.com/t/how-to-fix-artifacts-in-the-mesh-geometry-script/2503673)

<div class="topic-metadata">

**Author:** [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Replies:** 14\
**Last updated:** [May 13, 2025, 12:52am UTC](https://forums.unrealengine.com/t/how-to-fix-artifacts-in-the-mesh-geometry-script/2503673 "2025-05-13T00:52:52Z")

</div>

I’m doing boolean operations on a cylinder… basically I’m making holes. And artifacts are being generated that I don’t know how to eliminate. I could take the mesh to Blender. But the idea is to do it in Unreal using C…

---

## [Trouble initializing UCLASS with class member in default constructor.](https://forums.unrealengine.com/t/trouble-initializing-uclass-with-class-member-in-default-constructor/2499518)

<div class="topic-metadata">

**Author:** [@PantheraDigital](https://forums.unrealengine.com/u/PantheraDigital)\
**Replies:** 4\
**Last updated:** [May 12, 2025, 11:58pm UTC](https://forums.unrealengine.com/t/trouble-initializing-uclass-with-class-member-in-default-constructor/2499518 "2025-05-12T23:58:58Z")

</div>

I have this error error: constructor for 'UActionQueue' must explicitly initialize the member 'queue' which does not have a default constructor Here is the code in question // ActionQueue.h UCLASS( ClassGroup=(Custom)…

---

## [Spawn Actor crashing](https://forums.unrealengine.com/t/spawn-actor-crashing/2496852)

<div class="topic-metadata">

**Author:** [@GoodToGo3](https://forums.unrealengine.com/u/GoodToGo3)\
**Replies:** 1\
**Last updated:** [May 12, 2025, 5:39pm UTC](https://forums.unrealengine.com/t/spawn-actor-crashing/2496852 "2025-05-12T17:39:27Z")

</div>

Hi there, I am trying to spawn an actor using C++ but get an error thrown in the statement spawn actor. AbilityWeapon is TSubClassof ARA\_Weapon. ARA\_Weapon\* CastedWeapon1 = Cast\<ARA\_Weapon\>(AbilityWeapon-\>GetDefaultOb…

---

## [Learning Agents issue with SetupCompletions](https://forums.unrealengine.com/t/learning-agents-issue-with-setupcompletions/2490324)

<div class="topic-metadata">

**Author:** [@Marsal02](https://forums.unrealengine.com/u/Marsal02)\
**Replies:** 1\
**Last updated:** [May 12, 2025, 1:52pm UTC](https://forums.unrealengine.com/t/learning-agents-issue-with-setupcompletions/2490324 "2025-05-12T13:52:45Z")

</div>

Hi so I am trying to create an AI that would be basically an Enemy archer that would learn how to shoot enemies that are moving continuously in a room I am using Learning Agents on 5.3.2, also using C++. My issue is that…

---

## [FastBuild UE5.1 VS2022 error](https://forums.unrealengine.com/t/fastbuild-ue5-1-vs2022-error/729663)

<div class="topic-metadata">

**Author:** [@LitTwilight](https://forums.unrealengine.com/u/LitTwilight)\
**Replies:** 4\
**Last updated:** [May 12, 2025, 1:21pm UTC](https://forums.unrealengine.com/t/fastbuild-ue5-1-vs2022-error/729663 "2025-05-12T13:21:17Z")

</div>

I was building unreal engine 5.1 using VS2022 with FastBuild Enable;But what i got is Remote System failure with error C1083:Cannot open compiler generated file ‘…\\Plugins\\Animation\\RigLogic\\Intermediate\\Build\\Win64\\Unre…

---

## [Design + In-Game Editor System with Gizmo & Cesium Integration](https://forums.unrealengine.com/t/design-in-game-editor-system-with-gizmo-cesium-integration/2505003)

<div class="topic-metadata">

**Author:** [@TheRageGames](https://forums.unrealengine.com/u/TheRageGames)\
**Replies:** 0\
**Last updated:** [May 12, 2025, 3:20am UTC](https://forums.unrealengine.com/t/design-in-game-editor-system-with-gizmo-cesium-integration/2505003 "2025-05-12T03:20:16Z")

</div>

Hi everyone! I made a bridge design tool inside Unreal Engine. It lets you design bridges in-game, move objects with a gizmo, and edit things like faces and vertices. It also works with Cesium to stream real-world maps. …

---

## [new to c++ and cant set each actor with a health component i made to have a different health value](https://forums.unrealengine.com/t/new-to-c-and-cant-set-each-actor-with-a-health-component-i-made-to-have-a-different-health-value/2504293)

<div class="topic-metadata">

**Author:** [@annonymousfart1](https://forums.unrealengine.com/u/annonymousfart1)\
**Replies:** 1\
**Last updated:** [May 11, 2025, 11:42pm UTC](https://forums.unrealengine.com/t/new-to-c-and-cant-set-each-actor-with-a-health-component-i-made-to-have-a-different-health-value/2504293 "2025-05-11T23:42:50Z")

</div>

Hi, im new to c++ and have been learning it for the last month or so. Ive tried to create a health component which ive added to the player and my enemies, whenver i try to set the default health value on each character t…

---

## [BindAxis or BindAction?](https://forums.unrealengine.com/t/bindaxis-or-bindaction/2501257)

<div class="topic-metadata">

**Author:** [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Replies:** 0\
**Last updated:** [May 10, 2025, 6:50pm UTC](https://forums.unrealengine.com/t/bindaxis-or-bindaction/2501257 "2025-05-10T18:50:23Z")

</div>

Hi! I have this code: void ASCharacter::SetupPlayerInputComponent(UInputComponent\* PlayerInputComponent) { Super::SetupPlayerInputComponent(PlayerInputComponent); if (UEnhancedInputComponent\* EnhancedInputCom…

---

## [How to return a ref to a struct?](https://forums.unrealengine.com/t/how-to-return-a-ref-to-a-struct/2476143)

<div class="topic-metadata">

**Author:** [@PantheraDigital](https://forums.unrealengine.com/u/PantheraDigital)\
**Replies:** 26\
**Last updated:** [May 10, 2025, 5:08pm UTC](https://forums.unrealengine.com/t/how-to-return-a-ref-to-a-struct/2476143 "2025-05-10T17:08:55Z")

</div>

I’ve seen many questions on this and yet I seem to be missing something. Right now I simply want to return the ref to a private struct in a class so modification can happen. I also want to be able to use this in blue pri…

---

## [Spawn items where AI is dead](https://forums.unrealengine.com/t/spawn-items-where-ai-is-dead/2501103)

<div class="topic-metadata">

**Author:** [@sehwa](https://forums.unrealengine.com/u/sehwa)\
**Replies:** 0\
**Last updated:** [May 10, 2025, 4:59pm UTC](https://forums.unrealengine.com/t/spawn-items-where-ai-is-dead/2501103 "2025-05-10T16:59:48Z")

</div>

Hello, I’m about to spawn an item in a location where AI died. An animation of AI dying as it dies is played. I want to spawn items in that location when the AI dies animation is running. I want to move a little bit and…

---

## [First Person Character does not want to move and neither of my HUD's are active in my screen](https://forums.unrealengine.com/t/first-person-character-does-not-want-to-move-and-neither-of-my-huds-are-active-in-my-screen/2499949)

<div class="topic-metadata">

**Author:** [@Nano8212](https://forums.unrealengine.com/u/Nano8212)\
**Replies:** 0\
**Last updated:** [May 10, 2025, 2:39am UTC](https://forums.unrealengine.com/t/first-person-character-does-not-want-to-move-and-neither-of-my-huds-are-active-in-my-screen/2499949 "2025-05-10T02:39:33Z")

</div>

Hello, my first person charcter does not want to move at all and was wondering what I can do to fix it, I really don’t want to restart this portfotlio so any suggestions will help.

---

## [nvidia dlss 3.7 for ue 4.27](https://forums.unrealengine.com/t/nvidia-dlss-3-7-for-ue-4-27/1905464)

<div class="topic-metadata">

**Author:** [@TheSettlers999](https://forums.unrealengine.com/u/TheSettlers999)\
**Replies:** 7\
**Last updated:** [May 9, 2025, 10:57pm UTC](https://forums.unrealengine.com/t/nvidia-dlss-3-7-for-ue-4-27/1905464 "2025-05-09T22:57:25Z")

</div>

I’ve linked the account, but there is still no access to the storage. Has it been deleted by any chance? If it was deleted, can someone provide a link to download this version of dlss?

---

## [Error executing cl.exe (tool returned code: 2)](https://forums.unrealengine.com/t/error-executing-cl-exe-tool-returned-code-2/428686)

<div class="topic-metadata">

**Author:** [@kingfroverr](https://forums.unrealengine.com/u/kingfroverr)\
**Replies:** 6\
**Last updated:** [May 9, 2025, 5:31pm UTC](https://forums.unrealengine.com/t/error-executing-cl-exe-tool-returned-code-2/428686 "2025-05-09T17:31:14Z")

</div>

Xoreax Grid Engine Console 8.01 (build 1867) Copyright (C) 2001-2017 Xoreax Software Ltd. All rights reserved. ----------------------------------------------------------------- --------------------Build System Warning…

---

## [Turn off Shadowed Variable Errors](https://forums.unrealengine.com/t/turn-off-shadowed-variable-errors/144649)

<div class="topic-metadata">

**Author:** [@m.duman](https://forums.unrealengine.com/u/m.duman)\
**Replies:** 8\
**Last updated:** [May 9, 2025, 10:53am UTC](https://forums.unrealengine.com/t/turn-off-shadowed-variable-errors/144649 "2025-05-09T10:53:06Z")

</div>

I am trying to turn off the new build settings for UE 4.25: Using backward-compatible build settings. The latest version of UE4 sets the following values by default, which may require code changes: … ShadowVariableWar…

---

## [Random Input lag spikes in ue5.5?](https://forums.unrealengine.com/t/random-input-lag-spikes-in-ue5-5/2363478)

<div class="topic-metadata">

**Author:** [@Tarkin1230](https://forums.unrealengine.com/u/Tarkin1230)\
**Replies:** 3\
**Last updated:** [May 9, 2025, 3:47am UTC](https://forums.unrealengine.com/t/random-input-lag-spikes-in-ue5-5/2363478 "2025-05-09T03:47:34Z")

</div>

Is there some kind of bug with 5.5 engine or i mess up my code? I was trying to do camera movement in enhanced input system c++, but the game runs on 60 fps, and suddenly i got 30 fps drop randomly. Why is that happening…

---

## [Static bool parameter](https://forums.unrealengine.com/t/static-bool-parameter/2497118)

<div class="topic-metadata">

**Author:** [@StarDust853](https://forums.unrealengine.com/u/StarDust853)\
**Replies:** 1\
**Last updated:** [May 8, 2025, 7:35pm UTC](https://forums.unrealengine.com/t/static-bool-parameter/2497118 "2025-05-08T19:35:50Z")

</div>

Is it possible to enable static bool parameter of material instance in runtime with c++?

---

## [Unreal Engine HTTP Server Only Works on Localhost (Cannot Bind to LAN IP)](https://forums.unrealengine.com/t/unreal-engine-http-server-only-works-on-localhost-cannot-bind-to-lan-ip/2334202)

<div class="topic-metadata">

**Author:** [@Mosticek](https://forums.unrealengine.com/u/Mosticek)\
**Replies:** 1\
**Last updated:** [May 7, 2025, 3:18pm UTC](https://forums.unrealengine.com/t/unreal-engine-http-server-only-works-on-localhost-cannot-bind-to-lan-ip/2334202 "2025-05-07T15:18:20Z")

</div>

Hello friends, I’m trying to run an HTTP server in my Unreal Engine (UE 4.27) app, but I’m struggling with an issue. I would be really grateful for any advice or suggestions on how to resolve this! Thanks in advance! I…

---

## [Compile error when adding USaveGame class](https://forums.unrealengine.com/t/compile-error-when-adding-usavegame-class/2495470)

<div class="topic-metadata">

**Author:** [@Karyfan](https://forums.unrealengine.com/u/Karyfan)\
**Replies:** 1\
**Last updated:** [May 7, 2025, 2:24pm UTC](https://forums.unrealengine.com/t/compile-error-when-adding-usavegame-class/2495470 "2025-05-07T14:24:17Z")

</div>

UE5.3.2. My WIP project compiles and packages well. When I add a USaveGame class, it stops compiling, giving me error, related to UUserWidget: CompilerResultsLog: Error: C:\\Program Files\\Epic Games\\UE\_5.3\\Engine\\Source\\…

---

## [Unhandled exception: BadImageFormatException: Bad IL format. The format of the file 'XXXModuleRules.dll' is invalid. ](https://forums.unrealengine.com/t/unhandled-exception-badimageformatexception-bad-il-format-the-format-of-the-file-xxxmodulerules-dll-is-invalid/2493634)

<div class="topic-metadata">

**Author:** [@tsi6800](https://forums.unrealengine.com/u/tsi6800)\
**Replies:** 3\
**Last updated:** [May 7, 2025, 1:45pm UTC](https://forums.unrealengine.com/t/unhandled-exception-badimageformatexception-bad-il-format-the-format-of-the-file-xxxmodulerules-dll-is-invalid/2493634 "2025-05-07T13:45:34Z")

</div>

When I try to create a blank C++ project I got the following error: Unhandled exception: BadImageFormatException: Bad IL format. The format of the file ‘C:\\work\\Unreal Projects\\QuickStart\\Intermediate\\Build\\BuildRules\\Q…

---

## [Error on created C++ based project](https://forums.unrealengine.com/t/error-on-created-c-based-project/469653)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_be4240d3](https://forums.unrealengine.com/u/anonymous_user_be4240d3)\
**Replies:** 17\
**Last updated:** [May 7, 2025, 5:10am UTC](https://forums.unrealengine.com/t/error-on-created-c-based-project/469653 "2025-05-07T05:10:26Z")

</div>

I just setup a new computer and installed unreal engine 4.25.3. I tried to create an C++ project and I get the following error when I click “Create Project”. Running C:/Program Files/Epic Games/UE\_4.25/Engine/Binaries/D…

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

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