# C++

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

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

**Page:** 81

---

## [Slim down engine source build?](https://forums.unrealengine.com/t/slim-down-engine-source-build/101112)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_b65ae2a21](https://forums.unrealengine.com/u/anonymous_user_b65ae2a21)\
**Replies:** 12\
**Last updated:** [September 23, 2024, 6:14am UTC](https://forums.unrealengine.com/t/slim-down-engine-source-build/101112 "2024-09-23T06:14:53Z")

</div>

I’m currently compiling the engine from source that I forked on GitHub. I would like to slim down the engine compile time and size by removing platforms I’m not interested in. So far I’ve done the following: When using…

---

## [Can't compile the unreal engine source code.](https://forums.unrealengine.com/t/cant-compile-the-unreal-engine-source-code/2014733)

<div class="topic-metadata">

**Author:** [@user\_260b49baa777d926d7e6e0968f5202bd08bdcd5d413290f0337be4](https://forums.unrealengine.com/u/user_260b49baa777d926d7e6e0968f5202bd08bdcd5d413290f0337be4)\
**Replies:** 2\
**Last updated:** [September 23, 2024, 1:29am UTC](https://forums.unrealengine.com/t/cant-compile-the-unreal-engine-source-code/2014733 "2024-09-23T01:29:02Z")

</div>

I download the source code from github. And execute setup.bat and generateprojectfiles.bat by following the readme in github. But it compiled failed. Here is the errors: 1\>\[1/4054\] Link \[x64\] UnrealEditor-DesktopPlatfo…

---

## [Changing "Source" and "Target" attributes with Execution Calculation in Gameplay Ability System](https://forums.unrealengine.com/t/changing-source-and-target-attributes-with-execution-calculation-in-gameplay-ability-system/510702)

<div class="topic-metadata">

**Author:** [@archangel4031](https://forums.unrealengine.com/u/archangel4031)\
**Replies:** 5\
**Last updated:** [September 22, 2024, 9:30pm UTC](https://forums.unrealengine.com/t/changing-source-and-target-attributes-with-execution-calculation-in-gameplay-ability-system/510702 "2024-09-22T21:30:45Z")

</div>

Hi All, I’m trying to implement a Life Steal Gameplay Effect Exec Class. In this I need to modify the Attributes of Source as well as Target. My problem is that the attribute of Target is changed correctly, however, the…

---

## [New Input System -\> FInputActionValue vs FInputActionInstance](https://forums.unrealengine.com/t/new-input-system-finputactionvalue-vs-finputactioninstance/756139)

<div class="topic-metadata">

**Author:** [@Auticus.Daerk](https://forums.unrealengine.com/u/Auticus.Daerk)\
**Replies:** 2\
**Last updated:** [September 22, 2024, 1:12pm UTC](https://forums.unrealengine.com/t/new-input-system-finputactionvalue-vs-finputactioninstance/756139 "2024-09-22T13:12:38Z")

</div>

Can someone tell me the difference between using FInputActionValue& and FInputActionInstance& when writing handlers for the new input system? I’m seeing people use both and would like to know when I’d use which.

---

## [Blueprint Editor Plugin - How to spawn inside the viewport?](https://forums.unrealengine.com/t/blueprint-editor-plugin-how-to-spawn-inside-the-viewport/2032644)

<div class="topic-metadata">

**Author:** [@HarpoMa](https://forums.unrealengine.com/u/HarpoMa)\
**Replies:** 0\
**Last updated:** [September 22, 2024, 1:39pm UTC](https://forums.unrealengine.com/t/blueprint-editor-plugin-how-to-spawn-inside-the-viewport/2032644 "2024-09-22T13:39:25Z")

</div>

I am creating a Editor plugin to assist with creating blueprints. Specifically the plugin is to assist in the viewport. Upon a keystroke I want the currently selected component to be duplicated and then have the duplic…

---

## [Where's the PCG manual?](https://forums.unrealengine.com/t/wheres-the-pcg-manual/2032401)

<div class="topic-metadata">

**Author:** [@Psijic\_Void](https://forums.unrealengine.com/u/Psijic_Void)\
**Replies:** 0\
**Last updated:** [September 22, 2024, 9:42am UTC](https://forums.unrealengine.com/t/wheres-the-pcg-manual/2032401 "2024-09-22T09:42:09Z")

</div>

I can’t find any documentation on PCG C++ creating nodes. Most of the folks said, they use engine code comments to reverse engineering. I only found this auto-generated doc, not from UE site, but Google.

---

## [UE5 creates a new PCG node with the same name after recompiling](https://forums.unrealengine.com/t/ue5-creates-a-new-pcg-node-with-the-same-name-after-recompiling/2032396)

<div class="topic-metadata">

**Author:** [@Psijic\_Void](https://forums.unrealengine.com/u/Psijic_Void)\
**Replies:** 0\
**Last updated:** [September 22, 2024, 9:35am UTC](https://forums.unrealengine.com/t/ue5-creates-a-new-pcg-node-with-the-same-name-after-recompiling/2032396 "2024-09-22T09:35:52Z")

</div>

When I recompile my PCG C++ node, it creates a new one with the same name in PCG nodes. I use Build and Reload in Rider (live code). But everything is fine with other custom node I downloaded as a sample. I found, it lo…

---

## [Add a custom header file throws many errors](https://forums.unrealengine.com/t/add-a-custom-header-file-throws-many-errors/2032248)

<div class="topic-metadata">

**Author:** [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Replies:** 1\
**Last updated:** [September 22, 2024, 6:45am UTC](https://forums.unrealengine.com/t/add-a-custom-header-file-throws-many-errors/2032248 "2024-09-22T06:45:15Z")

</div>

Hi! I’m using Unreal Engine 5.3.2 with Visual Studio 2022. I have added a custom header file only adding a empty text file with .h extension and I get these errors: \[1/5\] Compile \[x64\] CatalogueStructs.gen.cpp C:\\My…

---

## [Creating Drag and Drop UI using C++](https://forums.unrealengine.com/t/creating-drag-and-drop-ui-using-c/269049)

<div class="topic-metadata">

**Author:** [@DavidCR](https://forums.unrealengine.com/u/DavidCR)\
**Replies:** 6\
**Last updated:** [September 22, 2024, 2:42am UTC](https://forums.unrealengine.com/t/creating-drag-and-drop-ui-using-c/269049 "2024-09-22T02:42:02Z")

</div>

Hello Unreal Devs, I’m sharing here a small tutorial about how to make a Drag And Drop feature in C++. I miss some information when I was doing it so I’m sharing my achievements now I hope you like it. Creating Dra…

---

## [Chaos Axis Constraints](https://forums.unrealengine.com/t/chaos-axis-constraints/2032073)

<div class="topic-metadata">

**Author:** [@Chaotic\_Ray](https://forums.unrealengine.com/u/Chaotic_Ray)\
**Replies:** 0\
**Last updated:** [September 22, 2024, 2:12am UTC](https://forums.unrealengine.com/t/chaos-axis-constraints/2032073 "2024-09-22T02:12:23Z")

</div>

Hi, Can anyone tell me, how to access the variables shown in the screenshot using Chaos?

---

## [Help understanding the instructions of the C++ Third Person Template Networking Quick Start Guide](https://forums.unrealengine.com/t/help-understanding-the-instructions-of-the-c-third-person-template-networking-quick-start-guide/2030922)

<div class="topic-metadata">

**Author:** [@Supernova142](https://forums.unrealengine.com/u/Supernova142)\
**Replies:** 2\
**Last updated:** [September 22, 2024, 12:24am UTC](https://forums.unrealengine.com/t/help-understanding-the-instructions-of-the-c-third-person-template-networking-quick-start-guide/2030922 "2024-09-22T00:24:39Z")

</div>

So in this guide: it appears that all of the C++ code that is being written is effecting the default pawn, the one that is complete with movement and animations. However, when i load up a fresh C++ third person templa…

---

## [What's the point of passing movement input through movement component?](https://forums.unrealengine.com/t/whats-the-point-of-passing-movement-input-through-movement-component/2031813)

<div class="topic-metadata">

**Author:** [@wojwen](https://forums.unrealengine.com/u/wojwen)\
**Replies:** 0\
**Last updated:** [September 21, 2024, 9:33pm UTC](https://forums.unrealengine.com/t/whats-the-point-of-passing-movement-input-through-movement-component/2031813 "2024-09-21T21:33:16Z")

</div>

I’ve been implementing my own movement component in unreal engine and to do that I started analyzing how UPawnMovementComponent works. There is one part I find a bit confusing - how movement input is handled. In the APa…

---

## [VS C++ compiler issue during Packaging](https://forums.unrealengine.com/t/vs-c-compiler-issue-during-packaging/2031468)

<div class="topic-metadata">

**Author:** [@Pen\_will\_kill](https://forums.unrealengine.com/u/Pen_will_kill)\
**Replies:** 2\
**Last updated:** [September 21, 2024, 7:13pm UTC](https://forums.unrealengine.com/t/vs-c-compiler-issue-during-packaging/2031468 "2024-09-21T19:13:47Z")

</div>

This same issue just persists, please need some help, I am not into coding a designer trying to package my interactive visualization. Whenever I start the packaging, C++ compiler version for VS would be more advanced tha…

---

## [Problem with GAS in 5.4.4 with Attribute Set](https://forums.unrealengine.com/t/problem-with-gas-in-5-4-4-with-attribute-set/2031626)

<div class="topic-metadata">

**Author:** [@Datsumo](https://forums.unrealengine.com/u/Datsumo)\
**Replies:** 0\
**Last updated:** [September 21, 2024, 7:10pm UTC](https://forums.unrealengine.com/t/problem-with-gas-in-5-4-4-with-attribute-set/2031626 "2024-09-21T19:10:01Z")

</div>

I do not know why, but after the update 5.4.4, my projects that used GAS and attribute set in c++, does not work and compile anymore here is my screenshot:

---

## [Issue with UObject memory access violation](https://forums.unrealengine.com/t/issue-with-uobject-memory-access-violation/2031215)

<div class="topic-metadata">

**Author:** [@SupTwo](https://forums.unrealengine.com/u/SupTwo)\
**Replies:** 3\
**Last updated:** [September 21, 2024, 3:46pm UTC](https://forums.unrealengine.com/t/issue-with-uobject-memory-access-violation/2031215 "2024-09-21T15:46:28Z")

</div>

Hey guys, I’m running into an issue and was hoping to get some help from more experienced programmers. I’m attempting to instantiate a UObject I have created for a player that contains data for their hand, field and deck…

---

## [Build errors upgrading from 5.3.1 to 5.4.3](https://forums.unrealengine.com/t/build-errors-upgrading-from-5-3-1-to-5-4-3/1946935)

<div class="topic-metadata">

**Author:** [@KillerSneak](https://forums.unrealengine.com/u/KillerSneak)\
**Replies:** 5\
**Last updated:** [September 20, 2024, 9:33pm UTC](https://forums.unrealengine.com/t/build-errors-upgrading-from-5-3-1-to-5-4-3/1946935 "2024-09-20T21:33:05Z")

</div>

I couldn’t really find a topic covering this or providing an solution. I just decided to upgrade from 5.3.1 to 5.4.3 (latest release branch at this moment) and got the following build errors: Severity Code Description P…

---

## [Unresolved external symbol when casting online subsystem interface to implemented IOnlineFriends](https://forums.unrealengine.com/t/unresolved-external-symbol-when-casting-online-subsystem-interface-to-implemented-ionlinefriends/2018554)

<div class="topic-metadata">

**Author:** [@elzzznevermore](https://forums.unrealengine.com/u/elzzznevermore)\
**Replies:** 2\
**Last updated:** [September 21, 2024, 9:59am UTC](https://forums.unrealengine.com/t/unresolved-external-symbol-when-casting-online-subsystem-interface-to-implemented-ionlinefriends/2018554 "2024-09-21T09:59:38Z")

</div>

Hi! I have a problem with my online subsystem implementation. First of all, yes, my online system module is in DependencyModuleNames. PublicDependencyModuleNames.AddRange( new string\[\] { "Core", "OnlineSubsystem"…

---

## [Motion Matching Trajectory from Non-root Bone](https://forums.unrealengine.com/t/motion-matching-trajectory-from-non-root-bone/2029782)

<div class="topic-metadata">

**Author:** [@ashbygeek](https://forums.unrealengine.com/u/ashbygeek)\
**Replies:** 1\
**Last updated:** [September 21, 2024, 3:17am UTC](https://forums.unrealengine.com/t/motion-matching-trajectory-from-non-root-bone/2029782 "2024-09-21T03:17:35Z")

</div>

I was considering the implications of the Motion Matching system with my brother (who has spent some years in industry as an animation rigger) and we decided we wanted to investigate some out-of-the-box thinking with reg…

---

## [Getting bug when creating a session (with use lobbies if available) has been received](https://forums.unrealengine.com/t/getting-bug-when-creating-a-session-with-use-lobbies-if-available-has-been-received/1936054)

<div class="topic-metadata">

**Author:** [@karboncloud](https://forums.unrealengine.com/u/karboncloud)\
**Replies:** 1\
**Last updated:** [September 20, 2024, 8:18pm UTC](https://forums.unrealengine.com/t/getting-bug-when-creating-a-session-with-use-lobbies-if-available-has-been-received/1936054 "2024-09-20T20:18:45Z")

</div>

LogEOSSDK: Error: LogEOSLobby: Invalid parameter EOS\_Lobby\_CopyLobbyDetailsHandleOptions.LocalUserId reason: is not a valid Product User ID, Result: EOS\_InvalidUser I keep getting the above error if i create a session a…

---

## [Cant install epic launcher not install](https://forums.unrealengine.com/t/cant-install-epic-launcher-not-install/2030265)

<div class="topic-metadata">

**Author:** [@Realm\_Games](https://forums.unrealengine.com/u/Realm_Games)\
**Replies:** 0\
**Last updated:** [September 20, 2024, 7:33pm UTC](https://forums.unrealengine.com/t/cant-install-epic-launcher-not-install/2030265 "2024-09-20T19:33:40Z")

</div>

Cant install epic launcher. I get a really weird error when opening it. Heres pictures.

---

## [How do i use a TextureRenderTarget2DArray ?](https://forums.unrealengine.com/t/how-do-i-use-a-texturerendertarget2darray/684037)

<div class="topic-metadata">

**Author:** [@John\_Har](https://forums.unrealengine.com/u/John_Har)\
**Replies:** 3\
**Last updated:** [September 20, 2024, 5:32pm UTC](https://forums.unrealengine.com/t/how-do-i-use-a-texturerendertarget2darray/684037 "2024-09-20T17:32:35Z")

</div>

Hi ! So I have been looking for a way to use UTextureRenderTarget2DArray, to be able to have a larger scale TextureRenderRarget for my terrain. Ive been searching for any examples, or source code to see how, but found …

---

## [How to access ILiveLinkSource-\>GetSourceStatus() via BFL](https://forums.unrealengine.com/t/how-to-access-ilivelinksource-getsourcestatus-via-bfl/2029952)

<div class="topic-metadata">

**Author:** [@dk\_final](https://forums.unrealengine.com/u/dk_final)\
**Replies:** 0\
**Last updated:** [September 20, 2024, 3:46pm UTC](https://forums.unrealengine.com/t/how-to-access-ilivelinksource-getsourcestatus-via-bfl/2029952 "2024-09-20T15:46:45Z")

</div>

I’m creating a plugin which main purpose is to access this “GetSourceStatus()” function of an existing object via blueprints. In common, is there any way to create a connection between native c++ class object and manage…

---

## [How to add force in async physics tick?](https://forums.unrealengine.com/t/how-to-add-force-in-async-physics-tick/1935018)

<div class="topic-metadata">

**Author:** [@Waredun](https://forums.unrealengine.com/u/Waredun)\
**Replies:** 1\
**Last updated:** [September 20, 2024, 2:46pm UTC](https://forums.unrealengine.com/t/how-to-add-force-in-async-physics-tick/1935018 "2024-09-20T14:46:08Z")

</div>

I tried to add force in async physics tick And after start it throws an error in c++ breakpoint LogOutputDevice: Error: Ensure condition failed: IsInGameThreadContext()

---

## [How to set a static mesh to a run-time spawned actor outside of BeginPlay()](https://forums.unrealengine.com/t/how-to-set-a-static-mesh-to-a-run-time-spawned-actor-outside-of-beginplay/2029688)

<div class="topic-metadata">

**Author:** [@Vinkunja](https://forums.unrealengine.com/u/Vinkunja)\
**Replies:** 1\
**Last updated:** [September 20, 2024, 1:31pm UTC](https://forums.unrealengine.com/t/how-to-set-a-static-mesh-to-a-run-time-spawned-actor-outside-of-beginplay/2029688 "2024-09-20T13:31:14Z")

</div>

I want to set a mesh to an actor that is spawned at a custom time and place in UE5.3. I tried using the SetStaticMesh() method. Everything works fine in the BeginPlay() method. However, when I move the SetStaticMesh met…

---

## [Getting over 200 errors after doing literally nothing...](https://forums.unrealengine.com/t/getting-over-200-errors-after-doing-literally-nothing/2025487)

<div class="topic-metadata">

**Author:** [@JansenSensei](https://forums.unrealengine.com/u/JansenSensei)\
**Replies:** 1\
**Last updated:** [September 20, 2024, 9:03am UTC](https://forums.unrealengine.com/t/getting-over-200-errors-after-doing-literally-nothing/2025487 "2024-09-20T09:03:49Z")

</div>

So I have been working on a plugin for a few weeks and all was well… then one day (I can’t remember if I updated VS or Unreal… I think both) I started getting errors. A lot of errors… relating to NuGet packages (???) I …

---

## [Custom Inherited Asset Type in Unreal Engine Editor Replaces Actual Asset Type](https://forums.unrealengine.com/t/custom-inherited-asset-type-in-unreal-engine-editor-replaces-actual-asset-type/2029111)

<div class="topic-metadata">

**Author:** [@HAYTHAM\_KENWAY](https://forums.unrealengine.com/u/HAYTHAM_KENWAY)\
**Replies:** 1\
**Last updated:** [September 20, 2024, 5:34am UTC](https://forums.unrealengine.com/t/custom-inherited-asset-type-in-unreal-engine-editor-replaces-actual-asset-type/2029111 "2024-09-20T05:34:29Z")

</div>

The problem: I am trying to make a custom curve asset type in Unreal Engine and add it to the menu so that users can create the curve asset. My asset is called RecoilPattern, which inherits from UCurveFloat. The asset d…

---

## [Get access to current weapon](https://forums.unrealengine.com/t/get-access-to-current-weapon/1371106)

<div class="topic-metadata">

**Author:** [@muskatin](https://forums.unrealengine.com/u/muskatin)\
**Replies:** 3\
**Last updated:** [August 9, 2024, 8:33am UTC](https://forums.unrealengine.com/t/get-access-to-current-weapon/1371106 "2024-08-09T08:33:55Z")

</div>

Hello everyone, help me implement tracing from the muzzle in file LyraGameplayAbility\_RangedWeapon.cpp... FTransform ULyraGameplayAbility\_RangedWeapon::GetTargetingTransform(APawn\* SourcePawn, ELyraAbilityTargetingSourc…

---

## [Add Impulse work with key event and with c++ not](https://forums.unrealengine.com/t/add-impulse-work-with-key-event-and-with-c-not/2023446)

<div class="topic-metadata">

**Author:** [@kingsendman](https://forums.unrealengine.com/u/kingsendman)\
**Replies:** 17\
**Last updated:** [September 19, 2024, 10:55pm UTC](https://forums.unrealengine.com/t/add-impulse-work-with-key-event-and-with-c-not/2023446 "2024-09-19T22:55:21Z")

</div>

I call in c++ a blueprint Blueprint Implementable Event on the character from the character movement component for testing because it didn’t work… and for testing also a key evnet from character blueprint… (see screensho…

---

## [How To Connect BlueprintEnumValue between Cpp](https://forums.unrealengine.com/t/how-to-connect-blueprintenumvalue-between-cpp/1727260)

<div class="topic-metadata">

**Author:** [@bubaihuolong](https://forums.unrealengine.com/u/bubaihuolong)\
**Replies:** 2\
**Last updated:** [September 19, 2024, 10:42pm UTC](https://forums.unrealengine.com/t/how-to-connect-blueprintenumvalue-between-cpp/1727260 "2024-09-19T22:42:04Z")

</div>

I had created a Blueprint Enum, but i want to use this value create a variable in my C++. Is anyone knows how to create?

---

## [search engines results not helping (like this)](https://forums.unrealengine.com/t/search-engines-results-not-helping-like-this/2027963)

<div class="topic-metadata">

**Author:** [@tolgaprg](https://forums.unrealengine.com/u/tolgaprg)\
**Replies:** 1\
**Last updated:** [September 19, 2024, 5:25pm UTC](https://forums.unrealengine.com/t/search-engines-results-not-helping-like-this/2027963 "2024-09-19T17:25:50Z")

</div>

Hi everyone! I’m developing replay system for my multiplayer game. I’ve used wiki tutorial as a basis A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums . Made some changes to ma…

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

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