# C++

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

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

**Page:** 24

---

## [Please, help me with compilation C++ code to Blueprint Node. to Blueprint Node](https://forums.unrealengine.com/t/please-help-me-with-compilation-c-code-to-blueprint-node-to-blueprint-node/2661667)

<div class="topic-metadata">

**Author:** [@Efim\_Nabokih](https://forums.unrealengine.com/u/Efim_Nabokih)\
**Replies:** 0\
**Last updated:** [October 2, 2025, 8:40am UTC](https://forums.unrealengine.com/t/please-help-me-with-compilation-c-code-to-blueprint-node-to-blueprint-node/2661667 "2025-10-02T08:40:58Z")

</div>

Hi everyone, I feel like a fool, but I really couldn’t figure this out. The thing is, I really need to implement a Node in Blueprints that will allow me to change the settings of a single constraint (motor strength, targ…

---

## [objects being immutable](https://forums.unrealengine.com/t/objects-being-immutable/2661568)

<div class="topic-metadata">

**Author:** [@Eyufoi](https://forums.unrealengine.com/u/Eyufoi)\
**Replies:** 0\
**Last updated:** [October 2, 2025, 12:27am UTC](https://forums.unrealengine.com/t/objects-being-immutable/2661568 "2025-10-02T00:27:11Z")

</div>

I’m having an issue when I’m rapidly creating new chunk objects where sometimes for no real good reason the chunk object will just be immutable, and the set functions will not work at all resulting in the given image bel…

---

## [Help, Instanced UObjects run on CDO Outers!?](https://forums.unrealengine.com/t/help-instanced-uobjects-run-on-cdo-outers/2660985)

<div class="topic-metadata">

**Author:** [@Paddles](https://forums.unrealengine.com/u/Paddles)\
**Replies:** 2\
**Last updated:** [October 1, 2025, 3:40am UTC](https://forums.unrealengine.com/t/help-instanced-uobjects-run-on-cdo-outers/2660985 "2025-10-01T03:40:47Z")

</div>

I’ve made an unexpected behavioural discovery where Instanced UObjects (those set to DefaultToInstanced in their UCLASS macro and/or marked as Instanced in a UPROPERTY) are instantiated and run as a copy within their CDO…

---

## [Unreal Engine 5.6.1: C++ components (SpringArm & Camera) randomly disappear from Blueprint after reopening editor – is this a known issue? ](https://forums.unrealengine.com/t/unreal-engine-5-6-1-c-components-springarm-camera-randomly-disappear-from-blueprint-after-reopening-editor-is-this-a-known-issue/2660699)

<div class="topic-metadata">

**Author:** [@bachelorwhc](https://forums.unrealengine.com/u/bachelorwhc)\
**Replies:** 1\
**Last updated:** [September 30, 2025, 8:19pm UTC](https://forums.unrealengine.com/t/unreal-engine-5-6-1-c-components-springarm-camera-randomly-disappear-from-blueprint-after-reopening-editor-is-this-a-known-issue/2660699 "2025-09-30T20:19:37Z")

</div>

I’ve just started learning Unreal Engine, and I’m using version 5.6.1. I created a C++ class as follows: APlayerCharacter::APlayerCharacter() { PrimaryActorTick.bCanEverTick = true; SpringArm = CreateDefaultSubobject(…

---

## [Confusion about async loading assets](https://forums.unrealengine.com/t/confusion-about-async-loading-assets/2661045)

<div class="topic-metadata">

**Author:** [@volumetrix](https://forums.unrealengine.com/u/volumetrix)\
**Replies:** 6\
**Last updated:** [September 30, 2025, 4:25pm UTC](https://forums.unrealengine.com/t/confusion-about-async-loading-assets/2661045 "2025-09-30T16:25:23Z")

</div>

This is a really badly formed question but reading up on asset management has caused a lot of confusion. The immediate aim is to get async load to work for static meshes and other assets using C++. At first it looked li…

---

## [realtime landscape editing c++](https://forums.unrealengine.com/t/realtime-landscape-editing-c/2661100)

<div class="topic-metadata">

**Author:** [@Zimaell](https://forums.unrealengine.com/u/Zimaell)\
**Replies:** 0\
**Last updated:** [September 30, 2025, 1:36pm UTC](https://forums.unrealengine.com/t/realtime-landscape-editing-c/2661100 "2025-09-30T13:36:58Z")

</div>

How to change vertex data (height, material) of a landscape in real time from code (C++)? UPD. I found a way to change the vertex height FLandscapeEditDataInterface LandscapeEdit(LandscapeInfo); TArray\<uint16\>…

---

## [Can't save due to "Graph is linked to external private object"](https://forums.unrealengine.com/t/cant-save-due-to-graph-is-linked-to-external-private-object/316699)

<div class="topic-metadata">

**Author:** [@T.L.M](https://forums.unrealengine.com/u/T.L.M)\
**Replies:** 38\
**Last updated:** [September 29, 2025, 4:19pm UTC](https://forums.unrealengine.com/t/cant-save-due-to-graph-is-linked-to-external-private-object/316699 "2025-09-29T16:19:26Z")

</div>

Dear community, I have developed a little blueprint function library class that when used it causes the editor to not be able to save: The code below is a blueprint function call: UCLASS() class TESTPROJ\_API UMyBlue…

---

## [I'm At Loss, no clue what makes this crash occur, could someone help why that assert could happen](https://forums.unrealengine.com/t/im-at-loss-no-clue-what-makes-this-crash-occur-could-someone-help-why-that-assert-could-happen/2660444)

<div class="topic-metadata">

**Author:** [@Justrenis](https://forums.unrealengine.com/u/Justrenis)\
**Replies:** 2\
**Last updated:** [September 29, 2025, 9:15am UTC](https://forums.unrealengine.com/t/im-at-loss-no-clue-what-makes-this-crash-occur-could-someone-help-why-that-assert-could-happen/2660444 "2025-09-29T09:15:31Z")

</div>

We added new enemy, skeleton meshes are loaded asynchronously, we have already 6 types of enemies that never did such a crash but with this new enemy this crash happens very rarely, but right before his spawn so i assume…

---

## [How to use interfaces in C++?](https://forums.unrealengine.com/t/how-to-use-interfaces-in-c/2660084)

<div class="topic-metadata">

**Author:** [@volumetrix](https://forums.unrealengine.com/u/volumetrix)\
**Replies:** 2\
**Last updated:** [September 26, 2025, 1:21pm UTC](https://forums.unrealengine.com/t/how-to-use-interfaces-in-c/2660084 "2025-09-26T13:21:19Z")

</div>

There are several ways to use an object as if it were of an interface type. What are the different implications of the following options? Are they all equivalent? Are some better than others? // This class does not need…

---

## [Checking for Custom Trace Channel in C++](https://forums.unrealengine.com/t/checking-for-custom-trace-channel-in-c/665631)

<div class="topic-metadata">

**Author:** [@xlman](https://forums.unrealengine.com/u/xlman)\
**Replies:** 8\
**Last updated:** [September 26, 2025, 8:20am UTC](https://forums.unrealengine.com/t/checking-for-custom-trace-channel-in-c/665631 "2025-09-26T08:20:41Z")

</div>

Hi everyone, I’m looking for away to check in C++ if the user entered the appropriate Custom Trace Channel name used in one of the classes. Is there a way to do that?

---

## [Visual Studio NET errors](https://forums.unrealengine.com/t/visual-studio-net-errors/2659068)

<div class="topic-metadata">

**Author:** [@TheRealQuilithin](https://forums.unrealengine.com/u/TheRealQuilithin)\
**Replies:** 2\
**Last updated:** [September 26, 2025, 12:27am UTC](https://forums.unrealengine.com/t/visual-studio-net-errors/2659068 "2025-09-26T00:27:54Z")

</div>

This is an issue I’ve been having for a while now, and thus far, I haven’t found a clear-cut solution for it yet. Nobody I’ve spoken to about it seems to know how to fix it, and nothing I’ve tried up to now has worked. E…

---

## [There are some thing wrong with GetBaseAimRotation ](https://forums.unrealengine.com/t/there-are-some-thing-wrong-with-getbaseaimrotation/2659071)

<div class="topic-metadata">

**Author:** [@wycsusushui](https://forums.unrealengine.com/u/wycsusushui)\
**Replies:** 1\
**Last updated:** [September 25, 2025, 7:38pm UTC](https://forums.unrealengine.com/t/there-are-some-thing-wrong-with-getbaseaimrotation/2659071 "2025-09-25T19:38:56Z")

</div>

FRotator LastBodyRot; FRotator LastControlRot; FRotator BodyRot = OwnerCharacter-\>GetActorRotation(); FRotator ControlRot = OwnerCharacter-\>GetBaseAimRotation(); LookRotOffset = UKismetMathLibrary::NormalizedDeltaRotator…

---

## [CreateDefaultSubobject crashes Editor if used with UWidgetComponent!](https://forums.unrealengine.com/t/createdefaultsubobject-crashes-editor-if-used-with-uwidgetcomponent/2055802)

<div class="topic-metadata">

**Author:** [@Lukaniko2](https://forums.unrealengine.com/u/Lukaniko2)\
**Replies:** 2\
**Last updated:** [September 25, 2025, 7:01pm UTC](https://forums.unrealengine.com/t/createdefaultsubobject-crashes-editor-if-used-with-uwidgetcomponent/2055802 "2025-09-25T19:01:46Z")

</div>

Hello, I’m wanting to automatically add a WidgetComponent to an actor when I create a Blueprint of it. To do so, I’m trying to use “CreateDefaultSubobject” with UWidgetComponent. My goal is to create quick Interactable…

---

## [How to use TSoftObjectPtr for meshes?](https://forums.unrealengine.com/t/how-to-use-tsoftobjectptr-for-meshes/2659861)

<div class="topic-metadata">

**Author:** [@volumetrix](https://forums.unrealengine.com/u/volumetrix)\
**Replies:** 2\
**Last updated:** [September 25, 2025, 5:42pm UTC](https://forums.unrealengine.com/t/how-to-use-tsoftobjectptr-for-meshes/2659861 "2025-09-25T17:42:56Z")

</div>

Class Projectile has a mesh representation: // Visible mesh UPROPERTY(EditAnywhere, Category = "Components", meta = (AllowPrivateAccess = "true")) TObjectPtr\<UStaticMeshComponent\> Mesh; The static mesh can then be set …

---

## [Flickering Observed When Runtime Switching Lighting Scenario Levels ](https://forums.unrealengine.com/t/flickering-observed-when-runtime-switching-lighting-scenario-levels/2659812)

<div class="topic-metadata">

**Author:** [@JiajunshCanada](https://forums.unrealengine.com/u/JiajunshCanada)\
**Replies:** 0\
**Last updated:** [September 25, 2025, 2:34pm UTC](https://forums.unrealengine.com/t/flickering-observed-when-runtime-switching-lighting-scenario-levels/2659812 "2025-09-25T14:34:43Z")

</div>

Description:​​ I am encountering a specific rendering issue related to flickering when switching Lighting Scenario Levels in ​Unreal Engine 5.6 and 5.7. The problem is reproducible in ​PC packaged builds (Development or…

---

## [Duplicate Subsystem when inheriting from FTickableGameObject](https://forums.unrealengine.com/t/duplicate-subsystem-when-inheriting-from-ftickablegameobject/660998)

<div class="topic-metadata">

**Author:** [@bibbis](https://forums.unrealengine.com/u/bibbis)\
**Replies:** 7\
**Last updated:** [September 24, 2025, 1:09pm UTC](https://forums.unrealengine.com/t/duplicate-subsystem-when-inheriting-from-ftickablegameobject/660998 "2025-09-24T13:09:26Z")

</div>

Hello, I have created a UGameInstanceSubsystem class. I wanted to implement a Tick function so I included inheritance from “FTickableGameObject”. When I debug my code, there are 2 instances of my Subsystem each runnin…

---

## [get the preapring textures ammount in c++](https://forums.unrealengine.com/t/get-the-preapring-textures-ammount-in-c/2659294)

<div class="topic-metadata">

**Author:** [@AxccsAsh](https://forums.unrealengine.com/u/AxccsAsh)\
**Replies:** 2\
**Last updated:** [September 24, 2025, 11:36am UTC](https://forums.unrealengine.com/t/get-the-preapring-textures-ammount-in-c/2659294 "2025-09-24T11:36:33Z")

</div>

hi i want to get the ammount of preparing textures in my loadingscreenmamager so i can use it to onlly end once all types of assets are loaded and to use for loading bar. however i have not been able to get it to work it…

---

## [Pixel Streaming – Hide/Show Address Bar When Using UE5 Fullscreen Button for Mobile and Desktop](https://forums.unrealengine.com/t/pixel-streaming-hide-show-address-bar-when-using-ue5-fullscreen-button-for-mobile-and-desktop/2659153)

<div class="topic-metadata">

**Author:** [@HDHANAK](https://forums.unrealengine.com/u/HDHANAK)\
**Replies:** 2\
**Last updated:** [September 24, 2025, 4:27am UTC](https://forums.unrealengine.com/t/pixel-streaming-hide-show-address-bar-when-using-ue5-fullscreen-button-for-mobile-and-desktop/2659153 "2025-09-24T04:27:41Z")

</div>

Hi all, I’m using UE5 with Pixel Streaming and I created a fullscreen button inside my project. The fullscreen toggle itself works, but the browser still shows the address bar. What I want is for the address bar to hide…

---

## [How can I iterate through saved objects in an FStructuredArchive?](https://forums.unrealengine.com/t/how-can-i-iterate-through-saved-objects-in-an-fstructuredarchive/1770386)

<div class="topic-metadata">

**Author:** [@MittzyZea](https://forums.unrealengine.com/u/MittzyZea)\
**Replies:** 1\
**Last updated:** [September 24, 2025, 3:28am UTC](https://forums.unrealengine.com/t/how-can-i-iterate-through-saved-objects-in-an-fstructuredarchive/1770386 "2025-09-24T03:28:47Z")

</div>

I’m trying to learn how FStructuredArchives work. I think I get saving, but reading is confusing me. I have a FRecord called “SavedObjects” which contains a bunch of other FRecords, representing individual objects I hav…

---

## [How to dynamically create a UImage and add it to a VerticalBox container?(runtime, c++)](https://forums.unrealengine.com/t/how-to-dynamically-create-a-uimage-and-add-it-to-a-verticalbox-container-runtime-c/2658845)

<div class="topic-metadata">

**Author:** [@likemm1](https://forums.unrealengine.com/u/likemm1)\
**Replies:** 6\
**Last updated:** [September 24, 2025, 2:20am UTC](https://forums.unrealengine.com/t/how-to-dynamically-create-a-uimage-and-add-it-to-a-verticalbox-container-runtime-c/2658845 "2025-09-24T02:20:05Z")

</div>

I use the api: UImage\* NewImage = this-\>WidgetTree-\>ConstructWidget(UImage::StaticClass()); VerticalBox-\>AddChildToVerticalBox(NewImage); It seem OK, But when I exist the PIE(Play In Editor),Unreal Editor crash. I tr…

---

## [Rendering difficulties during automation of metahuman identity using commendlet-run ](https://forums.unrealengine.com/t/rendering-difficulties-during-automation-of-metahuman-identity-using-commendlet-run/2659200)

<div class="topic-metadata">

**Author:** [@neozhang001](https://forums.unrealengine.com/u/neozhang001)\
**Replies:** 0\
**Last updated:** [September 23, 2025, 1:08pm UTC](https://forums.unrealengine.com/t/rendering-difficulties-during-automation-of-metahuman-identity-using-commendlet-run/2659200 "2025-09-23T13:08:18Z")

</div>

I’m using commendlet -run in UE5.6 to automate MetaHuman Identity. I’ve completed mesh import, MetaHuman Identity asset creation, and frame rate boosting. Now, I’m trying to track the identity, which requires rendering. …

---

## [Display Cluster API in c++](https://forums.unrealengine.com/t/display-cluster-api-in-c/496491)

<div class="topic-metadata">

**Author:** [@MikeAngeloK](https://forums.unrealengine.com/u/MikeAngeloK)\
**Replies:** 3\
**Last updated:** [September 23, 2025, 9:03am UTC](https://forums.unrealengine.com/t/display-cluster-api-in-c/496491 "2025-09-23T09:03:01Z")

</div>

Hello, i want to get the Display Cluster API in c++. There is already the Blueprint UDisplayClusterBlueprintLib::GetAPI | Unreal Engine Documentation The class isnt tagged as a dll Export so i cant build any “Editor” c…

---

## [Why is my UNiagaraComponent null when using UNiagaraFunctionLibrary::SpawnSystemAttached](https://forums.unrealengine.com/t/why-is-my-uniagaracomponent-null-when-using-uniagarafunctionlibrary-spawnsystemattached/2658357)

<div class="topic-metadata">

**Author:** [@Wizzstick1](https://forums.unrealengine.com/u/Wizzstick1)\
**Replies:** 5\
**Last updated:** [September 23, 2025, 12:39am UTC](https://forums.unrealengine.com/t/why-is-my-uniagaracomponent-null-when-using-uniagarafunctionlibrary-spawnsystemattached/2658357 "2025-09-23T00:39:27Z")

</div>

Hello community, I’m trying to spawn projectiles that contain both Meshes and NiagaraSystems, I have a DataAsset that contains the relevant classes and properties for the spawning projectile which provides the variables…

---

## [Understanding C++ input](https://forums.unrealengine.com/t/understanding-c-input/2656145)

<div class="topic-metadata">

**Author:** [@Reicon](https://forums.unrealengine.com/u/Reicon)\
**Replies:** 2\
**Last updated:** [September 22, 2025, 8:48pm UTC](https://forums.unrealengine.com/t/understanding-c-input/2656145 "2025-09-22T20:48:07Z")

</div>

Hi. I am taking the Third Person tutorial for the networking and tryng to apply noptions in the Top Down template. I implemented the networking code but I can’t understand how to add and trigger the fire action. May b…

---

## [Debugging Gamepad Inputs on MacOS](https://forums.unrealengine.com/t/debugging-gamepad-inputs-on-macos/466804)

<div class="topic-metadata">

**Author:** [@Asterdahl](https://forums.unrealengine.com/u/Asterdahl)\
**Replies:** 10\
**Last updated:** [September 22, 2025, 7:55pm UTC](https://forums.unrealengine.com/t/debugging-gamepad-inputs-on-macos/466804 "2025-09-22T19:55:03Z")

</div>

I installed the third person 3D demo as a C++ project and have been building from XCode on MacOS. I cannot seem to get any response from any controller (PS3, PS4, Xbox 360, Xbox One, or Switch Pro) either over bluetooth …

---

## [Confused about IsSystemAttribute() in GAS source code ](https://forums.unrealengine.com/t/confused-about-issystemattribute-in-gas-source-code/2659009)

<div class="topic-metadata">

**Author:** [@Anonymous\_98c26b1b96b4c298954eab9a4a2c46ec](https://forums.unrealengine.com/u/Anonymous_98c26b1b96b4c298954eab9a4a2c46ec)\
**Replies:** 0\
**Last updated:** [September 22, 2025, 5:26pm UTC](https://forums.unrealengine.com/t/confused-about-issystemattribute-in-gas-source-code/2659009 "2025-09-22T17:26:40Z")

</div>

I’ve been studying the source code of GAS recently, and I came across the function HasAttributeSetForAttribute(FGameplayAttribute Attribute) in AbilitySystemComponent.cpp. I ran into some problems while trying to unders…

---

## [Automating Material Creation in Unreal Engine using Specific Texture Sets](https://forums.unrealengine.com/t/automating-material-creation-in-unreal-engine-using-specific-texture-sets/2094208)

<div class="topic-metadata">

**Author:** [@Poh\_commander](https://forums.unrealengine.com/u/Poh_commander)\
**Replies:** 1\
**Last updated:** [September 22, 2025, 2:07pm UTC](https://forums.unrealengine.com/t/automating-material-creation-in-unreal-engine-using-specific-texture-sets/2094208 "2025-09-22T14:07:03Z")

</div>

Hello everyone, I’m currently designing material packs for the Unreal Engine Marketplace. My folder structure is organized as follows: Content\>PackedName\>Map, Material, Texture What I want to achieve is to automate th…

---

## [Need Some Help Figuring Out the Mover 2.0 Plugin](https://forums.unrealengine.com/t/need-some-help-figuring-out-the-mover-2-0-plugin/2151390)

<div class="topic-metadata">

**Author:** [@Eric\_G.Gregory](https://forums.unrealengine.com/u/Eric_G.Gregory)\
**Replies:** 1\
**Last updated:** [September 22, 2025, 10:16am UTC](https://forums.unrealengine.com/t/need-some-help-figuring-out-the-mover-2-0-plugin/2151390 "2025-09-22T10:16:35Z")

</div>

I’m working on a VR project using Unreal Engine 5.4.4 and stumbled upon the Mover 2.0 plugin in this video from Unreal Fest and figured the plugin seems like a good option for the project. But I’m having issues with und…

---

## [Blackbox AI: Smarter Coding Assistance for Unreal Engine](https://forums.unrealengine.com/t/blackbox-ai-smarter-coding-assistance-for-unreal-engine/2658811)

<div class="topic-metadata">

**Author:** [@Kamalomai](https://forums.unrealengine.com/u/Kamalomai)\
**Replies:** 0\
**Last updated:** [September 22, 2025, 2:16am UTC](https://forums.unrealengine.com/t/blackbox-ai-smarter-coding-assistance-for-unreal-engine/2658811 "2025-09-22T02:16:40Z")

</div>

Blackbox AI is becoming a powerful tool for developers who want to speed up their workflow inside Unreal Engine projects. By integrating AI-powered code suggestions, it helps game creators write C++ or Blueprint scripts …

---

## [I have root motion animation in my animation. yet the capsule doesn't move with animation even when "Enable Root motion" is checked. all seem good but the capsule is not moving when i click the enable root motion. help pls ](https://forums.unrealengine.com/t/i-have-root-motion-animation-in-my-animation-yet-the-capsule-doesnt-move-with-animation-even-when-enable-root-motion-is-checked-all-seem-good-but-the-capsule-is-not-moving-when-i-click-the-enable-root-motion-help-pls/2658792)

<div class="topic-metadata">

**Author:** [@TacHyoNic900](https://forums.unrealengine.com/u/TacHyoNic900)\
**Replies:** 0\
**Last updated:** [September 21, 2025, 10:13pm UTC](https://forums.unrealengine.com/t/i-have-root-motion-animation-in-my-animation-yet-the-capsule-doesnt-move-with-animation-even-when-enable-root-motion-is-checked-all-seem-good-but-the-capsule-is-not-moving-when-i-click-the-enable-root-motion-help-pls/2658792 "2025-09-21T22:13:56Z")

</div>

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

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