# C++

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

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

**Page:** 50

---

## [Correct usage of AActor::RootComponent in extended classes.](https://forums.unrealengine.com/t/correct-usage-of-aactor-rootcomponent-in-extended-classes/2360127)

<div class="topic-metadata">

**Author:** [@vmenezes599](https://forums.unrealengine.com/u/vmenezes599)\
**Replies:** 5\
**Last updated:** [February 27, 2025, 9:05pm UTC](https://forums.unrealengine.com/t/correct-usage-of-aactor-rootcomponent-in-extended-classes/2360127 "2025-02-27T21:05:41Z")

</div>

Hi, I am using Unreal Engine 5.5.3. Question: If you create a AActor object in your scene and select it, it displays the hierarchy. In the hierarchy, select ‘DefaultSceneRoot’. There you can edit the ‘Transform’ menu …

---

## [Multiple game module files being created for some reason and causing errors, not sure if this is normal](https://forums.unrealengine.com/t/multiple-game-module-files-being-created-for-some-reason-and-causing-errors-not-sure-if-this-is-normal/2362933)

<div class="topic-metadata">

**Author:** [@jstaff62](https://forums.unrealengine.com/u/jstaff62)\
**Replies:** 4\
**Last updated:** [February 27, 2025, 8:28pm UTC](https://forums.unrealengine.com/t/multiple-game-module-files-being-created-for-some-reason-and-causing-errors-not-sure-if-this-is-normal/2362933 "2025-02-27T20:28:22Z")

</div>

Can someone please help me understand what’s going on here, if it’s normal, and if not, how to fix it? I haven’t done anything out of the ordinary or changed any of these files or the funtion that’s giving me this error…

---

## [FStreamableManager Question](https://forums.unrealengine.com/t/fstreamablemanager-question/2360640)

<div class="topic-metadata">

**Author:** [@blAddddDe](https://forums.unrealengine.com/u/blAddddDe)\
**Replies:** 7\
**Last updated:** [February 27, 2025, 7:49pm UTC](https://forums.unrealengine.com/t/fstreamablemanager-question/2360640 "2025-02-27T19:49:39Z")

</div>

I have PrimaryDataAsset: class ODWIRKSRPG\_API UItemDataAsset : public UPrimaryDataAsset { GENERATED\_BODY() public: UPROPERTY(EditAnywhere, BlueprintReadOnly, Category = "UI", meta=(AssetBundles="UI")) TSoftOb…

---

## [A Formal Letter from Your Unreal Build System](https://forums.unrealengine.com/t/a-formal-letter-from-your-unreal-build-system/2363267)

<div class="topic-metadata">

**Author:** [@GodsGlitch](https://forums.unrealengine.com/u/GodsGlitch)\
**Replies:** 0\
**Last updated:** [February 27, 2025, 7:47pm UTC](https://forums.unrealengine.com/t/a-formal-letter-from-your-unreal-build-system/2363267 "2025-02-27T19:47:31Z")

</div>

Dear Developer, I am writing to inform you that I am currently processing your request to compile one (1) line of code. I have consulted with every header file since 1970, checked in with both C++ standards committees, …

---

## [Dynamic Material Set Scalar Value not working I am missing something?](https://forums.unrealengine.com/t/dynamic-material-set-scalar-value-not-working-i-am-missing-something/2363183)

<div class="topic-metadata">

**Author:** [@miguline](https://forums.unrealengine.com/u/miguline)\
**Replies:** 0\
**Last updated:** [February 27, 2025, 6:44pm UTC](https://forums.unrealengine.com/t/dynamic-material-set-scalar-value-not-working-i-am-missing-something/2363183 "2025-02-27T18:44:17Z")

</div>

So I am using this code for applying set Scalar Value, The value is working right but is not applying This is on the begin play: BarrelMaterial = GetMesh()-\>GetMaterials()\[0\]; BarrelMaterialInstance = UMaterialInstanc…

---

## [C++おいて、ヘッダーファイルに generated.h をincludeできない](https://forums.unrealengine.com/t/c-generated-h-include/2354651)

<div class="topic-metadata">

**Author:** [@vorei](https://forums.unrealengine.com/u/vorei)\
**Replies:** 9\
**Last updated:** [February 27, 2025, 1:37pm UTC](https://forums.unrealengine.com/t/c-generated-h-include/2354651 "2025-02-27T13:37:39Z")

</div>

こちらのページの内容を学習しているのですが、ヘッダーファイルにgenerated.hをincludeすることができません。 調べてみても同じ事例を見つけられず、どなたか原因と解決策をご存知ないでしょうか。 使用しているバージョンは5.2.1になります。 // Fill out your copyright notice in the Description page of Project Settings. #pragma …

---

## [Thread Deadlock Suspected in UMediaPlayer WMF Function Calls](https://forums.unrealengine.com/t/thread-deadlock-suspected-in-umediaplayer-wmf-function-calls/1641662)

<div class="topic-metadata">

**Author:** [@JGYuan2021](https://forums.unrealengine.com/u/JGYuan2021)\
**Replies:** 1\
**Last updated:** [February 27, 2025, 4:48am UTC](https://forums.unrealengine.com/t/thread-deadlock-suspected-in-umediaplayer-wmf-function-calls/1641662 "2025-02-27T04:48:46Z")

</div>

Hi everyone, I’ve been encountering an issue with UE4 where I suspect there’s a thread deadlock occurring during some WMF (Windows Media Foundation) function calls related to the UMediaPlayer class. This issue has been …

---

## [uPrimitiveComponent-\>LineTraceComponent in Async Physics Tick](https://forums.unrealengine.com/t/uprimitivecomponent-linetracecomponent-in-async-physics-tick/2349680)

<div class="topic-metadata">

**Author:** [@HellFireHE](https://forums.unrealengine.com/u/HellFireHE)\
**Replies:** 2\
**Last updated:** [February 27, 2025, 1:08am UTC](https://forums.unrealengine.com/t/uprimitivecomponent-linetracecomponent-in-async-physics-tick/2349680 "2025-02-27T01:08:32Z")

</div>

LineTraceComponent used in Async Physics Tick handler complains about: Ensure condition failed: IsInGameThreadContext() \[File:D:\\build\\++UE5\\Sync\\Engine\\Source\\Runtime\\Experimental\\Chaos\\Public\\Framework\\Threading.h\] \[…

---

## [fbxaxissystem.h(16): \[C1083\] Cannot open include file: 'fbxsdk/fbxsdk\_def.h': No such file or directory You ever run into this error in unreal C++??](https://forums.unrealengine.com/t/fbxaxissystem-h-16-c1083-cannot-open-include-file-fbxsdk-fbxsdk-def-h-no-such-file-or-directory-you-ever-run-into-this-error-in-unreal-c/2361124)

<div class="topic-metadata">

**Author:** [@Yobuko](https://forums.unrealengine.com/u/Yobuko)\
**Replies:** 0\
**Last updated:** [February 26, 2025, 10:41pm UTC](https://forums.unrealengine.com/t/fbxaxissystem-h-16-c1083-cannot-open-include-file-fbxsdk-fbxsdk-def-h-no-such-file-or-directory-you-ever-run-into-this-error-in-unreal-c/2361124 "2025-02-26T22:41:25Z")

</div>

The file exists, the path is correct, Re verified Unreal, Deleted cache etc and regenerated files. I didnt even touch this file but its randomly having an issue finding it, anybody ran into this issue? Also if it helps …

---

## [How can I make my character aim at first person?](https://forums.unrealengine.com/t/how-can-i-make-my-character-aim-at-first-person/2357370)

<div class="topic-metadata">

**Author:** [@Aga45678](https://forums.unrealengine.com/u/Aga45678)\
**Replies:** 7\
**Last updated:** [February 26, 2025, 7:01pm UTC](https://forums.unrealengine.com/t/how-can-i-make-my-character-aim-at-first-person/2357370 "2025-02-26T19:01:15Z")

</div>

Currently I am working on a project similar to Ghostrunner and karlson. But I am not sure how do i make my character aim. I heard I need to use aim offset but all aim offset videos are third person. How do i do thi…

---

## [Controlling a light in unreal alongside a physical light through ArtNet ](https://forums.unrealengine.com/t/controlling-a-light-in-unreal-alongside-a-physical-light-through-artnet/2360188)

<div class="topic-metadata">

**Author:** [@xd\_shxnkz](https://forums.unrealengine.com/u/xd_shxnkz)\
**Replies:** 0\
**Last updated:** [February 26, 2025, 3:56pm UTC](https://forums.unrealengine.com/t/controlling-a-light-in-unreal-alongside-a-physical-light-through-artnet/2360188 "2025-02-26T15:56:59Z")

</div>

I’m currently struggling to learn how to make a light in unreal be piloted using the DMX plugins so that both the physical light and the light in unreal will match together. The light is being controlled through DMX via …

---

## [!UberGraphFramePointerProperty == !UberGraphFunction](https://forums.unrealengine.com/t/ubergraphframepointerproperty-ubergraphfunction/2359471)

<div class="topic-metadata">

**Author:** [@loneN0mad](https://forums.unrealengine.com/u/loneN0mad)\
**Replies:** 1\
**Last updated:** [February 26, 2025, 3:51pm UTC](https://forums.unrealengine.com/t/ubergraphframepointerproperty-ubergraphfunction/2359471 "2025-02-26T15:51:05Z")

</div>

My project hits breakpoint: \[\[2025.02.26-06.43.54:133\]\[ 0\]\]LogOutputDevice: Error: Ensure condition failed: !UberGraphFramePointerProperty == !UberGraphFunction \[File:D:\\build++UE5\\Sync\\Engine\\Source\\Runtime\\Engine\\Pri…

---

## [Problem building project on MacOS](https://forums.unrealengine.com/t/problem-building-project-on-macos/2348822)

<div class="topic-metadata">

**Author:** [@horribile](https://forums.unrealengine.com/u/horribile)\
**Replies:** 1\
**Last updated:** [February 26, 2025, 3:45pm UTC](https://forums.unrealengine.com/t/problem-building-project-on-macos/2348822 "2025-02-26T15:45:05Z")

</div>

I generated project with GenerateProjectFiles.sh util from uproject file. But during build I have this error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c+…

---

## [How can I cook assets for only certain platforms?](https://forums.unrealengine.com/t/how-can-i-cook-assets-for-only-certain-platforms/2346361)

<div class="topic-metadata">

**Author:** [@RealAero](https://forums.unrealengine.com/u/RealAero)\
**Replies:** 5\
**Last updated:** [February 26, 2025, 1:51pm UTC](https://forums.unrealengine.com/t/how-can-i-cook-assets-for-only-certain-platforms/2346361 "2025-02-26T13:51:59Z")

</div>

How can I cook certain assets for only certain platforms? I am making a cross-platform game with VR support and use the MetaXR plugin. I also support platforms that don’t allow MetaXR or are not supported, like Linux, i…

---

## [Nested TArrays in structs and memory](https://forums.unrealengine.com/t/nested-tarrays-in-structs-and-memory/2357416)

<div class="topic-metadata">

**Author:** [@Hawksed](https://forums.unrealengine.com/u/Hawksed)\
**Replies:** 4\
**Last updated:** [February 26, 2025, 1:31pm UTC](https://forums.unrealengine.com/t/nested-tarrays-in-structs-and-memory/2357416 "2025-02-26T13:31:02Z")

</div>

I have a question regarding memory usage of nested TArrays in structs, or just how memory works in general. The problem i have is that a TArray of a struct that contains a TArray seems to be using much more memory than …

---

## [Making RootComponent Editable & Attaching SceneComponents Correctly](https://forums.unrealengine.com/t/making-rootcomponent-editable-attaching-scenecomponents-correctly/2346786)

<div class="topic-metadata">

**Author:** [@vmenezes599](https://forums.unrealengine.com/u/vmenezes599)\
**Replies:** 6\
**Last updated:** [February 26, 2025, 7:12am UTC](https://forums.unrealengine.com/t/making-rootcomponent-editable-attaching-scenecomponents-correctly/2346786 "2025-02-26T07:12:48Z")

</div>

Hello everyone, I am new to unreal development but not to c++ and I will probably come some now and then and post some questions so I will already thank you all in advance for your patience. I also want to say that I alw…

---

## [SweepMultiByChannel doesn't return enough results](https://forums.unrealengine.com/t/sweepmultibychannel-doesnt-return-enough-results/468387)

<div class="topic-metadata">

**Author:** [@Arkiras](https://forums.unrealengine.com/u/Arkiras)\
**Replies:** 5\
**Last updated:** [February 26, 2025, 6:05am UTC](https://forums.unrealengine.com/t/sweepmultibychannel-doesnt-return-enough-results/468387 "2025-02-26T06:05:40Z")

</div>

I’m trying to use SweepMultiByChannel to sweep a sphere through the world (like Sphere Trace in Blueprint) from the player to a distance in front of them, to get an array of every actor hit by the sphere. The problem I’…

---

## [Override Actor Component functions in Owning Actor?](https://forums.unrealengine.com/t/override-actor-component-functions-in-owning-actor/117121)

<div class="topic-metadata">

**Author:** [@Jambax](https://forums.unrealengine.com/u/Jambax)\
**Replies:** 12\
**Last updated:** [February 26, 2025, 1:09am UTC](https://forums.unrealengine.com/t/override-actor-component-functions-in-owning-actor/117121 "2025-02-26T01:09:47Z")

</div>

I’m building a series of actor components that are designed to act like ‘Modules’ which are supposed to interact with and control each other - but in a scriptable fashion. An Actor class implements a bunch of these modul…

---

## [Visual Studio building and compiling UE Editor Source Code error.](https://forums.unrealengine.com/t/visual-studio-building-and-compiling-ue-editor-source-code-error/2358852)

<div class="topic-metadata">

**Author:** [@realJacobH](https://forums.unrealengine.com/u/realJacobH)\
**Replies:** 1\
**Last updated:** [February 26, 2025, 1:01am UTC](https://forums.unrealengine.com/t/visual-studio-building-and-compiling-ue-editor-source-code-error/2358852 "2025-02-26T01:01:01Z")

</div>

So, as we all know and there is similar posts. I have problems trying to build and compile the UE Editor source code. “\\Build\\BatchFiles\\Build.bat - Target=“UnrealEditor Win64 Development” -Target=“ShaderCompileWorker Wi…

---

## [Weird thing happend after I try to override my BlueprintNativeEvent function.](https://forums.unrealengine.com/t/weird-thing-happend-after-i-try-to-override-my-blueprintnativeevent-function/2355087)

<div class="topic-metadata">

**Author:** [@FFCMY](https://forums.unrealengine.com/u/FFCMY)\
**Replies:** 8\
**Last updated:** [February 25, 2025, 10:04pm UTC](https://forums.unrealengine.com/t/weird-thing-happend-after-i-try-to-override-my-blueprintnativeevent-function/2355087 "2025-02-25T22:04:52Z")

</div>

I have a function called BPN\_CanStateChange and it declared in my C++ file, like the picture below: I use BlueprintNativeEvent because I need it implemented in my CPP file and it can also be overridden in my derived …

---

## [How to input params in MotionMatch in C++ (Pose Search Plugin)?](https://forums.unrealengine.com/t/how-to-input-params-in-motionmatch-in-c-pose-search-plugin/2332227)

<div class="topic-metadata">

**Author:** [@InvQuasar](https://forums.unrealengine.com/u/InvQuasar)\
**Replies:** 5\
**Last updated:** [February 25, 2025, 8:21pm UTC](https://forums.unrealengine.com/t/how-to-input-params-in-motionmatch-in-c-pose-search-plugin/2332227 "2025-02-25T20:21:20Z")

</div>

Hi all! I want to call MotionMatch node of the Pose Search Plugin (screen 1) from the code, but the code requires the ContinuingProperties and Future parameters as mandatory (screen 2, I’ll attach as a separate message)…

---

## [Error "can't open InputActionValue.h"](https://forums.unrealengine.com/t/error-cant-open-inputactionvalue-h/1151908)

<div class="topic-metadata">

**Author:** [@SeldinG](https://forums.unrealengine.com/u/SeldinG)\
**Replies:** 9\
**Last updated:** [February 25, 2025, 4:24pm UTC](https://forums.unrealengine.com/t/error-cant-open-inputactionvalue-h/1151908 "2025-02-25T16:24:00Z")

</div>

Hey there, I’m working on an Empty Project in UE5 and when I try to add the enhanced input system I get error: “can’t open InputActionValue.h” and I have already added the “EnhancedInput” string to the Build.cs file. W…

---

## [Get Current Sequencer C++](https://forums.unrealengine.com/t/get-current-sequencer-c/1232636)

<div class="topic-metadata">

**Author:** [@Brumenn](https://forums.unrealengine.com/u/Brumenn)\
**Replies:** 1\
**Last updated:** [February 25, 2025, 3:51pm UTC](https://forums.unrealengine.com/t/get-current-sequencer-c/1232636 "2025-02-25T15:51:48Z")

</div>

Okay so, when we want to work with ULevelSequence, the way to get the current sequencer is as follow, okay easy : TSharedPtr\<ISequencer\> GetSequencer(ULevelSequence\* LevelSequence) { //if getting sequencer from level s…

---

## [LandscapeImportHelper.cpp bug? ](https://forums.unrealengine.com/t/landscapeimporthelper-cpp-bug/2357579)

<div class="topic-metadata">

**Author:** [@karl\_sur](https://forums.unrealengine.com/u/karl_sur)\
**Replies:** 0\
**Last updated:** [February 25, 2025, 3:39pm UTC](https://forums.unrealengine.com/t/landscapeimporthelper-cpp-bug/2357579 "2025-02-25T15:39:26Z")

</div>

Hello, Is there a mistake in this code where “InOutSectionsPerComponent” is assigned different values in separate conditions? Shouldn’t the value in the second if statement be assigned to “InOutQuadsPerSection” instead …

---

## [Add the Play Games Services SDK to your APK to use the APIs](https://forums.unrealengine.com/t/add-the-play-games-services-sdk-to-your-apk-to-use-the-apis/2355563)

<div class="topic-metadata">

**Author:** [@Skyboy](https://forums.unrealengine.com/u/Skyboy)\
**Replies:** 1\
**Last updated:** [February 25, 2025, 1:08pm UTC](https://forums.unrealengine.com/t/add-the-play-games-services-sdk-to-your-apk-to-use-the-apis/2355563 "2025-02-25T13:08:27Z")

</div>

Hey, Im just trying to get banner ads into my game with the option of turning them off for a small fee. 6 hours later trying to sort out play games services. Im at this stage Configure your app In your project-level…

---

## [How to add spline points with coordinates through C++ code?](https://forums.unrealengine.com/t/how-to-add-spline-points-with-coordinates-through-c-code/576907)

<div class="topic-metadata">

**Author:** [@ilmari\_pallas](https://forums.unrealengine.com/u/ilmari_pallas)\
**Replies:** 5\
**Last updated:** [February 25, 2025, 11:23am UTC](https://forums.unrealengine.com/t/how-to-add-spline-points-with-coordinates-through-c-code/576907 "2025-02-25T11:23:50Z")

</div>

Hi beautiful people of internet and UE! I’ve got a question related to splines in UE4. I would like to add spline points using coordinates through C++ code, but I’ve found nothing about it on the internet. Any answer i…

---

## [static inline delegates](https://forums.unrealengine.com/t/static-inline-delegates/2354831)

<div class="topic-metadata">

**Author:** [@Salcalitarhana](https://forums.unrealengine.com/u/Salcalitarhana)\
**Replies:** 3\
**Last updated:** [February 25, 2025, 9:39am UTC](https://forums.unrealengine.com/t/static-inline-delegates/2354831 "2025-02-25T09:39:05Z")

</div>

I’ve set up a system using static delegates to automatically register an ASpline actor to a list in a subsystem (a spline manager). DECLARE\_MULTICAST\_DELEGATE\_OneParam(FOnSplineInitialized, ASpline\*); UCLASS(Blueprinta…

---

## [How property binding is working?](https://forums.unrealengine.com/t/how-property-binding-is-working/116722)

<div class="topic-metadata">

**Author:** [@artemavrin](https://forums.unrealengine.com/u/artemavrin)\
**Replies:** 5\
**Last updated:** [February 25, 2025, 2:48am UTC](https://forums.unrealengine.com/t/how-property-binding-is-working/116722 "2025-02-25T02:48:18Z")

</div>

I mean how can I create my own property binding system in my custom blueprint? I want to bind a property value to function, in that function I can use other properties of blueprint. So when some property chanched all dep…

---

## [Is \`TStrongObjectPtr\` safe to copy? ](https://forums.unrealengine.com/t/is-tstrongobjectptr-safe-to-copy/2355114)

<div class="topic-metadata">

**Author:** [@msim-ak](https://forums.unrealengine.com/u/msim-ak)\
**Replies:** 1\
**Last updated:** [February 25, 2025, 2:07am UTC](https://forums.unrealengine.com/t/is-tstrongobjectptr-safe-to-copy/2355114 "2025-02-25T02:07:05Z")

</div>

I had always assumed that TStrongObjectPtr worked similarly to TSharedPtr in that it keeps an internal reference count. But it appears that it works more like TUniquePtr in that it takes exclusive ownership over the UObj…

---

## [Cannot Call an Enum from Another Script, Reads as Int Despite Correct Classifcation as Unt8](https://forums.unrealengine.com/t/cannot-call-an-enum-from-another-script-reads-as-int-despite-correct-classifcation-as-unt8/2355904)

<div class="topic-metadata">

**Author:** [@ProfPhoenix698](https://forums.unrealengine.com/u/ProfPhoenix698)\
**Replies:** 1\
**Last updated:** [February 24, 2025, 11:24pm UTC](https://forums.unrealengine.com/t/cannot-call-an-enum-from-another-script-reads-as-int-despite-correct-classifcation-as-unt8/2355904 "2025-02-24T23:24:34Z")

</div>

Greetings, I am having significant trouble diagnosing this error, as I simply don’t know what’s causing the problem and would greatly appreciate any insight. Context: I am building a procedural generation script. Declar…

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

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