# C++

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

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

**Page:** 40

---

## [How do I use SystemParametersInfoW function?](https://forums.unrealengine.com/t/how-do-i-use-systemparametersinfow-function/2485776)

<div class="topic-metadata">

**Author:** [@Turkale](https://forums.unrealengine.com/u/Turkale)\
**Replies:** 1\
**Last updated:** [May 6, 2025, 11:02am UTC](https://forums.unrealengine.com/t/how-do-i-use-systemparametersinfow-function/2485776 "2025-05-06T11:02:27Z")

</div>

I need to call this Windows function SystemParametersInfoW and #include "Windows/AllowWindowsPlatformTypes.h" #include \<Windows.h\> #include "Windows/HideWindowsPlatformTypes.h" includes. But I’m getting WallpaperActor…

---

## [Reducing the file size of a Paragon hero assets in a single project?](https://forums.unrealengine.com/t/reducing-the-file-size-of-a-paragon-hero-assets-in-a-single-project/118960)

<div class="topic-metadata">

**Author:** [@Nogbit](https://forums.unrealengine.com/u/Nogbit)\
**Replies:** 7\
**Last updated:** [May 5, 2025, 6:25pm UTC](https://forums.unrealengine.com/t/reducing-the-file-size-of-a-paragon-hero-assets-in-a-single-project/118960 "2025-05-05T18:25:54Z")

</div>

I’m working on a Paragon Hero Lab that is coming along nicely. However, now that I have all the heroes in the project the size of that directory is now 76GB. I was wondering if anyone has suggestions on optimizing this…

---

## [Applying a texture at runtime on a landscape ](https://forums.unrealengine.com/t/applying-a-texture-at-runtime-on-a-landscape/2491519)

<div class="topic-metadata">

**Author:** [@tphilippeadb](https://forums.unrealengine.com/u/tphilippeadb)\
**Replies:** 0\
**Last updated:** [May 5, 2025, 1:36pm UTC](https://forums.unrealengine.com/t/applying-a-texture-at-runtime-on-a-landscape/2491519 "2025-05-05T13:36:28Z")

</div>

Hello there! I have been trying for several days to apply a ground color texture to a landscape at runtime (in the editor, not in game) with c++. I use height data loaded for HTTP servers and spawn a landscape actor, t…

---

## [My TScriptDelegate becomes unbound after several hours,  is there any explanation?](https://forums.unrealengine.com/t/my-tscriptdelegate-becomes-unbound-after-several-hours-is-there-any-explanation/2082960)

<div class="topic-metadata">

**Author:** [@dhaieis1](https://forums.unrealengine.com/u/dhaieis1)\
**Replies:** 3\
**Last updated:** [May 5, 2025, 11:26am UTC](https://forums.unrealengine.com/t/my-tscriptdelegate-becomes-unbound-after-several-hours-is-there-any-explanation/2082960 "2025-05-05T11:26:16Z")

</div>

I am having an issue where a multicast delegate stops broadcasting events to subscribed script delegates. In short, I create a multicast delegate: DECLARE\_DYNAMIC\_MULTICAST\_DELEGATE\_OneParam(FDataEv, const FString&, Me…

---

## [Procedural Landscapes - editing the heightmap in C++?](https://forums.unrealengine.com/t/procedural-landscapes-editing-the-heightmap-in-c/2880)

<div class="topic-metadata">

**Author:** [@Mesothere](https://forums.unrealengine.com/u/Mesothere)\
**Replies:** 17\
**Last updated:** [May 5, 2025, 8:15am UTC](https://forums.unrealengine.com/t/procedural-landscapes-editing-the-heightmap-in-c/2880 "2025-05-05T08:15:06Z")

</div>

Hi there, I’m loving the new Landscape system. I’ve combed over the documentation but I’m not certain if there’s a way to achieve what I want - at runtime, would I be able to change the heightmap of a terrain? For examp…

---

## [Getting properties of a struct using FProperty](https://forums.unrealengine.com/t/getting-properties-of-a-struct-using-fproperty/570207)

<div class="topic-metadata">

**Author:** [@Boon](https://forums.unrealengine.com/u/Boon)\
**Replies:** 6\
**Last updated:** [May 5, 2025, 3:16am UTC](https://forums.unrealengine.com/t/getting-properties-of-a-struct-using-fproperty/570207 "2025-05-05T03:16:54Z")

</div>

I have a case where I want to access the fields of a struct within a class using only the name of the field as an FName. I don’t know the type of struct, but I know it will always be called MyStruct. Target is a UObject\*…

---

## [How to update blueprint property through editor code](https://forums.unrealengine.com/t/how-to-update-blueprint-property-through-editor-code/631692)

<div class="topic-metadata">

**Author:** [@Romenski](https://forums.unrealengine.com/u/Romenski)\
**Replies:** 6\
**Last updated:** [May 5, 2025, 3:15am UTC](https://forums.unrealengine.com/t/how-to-update-blueprint-property-through-editor-code/631692 "2025-05-05T03:15:00Z")

</div>

Hello, I am trying to implement a plugin that extends the Blueprint Editor with a custom property editor. I am using the following code to update the property value on a blueprint: TSharedPtr\<FBlueprintEditor\> Blueprin…

---

## [Instanced Object Property of ActorComponent initializes without edited values in inspector](https://forums.unrealengine.com/t/instanced-object-property-of-actorcomponent-initializes-without-edited-values-in-inspector/630207)

<div class="topic-metadata">

**Author:** [@guillemsrr](https://forums.unrealengine.com/u/guillemsrr)\
**Replies:** 5\
**Last updated:** [May 5, 2025, 3:08am UTC](https://forums.unrealengine.com/t/instanced-object-property-of-actorcomponent-initializes-without-edited-values-in-inspector/630207 "2025-05-05T03:08:05Z")

</div>

It seems that an instanced UObject as an ActorComponent property doesn’t care about its edited values on the BP. That same UObject as an instanced property of the Actor itself (which contains the ActorComponent) does wor…

---

## [Unreal Engine: Missing Modules error; Project Launch Error](https://forums.unrealengine.com/t/unreal-engine-missing-modules-error-project-launch-error/2477922)

<div class="topic-metadata">

**Author:** [@realJacobH](https://forums.unrealengine.com/u/realJacobH)\
**Replies:** 3\
**Last updated:** [May 5, 2025, 1:17am UTC](https://forums.unrealengine.com/t/unreal-engine-missing-modules-error-project-launch-error/2477922 "2025-05-05T01:17:25Z")

</div>

When I added a plugin: VoiceChat when I decided to test it out and give Online Features for my game that I am developing, and that because of this, I can’t launch my project. Is there a way to fix this, does I rebuild th…

---

## [Should I check if delegate IsBound() everytime before broadcasting?](https://forums.unrealengine.com/t/should-i-check-if-delegate-isbound-everytime-before-broadcasting/2489969)

<div class="topic-metadata">

**Author:** [@mrm\_dev](https://forums.unrealengine.com/u/mrm_dev)\
**Replies:** 1\
**Last updated:** [May 4, 2025, 2:03pm UTC](https://forums.unrealengine.com/t/should-i-check-if-delegate-isbound-everytime-before-broadcasting/2489969 "2025-05-04T14:03:22Z")

</div>

I have a delegate MyDelegate separated into Native and BP version like this : UDELEGATE() DECLARE\_DYNAMIC\_MULTICAST\_DELEGATE\_OneParam(FMyDelegateBP, int32, FirstVar); DECLARE\_MULTICAST\_DELEGATE\_OneParam(FMyDelegate, int…

---

## [Component subobject delegate calls different component](https://forums.unrealengine.com/t/component-subobject-delegate-calls-different-component/2488710)

<div class="topic-metadata">

**Author:** [@Domnias](https://forums.unrealengine.com/u/Domnias)\
**Replies:** 0\
**Last updated:** [May 3, 2025, 4:49pm UTC](https://forums.unrealengine.com/t/component-subobject-delegate-calls-different-component/2488710 "2025-05-03T16:49:10Z")

</div>

I have a problem where I bind a lambda to a subobject’s delegate within a component and when the subobjects executes the delegate, it is called in a different component. test\_ownership\_actor.h: #pragma once #include "…

---

## [why my rider put this(GetLocalPlayer()) as error and didn't detect it on my intellisense?](https://forums.unrealengine.com/t/why-my-rider-put-this-getlocalplayer-as-error-and-didnt-detect-it-on-my-intellisense/2487916)

<div class="topic-metadata">

**Author:** [@All\_Jacket](https://forums.unrealengine.com/u/All_Jacket)\
**Replies:** 1\
**Last updated:** [May 3, 2025, 2:08pm UTC](https://forums.unrealengine.com/t/why-my-rider-put-this-getlocalplayer-as-error-and-didnt-detect-it-on-my-intellisense/2487916 "2025-05-03T14:08:13Z")

</div>

APlayerCharacter \*PlayerController = Cast\<APlayerCharacter\>(Controller); if (PlayerController) { ULocalPlayer::GetSubsystem\<UEnhancedInputLocalPlayerSubsystem\>(PlayerController-\>GetLocalPlayer()); //\<--- …

---

## [sha1-x86\_64.asm problem ](https://forums.unrealengine.com/t/sha1-x86-64-asm-problem/2488416)

<div class="topic-metadata">

**Author:** [@empty\_blue](https://forums.unrealengine.com/u/empty_blue)\
**Replies:** 0\
**Last updated:** [May 3, 2025, 1:11pm UTC](https://forums.unrealengine.com/t/sha1-x86-64-asm-problem/2488416 "2025-05-03T13:11:39Z")

</div>

can look this question. i solve my problem by this. it due to openssl bug

---

## [Location-only SceneComponent as Actor root](https://forums.unrealengine.com/t/location-only-scenecomponent-as-actor-root/2485024)

<div class="topic-metadata">

**Author:** [@volumetrix](https://forums.unrealengine.com/u/volumetrix)\
**Replies:** 1\
**Last updated:** [May 1, 2025, 8:25pm UTC](https://forums.unrealengine.com/t/location-only-scenecomponent-as-actor-root/2485024 "2025-05-01T20:25:52Z")

</div>

Is there a way to have the root component of an actor be just a location? The actor has several ActorComponents (with child components themselves) which move independently from each-other. Is there a way to have a commo…

---

## [VS 2022 Build Not Updating UE5.5](https://forums.unrealengine.com/t/vs-2022-build-not-updating-ue5-5/2377268)

<div class="topic-metadata">

**Author:** [@EvieGames](https://forums.unrealengine.com/u/EvieGames)\
**Replies:** 6\
**Last updated:** [May 1, 2025, 1:09pm UTC](https://forums.unrealengine.com/t/vs-2022-build-not-updating-ue5-5/2377268 "2025-05-01T13:09:15Z")

</div>

Does anyone know why my Visual Studio 2022 changes do not update inside of the engine (specifically UE5.5). I’ve been using VS and Unreal together for several years and since I upgraded to 5.5 I’ve had nothing, but issue…

---

## [HISM BatchUpdateInstancesTransforms not actually batching?](https://forums.unrealengine.com/t/hism-batchupdateinstancestransforms-not-actually-batching/2450832)

<div class="topic-metadata">

**Author:** [@dankrusi](https://forums.unrealengine.com/u/dankrusi)\
**Replies:** 2\
**Last updated:** [April 30, 2025, 7:33am UTC](https://forums.unrealengine.com/t/hism-batchupdateinstancestransforms-not-actually-batching/2450832 "2025-04-30T07:33:02Z")

</div>

Looking at the Unreal Engine 5 source code for UHierarchicalInstancedStaticMeshComponent, am I correct that the batching instance methods don’t actually ‘batch’ the transform updates? When I read the code I see the batc…

---

## [ArchiveProxy.h file errors](https://forums.unrealengine.com/t/archiveproxy-h-file-errors/1961997)

<div class="topic-metadata">

**Author:** [@DemrhnRVG31](https://forums.unrealengine.com/u/DemrhnRVG31)\
**Replies:** 11\
**Last updated:** [April 29, 2025, 4:38pm UTC](https://forums.unrealengine.com/t/archiveproxy-h-file-errors/1961997 "2025-04-29T16:38:11Z")

</div>

when i open a unreal engine 5 project and always there is a ArchiveProxy.h file error. please help me im searching this error for 2 days

---

## [Problem with ProjectileMovementComponent ](https://forums.unrealengine.com/t/problem-with-projectilemovementcomponent/2479932)

<div class="topic-metadata">

**Author:** [@beebooba](https://forums.unrealengine.com/u/beebooba)\
**Replies:** 1\
**Last updated:** [April 28, 2025, 3:42pm UTC](https://forums.unrealengine.com/t/problem-with-projectilemovementcomponent/2479932 "2025-04-28T15:42:56Z")

</div>

Hi everyone, I’m working on a projectile throwing system. After spawning the projectile, I confirmed that the Velocity and Speed values are set correctly in the instance details. However, the projectile doesn’t mo…

---

## [Prevent the bullets from hitting oneself ](https://forums.unrealengine.com/t/prevent-the-bullets-from-hitting-oneself/2475008)

<div class="topic-metadata">

**Author:** [@beerduckReal](https://forums.unrealengine.com/u/beerduckReal)\
**Replies:** 3\
**Last updated:** [April 28, 2025, 2:44pm UTC](https://forums.unrealengine.com/t/prevent-the-bullets-from-hitting-oneself/2475008 "2025-04-28T14:44:22Z")

</div>

When I was firing the bullet, due to the large collision box of my bullet, it immediately collided with the character itself at the moment of firing and hurt myself. However, I didn’t want to simply change the response t…

---

## [Init for ActorComponents and Owning Actors not yet spawned.](https://forums.unrealengine.com/t/init-for-actorcomponents-and-owning-actors-not-yet-spawned/2478619)

<div class="topic-metadata">

**Author:** [@Nawrot](https://forums.unrealengine.com/u/Nawrot)\
**Replies:** 6\
**Last updated:** [April 28, 2025, 2:29pm UTC](https://forums.unrealengine.com/t/init-for-actorcomponents-and-owning-actors-not-yet-spawned/2478619 "2025-04-28T14:29:31Z")

</div>

I know same stuff (in different flavor) exists in Blueprints (famous delay 2.0 some years ago). But now i have problem with ActorComponents, needing to initialize on class init or begin play. However problem is that ac…

---

## [Why doesn’t Visual Studio open automatically with my Unreal Engine C++ project?](https://forums.unrealengine.com/t/why-doesn-t-visual-studio-open-automatically-with-my-unreal-engine-c-project/2475720)

<div class="topic-metadata">

**Author:** [@drnooe](https://forums.unrealengine.com/u/drnooe)\
**Replies:** 4\
**Last updated:** [April 27, 2025, 2:24pm UTC](https://forums.unrealengine.com/t/why-doesn-t-visual-studio-open-automatically-with-my-unreal-engine-c-project/2475720 "2025-04-27T14:24:34Z")

</div>

hey guys, I’m trying to create a plugin with Unreal Engine. What I did was create a new project, select the C++ template, and clicked create. The problem is when Unreal Engine opens, it gives me a command prompt window,…

---

## [Safety of using throwaway FTimerHandles](https://forums.unrealengine.com/t/safety-of-using-throwaway-ftimerhandles/2477977)

<div class="topic-metadata">

**Author:** [@mectorn](https://forums.unrealengine.com/u/mectorn)\
**Replies:** 2\
**Last updated:** [April 27, 2025, 1:43pm UTC](https://forums.unrealengine.com/t/safety-of-using-throwaway-ftimerhandles/2477977 "2025-04-27T13:43:53Z")

</div>

In my project one function needs to call another after a certain delay. One problem is that it’s possible I’ll need to call the first function multiple times even before the first timer executes so if I had only one FTim…

---

## [UGameEngine::Experimental\_ShouldPreDuplicateMap prevents begin play from running](https://forums.unrealengine.com/t/ugameengine-experimental-shouldpreduplicatemap-prevents-begin-play-from-running/2477002)

<div class="topic-metadata">

**Author:** [@KMC\_FTW](https://forums.unrealengine.com/u/KMC_FTW)\
**Replies:** 1\
**Last updated:** [April 26, 2025, 2:52pm UTC](https://forums.unrealengine.com/t/ugameengine-experimental-shouldpreduplicatemap-prevents-begin-play-from-running/2477002 "2025-04-26T14:52:20Z")

</div>

When Experimental\_ShouldPreDuplicateMap is set to true, like this: bool UGameEngine::Experimental\_ShouldPreDuplicateMap(const FName MapName) const { return true; } This causes BeginPlay to be not be called on any acto…

---

## [Error when launching Unreal Engine as Debug session through Visual Studio 2022](https://forums.unrealengine.com/t/error-when-launching-unreal-engine-as-debug-session-through-visual-studio-2022/2472958)

<div class="topic-metadata">

**Author:** [@Tiggerljc](https://forums.unrealengine.com/u/Tiggerljc)\
**Replies:** 8\
**Last updated:** [April 26, 2025, 2:29am UTC](https://forums.unrealengine.com/t/error-when-launching-unreal-engine-as-debug-session-through-visual-studio-2022/2472958 "2025-04-26T02:29:31Z")

</div>

Hello! Getting lots of annoying errors when trying to open my project in Visual Studio. It is a fresh Lyra project for now (all I’ve done is add a blank map called Startup in the Content folder) and set it as default ed…

---

## [\[SOLVED\] Error MSB3073 (Version 4.26)](https://forums.unrealengine.com/t/solved-error-msb3073-version-4-26/156371)

<div class="topic-metadata">

**Author:** [@SirCodalot](https://forums.unrealengine.com/u/SirCodalot)\
**Replies:** 11\
**Last updated:** [April 25, 2025, 5:20pm UTC](https://forums.unrealengine.com/t/solved-error-msb3073-version-4-26/156371 "2025-04-25T17:20:56Z")

</div>

I’m trying to build the latest release branch and I’m getting this error: 3\> Creating library D:\\UE4\\UnrealEngine\\Engine\\Plugins\\Importers\\USDImporter\\Intermediate\\Build\\Win64\\UE4Editor\\Development\\UnrealUSDWrapper\\UE…

---

## [ue 5 keep crashing when ever opeing a new project nhandled Exception: EXCEPTION\_ACCESS\_VIOLATION reading address 0x0000000000000028 nvwgf2umx nvwgf2umx nvwgf2umx nvwgf2umx nvwgf2umx nvwgf2umx D3D12Core dxgi dxgi dxgi dxgi dxgi dxgi dxgi UnrealEditor\_D3D1](https://forums.unrealengine.com/t/ue-5-keep-crashing-when-ever-opeing-a-new-project-nhandled-exception-exception-access-violation-reading-address-0x0000000000000028-nvwgf2umx-nvwgf2umx-nvwgf2umx-nvwgf2umx-nvwgf2umx-nvwgf2umx-d3d12core-dxgi-dxgi-dxgi-dxgi-dxgi-dxgi-dxgi-unrealeditor-d3d1/2069902)

<div class="topic-metadata">

**Author:** [@KALYUG101](https://forums.unrealengine.com/u/KALYUG101)\
**Replies:** 3\
**Last updated:** [April 25, 2025, 2:33pm UTC](https://forums.unrealengine.com/t/ue-5-keep-crashing-when-ever-opeing-a-new-project-nhandled-exception-exception-access-violation-reading-address-0x0000000000000028-nvwgf2umx-nvwgf2umx-nvwgf2umx-nvwgf2umx-nvwgf2umx-nvwgf2umx-d3d12core-dxgi-dxgi-dxgi-dxgi-dxgi-dxgi-dxgi-unrealeditor-d3d1/2069902 "2025-04-25T14:33:43Z")

</div>

nhandled Exception: EXCEPTION\_ACCESS\_VIOLATION reading address 0x0000000000000028 nvwgf2umx nvwgf2umx nvwgf2umx nvwgf2umx nvwgf2umx nvwgf2umx D3D12Core dxgi dxgi dxgi dxgi dxgi dxgi dxgi UnrealEditor\_D3D12…

---

## [Is default C++ interface functionality on blueprint implemented objects possible?](https://forums.unrealengine.com/t/is-default-c-interface-functionality-on-blueprint-implemented-objects-possible/2475103)

<div class="topic-metadata">

**Author:** [@Paddles](https://forums.unrealengine.com/u/Paddles)\
**Replies:** 1\
**Last updated:** [April 25, 2025, 1:48pm UTC](https://forums.unrealengine.com/t/is-default-c-interface-functionality-on-blueprint-implemented-objects-possible/2475103 "2025-04-25T13:48:14Z")

</div>

When implementing an interface on a UObject (or other) in C++, we don’t need to provide overrides to default functionality if we so wish. The official interface documentation states as much. This is true for even Bluepri…

---

## [Strange behaviour of Enhanced input - need double clicking insted of single click](https://forums.unrealengine.com/t/strange-behaviour-of-enhanced-input-need-double-clicking-insted-of-single-click/2472746)

<div class="topic-metadata">

**Author:** [@KKJMJ9](https://forums.unrealengine.com/u/KKJMJ9)\
**Replies:** 3\
**Last updated:** [April 25, 2025, 6:00am UTC](https://forums.unrealengine.com/t/strange-behaviour-of-enhanced-input-need-double-clicking-insted-of-single-click/2472746 "2025-04-25T06:00:36Z")

</div>

Hello, I’m getting strange behavior when using Enhanced input to detect pressing or releasing the left mouse button in the inventory. The code below is supposed to make posible for player to drag items in inventory, whe…

---

## [Not able to compile fresh new C++ project](https://forums.unrealengine.com/t/not-able-to-compile-fresh-new-c-project/2349957)

<div class="topic-metadata">

**Author:** [@Engelard](https://forums.unrealengine.com/u/Engelard)\
**Replies:** 10\
**Last updated:** [April 25, 2025, 4:11am UTC](https://forums.unrealengine.com/t/not-able-to-compile-fresh-new-c-project/2349957 "2025-04-25T04:11:43Z")

</div>

Just recently reinstalled my Win10, everything updated. And all the software, Unreal Engine 5.5.3, Visual Studio 2022, with VS installer added all necessary stuff as usual. Tried to create fresh new Third Person project…

---

## [Collision settings for components](https://forums.unrealengine.com/t/collision-settings-for-components/2474072)

<div class="topic-metadata">

**Author:** [@volumetrix](https://forums.unrealengine.com/u/volumetrix)\
**Replies:** 1\
**Last updated:** [April 24, 2025, 5:42pm UTC](https://forums.unrealengine.com/t/collision-settings-for-components/2474072 "2025-04-24T17:42:13Z")

</div>

How does setting the collision of an actor affect the collision of attached components? Let’s say there is an actor A which has a mesh M (the root component) and a box component B (attached to root M). If the mesh M is…

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

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