# C++

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

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

**Page:** 10

---

## [Spawning a Pawn with PaperFlipbookComponent + BlockAll + SimulatePhysics set in the constructor causes EncroachingBlockingGeometry to fail — the overlap query hits the Pawn's own physics body. ](https://forums.unrealengine.com/t/spawning-a-pawn-with-paperflipbookcomponent-blockall-simulatephysics-set-in-the-constructor-causes-encroachingblockinggeometry-to-fail-the-overlap-query-hits-the-pawns-own-physics-body/2727898)

<div class="topic-metadata">

**Author:** [@Nasha\_da\_da0](https://forums.unrealengine.com/u/Nasha_da_da0)\
**Replies:** 0\
**Last updated:** [June 11, 2026, 3:34am UTC](https://forums.unrealengine.com/t/spawning-a-pawn-with-paperflipbookcomponent-blockall-simulatephysics-set-in-the-constructor-causes-encroachingblockinggeometry-to-fail-the-overlap-query-hits-the-pawns-own-physics-body/2727898 "2026-06-11T03:34:44Z")

</div>

I’m building a 2D game with Paper2D. My Pawn has a UPaperFlipbookComponent set up in the constructor: AMyPawn::AMyPawn() { RenderBirdFlipbookComponent = CreateDefaultSubobject\<UPaperFlipbookComponent\>(TEXT("Flipbook…

---

## [OnComponentHit only triggered when hit by a character actor(npc or player character)](https://forums.unrealengine.com/t/oncomponenthit-only-triggered-when-hit-by-a-character-actor-npc-or-player-character/2727091)

<div class="topic-metadata">

**Author:** [@Badytheprogram](https://forums.unrealengine.com/u/Badytheprogram)\
**Replies:** 1\
**Last updated:** [June 8, 2026, 3:45pm UTC](https://forums.unrealengine.com/t/oncomponenthit-only-triggered-when-hit-by-a-character-actor-npc-or-player-character/2727091 "2026-06-08T15:45:49Z")

</div>

Hi. I try to simulate chains with instanced mesh components. For some reasons, the hit event only trigger when the other actor is from the character class. I tried with static mesh, skeletal mesh, and tried to put it i…

---

## [OnComponentHit not return an event if the name is generated randomly](https://forums.unrealengine.com/t/oncomponenthit-not-return-an-event-if-the-name-is-generated-randomly/2726823)

<div class="topic-metadata">

**Author:** [@Badytheprogram](https://forums.unrealengine.com/u/Badytheprogram)\
**Replies:** 0\
**Last updated:** [June 6, 2026, 8:41pm UTC](https://forums.unrealengine.com/t/oncomponenthit-not-return-an-event-if-the-name-is-generated-randomly/2726823 "2026-06-06T20:41:18Z")

</div>

Hi. (UE 4.27.2) I try to to make the name of my UInstancedStaticMeshComponent unique by adding a random number to the name. After a lot of testing, I figured out, If if use any random function, the OnComponentHit not r…

---

## [JSON objects replication](https://forums.unrealengine.com/t/json-objects-replication/1233512)

<div class="topic-metadata">

**Author:** [@Anilarion](https://forums.unrealengine.com/u/Anilarion)\
**Replies:** 2\
**Last updated:** [June 5, 2026, 2:49pm UTC](https://forums.unrealengine.com/t/json-objects-replication/1233512 "2026-06-05T14:49:08Z")

</div>

I want to create an inventory system based on Json in a multiplayer project. Initially, I tried to replicate the Json object, but it doesn’t replicate. Do you have any idea how to do it? Thank you!

---

## [I get an error gode ](https://forums.unrealengine.com/t/i-get-an-error-gode/2726340)

<div class="topic-metadata">

**Author:** [@KL9\_DREAS](https://forums.unrealengine.com/u/KL9_DREAS)\
**Replies:** 0\
**Last updated:** [June 4, 2026, 8:46pm UTC](https://forums.unrealengine.com/t/i-get-an-error-gode/2726340 "2026-06-04T20:46:49Z")

</div>

I got unbanned after a year and still I canot play I just get kicked I have tried evvery tttthing and support dont wanna help

---

## [C++ library node crash shipped package](https://forums.unrealengine.com/t/c-library-node-crash-shipped-package/2726020)

<div class="topic-metadata">

**Author:** [@Lixniqia](https://forums.unrealengine.com/u/Lixniqia)\
**Replies:** 2\
**Last updated:** [June 4, 2026, 3:29pm UTC](https://forums.unrealengine.com/t/c-library-node-crash-shipped-package/2726020 "2026-06-04T15:29:40Z")

</div>

I packed my project as shipping mode with some custom c++ node. When the game ran and executed this c++ node and I got fatal error pop up! I’m sure there were issue like this and probably has an answer?

---

## [Looking for an experienced Fortnite Game Dev willing to pay well must have past high quality work to show as proof of skills](https://forums.unrealengine.com/t/looking-for-an-experienced-fortnite-game-dev-willing-to-pay-well-must-have-past-high-quality-work-to-show-as-proof-of-skills/2692797)

<div class="topic-metadata">

**Author:** [@YT\_TorchFV](https://forums.unrealengine.com/u/YT_TorchFV)\
**Replies:** 2\
**Last updated:** [June 4, 2026, 2:56pm UTC](https://forums.unrealengine.com/t/looking-for-an-experienced-fortnite-game-dev-willing-to-pay-well-must-have-past-high-quality-work-to-show-as-proof-of-skills/2692797 "2026-06-04T14:56:44Z")

</div>

Looking for an experienced game dev paying well lmk

---

## [game crash ](https://forums.unrealengine.com/t/game-crash/2725923)

<div class="topic-metadata">

**Author:** [@soniaderbali](https://forums.unrealengine.com/u/soniaderbali)\
**Replies:** 1\
**Last updated:** [June 2, 2026, 11:30pm UTC](https://forums.unrealengine.com/t/game-crash/2725923 "2026-06-02T23:30:20Z")

</div>

Hi, im trying to play the camp forest green but it crashes the whole time im opening it, btw i doanloaded this game a couple minutes ago. so can someone help me by any chance ?

---

## [Posting the source code for LookRotation for those who need it .](https://forums.unrealengine.com/t/posting-the-source-code-for-lookrotation-for-those-who-need-it/111568)

<div class="topic-metadata">

**Author:** [@codehawk64](https://forums.unrealengine.com/u/codehawk64)\
**Replies:** 8\
**Last updated:** [June 2, 2026, 11:52am UTC](https://forums.unrealengine.com/t/posting-the-source-code-for-lookrotation-for-those-who-need-it/111568 "2026-06-02T11:52:48Z")

</div>

Posting it here as it took me a bit of trouble to figure this out . Seriously , why doesn’t the engine have this already ? MyLookRotation(FVector lookAt, FVector upDirection) { FVector forward = lookAt; FVector up =…

---

## [Can not package shipping builds when enable ScriptableToolsFramework plugin in UE5.7.0](https://forums.unrealengine.com/t/can-not-package-shipping-builds-when-enable-scriptabletoolsframework-plugin-in-ue5-7-0/2683385)

<div class="topic-metadata">

**Author:** [@Yuri9447](https://forums.unrealengine.com/u/Yuri9447)\
**Replies:** 6\
**Last updated:** [June 1, 2026, 2:43pm UTC](https://forums.unrealengine.com/t/can-not-package-shipping-builds-when-enable-scriptabletoolsframework-plugin-in-ue5-7-0/2683385 "2026-06-01T14:43:45Z")

</div>

Hi, There is a problem when packaging a shipping build in UE5.7.0. Here is how to repro it: Using UE5.7.0 to create a C++ project. Enable ScriptableToolsFramework plugin in that project. Try to build the shipping game. …

---

## [Errors when compiling an empty project](https://forums.unrealengine.com/t/errors-when-compiling-an-empty-project/2725108)

<div class="topic-metadata">

**Author:** [@Anlag](https://forums.unrealengine.com/u/Anlag)\
**Replies:** 2\
**Last updated:** [May 30, 2026, 9:59pm UTC](https://forums.unrealengine.com/t/errors-when-compiling-an-empty-project/2725108 "2026-05-30T21:59:41Z")

</div>

I’ve never done anything in C++ before. I’ve reinstalled Visual Studio three times now, but I’m still getting the errors shown in the screenshot when compiling a completely empty, new project. Does anyone know why?

---

## [DataTable vs UDataAsset for storing large amount of static data](https://forums.unrealengine.com/t/datatable-vs-udataasset-for-storing-large-amount-of-static-data/111622)

<div class="topic-metadata">

**Author:** [@kostenickj](https://forums.unrealengine.com/u/kostenickj)\
**Replies:** 14\
**Last updated:** [May 30, 2026, 11:54am UTC](https://forums.unrealengine.com/t/datatable-vs-udataasset-for-storing-large-amount-of-static-data/111622 "2026-05-30T11:54:06Z")

</div>

Hi all, My game is very data driven, i need to store a large amount of data with the same structure, and i’m stuck between using DataTables with structs, or a UDataAsset object. I’m curious what some more experienced de…

---

## [NEED HELP: Fixing RTB Inline Image](https://forums.unrealengine.com/t/need-help-fixing-rtb-inline-image/2725248)

<div class="topic-metadata">

**Author:** [@GraczCourier](https://forums.unrealengine.com/u/GraczCourier)\
**Replies:** 0\
**Last updated:** [May 30, 2026, 1:50am UTC](https://forums.unrealengine.com/t/need-help-fixing-rtb-inline-image/2725248 "2026-05-30T01:50:41Z")

</div>

I’m trying to center the inline image, but it keeps going to the same bottom. How I can center it? What changes do I need to apply to my inline class? class SCndRichInlineImage : public SCompoundWidget { public: SLA…

---

## [GetPrimaryGPUBrand - How To Retrieve Non-Primary GPU?](https://forums.unrealengine.com/t/getprimarygpubrand-how-to-retrieve-non-primary-gpu/2725236)

<div class="topic-metadata">

**Author:** [@p1xel\_imperfect](https://forums.unrealengine.com/u/p1xel_imperfect)\
**Replies:** 0\
**Last updated:** [May 29, 2026, 11:08pm UTC](https://forums.unrealengine.com/t/getprimarygpubrand-how-to-retrieve-non-primary-gpu/2725236 "2026-05-29T23:08:58Z")

</div>

I’m using FWindowsPlatformMisc::GetPrimaryGPUBrand as part of a process to extract debug information for my project. Its current return value is the integrated Intel UHD Graphics setup; however, my laptop also has an NVI…

---

## [Whats the purpose of the StateGraph experimental class? ](https://forums.unrealengine.com/t/whats-the-purpose-of-the-stategraph-experimental-class/2722241)

<div class="topic-metadata">

**Author:** [@hirenumradia](https://forums.unrealengine.com/u/hirenumradia)\
**Replies:** 2\
**Last updated:** [May 29, 2026, 12:20pm UTC](https://forums.unrealengine.com/t/whats-the-purpose-of-the-stategraph-experimental-class/2722241 "2026-05-29T12:20:58Z")

</div>

Hi, I stumbled on the StateGraph C++ class and I was wondering what its use was? Im looking for a way to model world state and create state transitions using a graph data structure. Thanks, Hiren

---

## [Building an Architectural Tool Inside Unreal Engine](https://forums.unrealengine.com/t/building-an-architectural-tool-inside-unreal-engine/2724992)

<div class="topic-metadata">

**Author:** [@Dumple1](https://forums.unrealengine.com/u/Dumple1)\
**Replies:** 0\
**Last updated:** [May 28, 2026, 8:18pm UTC](https://forums.unrealengine.com/t/building-an-architectural-tool-inside-unreal-engine/2724992 "2026-05-28T20:18:15Z")

</div>

A year and nine months ago I decided to move my entire workflow directly into Unreal Engine and leave behind the endless ArchiCAD → Blender → Unreal import/export cycle. Before this project I didn’t even know what a var…

---

## [Recording Player Location/Rotation in a CsvProfile](https://forums.unrealengine.com/t/recording-player-location-rotation-in-a-csvprofile/2724614)

<div class="topic-metadata">

**Author:** [@cow\_plop](https://forums.unrealengine.com/u/cow_plop)\
**Replies:** 1\
**Last updated:** [May 28, 2026, 5:10pm UTC](https://forums.unrealengine.com/t/recording-player-location-rotation-in-a-csvprofile/2724614 "2026-05-28T17:10:51Z")

</div>

I’m working on an automated profiling system. We want to grab the PlayerCharacter’s Location and Rotation, so we can figure out the View Frustum, and make a heat map which draws a correspondence between a hitch, and whe…

---

## [Camera sequence causes exception](https://forums.unrealengine.com/t/camera-sequence-causes-exception/754254)

<div class="topic-metadata">

**Author:** [@ElThundercloud](https://forums.unrealengine.com/u/ElThundercloud)\
**Replies:** 6\
**Last updated:** [May 28, 2026, 12:38pm UTC](https://forums.unrealengine.com/t/camera-sequence-causes-exception/754254 "2026-05-28T12:38:31Z")

</div>

When starting the engine from an IDE and with Camera Sequence Assets present in project’s content, following line throws an exception: if (ensureMsgf(Registry, TEXT("Typed element was requested for '%s' before the regis…

---

## [Add onbeginoverlap an onendoverlap event to instanced static mesh.](https://forums.unrealengine.com/t/add-onbeginoverlap-an-onendoverlap-event-to-instanced-static-mesh/2724810)

<div class="topic-metadata">

**Author:** [@Badytheprogram](https://forums.unrealengine.com/u/Badytheprogram)\
**Replies:** 4\
**Last updated:** [May 27, 2026, 8:55pm UTC](https://forums.unrealengine.com/t/add-onbeginoverlap-an-onendoverlap-event-to-instanced-static-mesh/2724810 "2026-05-27T20:55:29Z")

</div>

Hi I am new to c++ in Unreal engine, so sorry for my noobness. I am trying to get an overlap/hit event from instanced static meshes in an actor component. I searched a lot, but I only seen the “mesh-\>OnComponentBeginO…

---

## [Unreal 4.24 Help with "Still incompatible or missing module: "](https://forums.unrealengine.com/t/unreal-4-24-help-with-still-incompatible-or-missing-module/145793)

<div class="topic-metadata">

**Author:** [@vivienneanthony](https://forums.unrealengine.com/u/vivienneanthony)\
**Replies:** 2\
**Last updated:** [May 27, 2026, 7:22pm UTC](https://forums.unrealengine.com/t/unreal-4-24-help-with-still-incompatible-or-missing-module/145793 "2026-05-27T19:22:15Z")

</div>

Hello, Quick question. I am trying to get some plugins to work with version 4.24.3 of Unreal. I tried the one shown and another but no matter what. The plugin will not compile and build. I tried editing the version numb…

---

## [World Settings object changing while travelling through partitioned world](https://forums.unrealengine.com/t/world-settings-object-changing-while-travelling-through-partitioned-world/2724224)

<div class="topic-metadata">

**Author:** [@N1ghtwish386](https://forums.unrealengine.com/u/N1ghtwish386)\
**Replies:** 1\
**Last updated:** [May 27, 2026, 4:08am UTC](https://forums.unrealengine.com/t/world-settings-object-changing-while-travelling-through-partitioned-world/2724224 "2026-05-27T04:08:47Z")

</div>

I’ve noticed one strange behavior. Tried to look after it here and google it, but found nothing. So, what’s up? I have custom World Settings class with some UPROPERTY(EditDefaultsOnly) stuff that needs to be set in the …

---

## [Interfaces inheriting from other interfaces](https://forums.unrealengine.com/t/interfaces-inheriting-from-other-interfaces/26298)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_6f48ddab](https://forums.unrealengine.com/u/anonymous_user_6f48ddab)\
**Replies:** 7\
**Last updated:** [May 27, 2026, 3:12am UTC](https://forums.unrealengine.com/t/interfaces-inheriting-from-other-interfaces/26298 "2026-05-27T03:12:31Z")

</div>

Hey there. Just thought I would share something I stumbled upon while messing with some code, trying to break things, who knows what I was thinking lol. I wasn’t able to find any documentation or wiki entries mentioning…

---

## [C drive losing space fast each time I try to use Unreal Engine although EVERYTHING is on a different drive!](https://forums.unrealengine.com/t/c-drive-losing-space-fast-each-time-i-try-to-use-unreal-engine-although-everything-is-on-a-different-drive/469518)

<div class="topic-metadata">

**Author:** [@DarkNibir](https://forums.unrealengine.com/u/DarkNibir)\
**Replies:** 19\
**Last updated:** [May 26, 2026, 12:38pm UTC](https://forums.unrealengine.com/t/c-drive-losing-space-fast-each-time-i-try-to-use-unreal-engine-although-everything-is-on-a-different-drive/469518 "2026-05-26T12:38:53Z")

</div>

Hi, I just installed UE4 yesterday and started to learn from today, I got the 4.25.3 version, I changed the Engine install location from C to E before starting to download, since E has tons more space (around 60 GB of f…

---

## [GAS, A subclass of \`UAttributeSet\` inherits from its parent class, but the attributes of the subclass cannot be displayed in the GameplayEffect editor.](https://forums.unrealengine.com/t/gas-a-subclass-of-uattributeset-inherits-from-its-parent-class-but-the-attributes-of-the-subclass-cannot-be-displayed-in-the-gameplayeffect-editor/2719513)

<div class="topic-metadata">

**Author:** [@qipaworld](https://forums.unrealengine.com/u/qipaworld)\
**Replies:** 4\
**Last updated:** [May 25, 2026, 2:37pm UTC](https://forums.unrealengine.com/t/gas-a-subclass-of-uattributeset-inherits-from-its-parent-class-but-the-attributes-of-the-subclass-cannot-be-displayed-in-the-gameplayeffect-editor/2719513 "2026-05-25T14:37:09Z")

</div>

I inherited from UAttributeSet and created a class called Class A, where I added an attribute “a”. This attribute “a” is visible in the GameplayEffect editor. However, when I further inherit from Class A to create Class…

---

## [Replace Blueprint Enum and Struct with C++](https://forums.unrealengine.com/t/replace-blueprint-enum-and-struct-with-c/139187)

<div class="topic-metadata">

**Author:** [@RelaX92](https://forums.unrealengine.com/u/RelaX92)\
**Replies:** 13\
**Last updated:** [May 24, 2026, 10:46pm UTC](https://forums.unrealengine.com/t/replace-blueprint-enum-and-struct-with-c/139187 "2026-05-24T22:46:01Z")

</div>

Hi, I am trying to port a BluePrint project partly to C++. The reason is that Blueprint Structs do not allow inheritance, unlike C++ Structs. It seems like I can’t use Blueprint Enums as variables in C++ Structs, so I …

---

## [How to fix Windowed Fullscreen offset on a MacBook?](https://forums.unrealengine.com/t/how-to-fix-windowed-fullscreen-offset-on-a-macbook/2632130)

<div class="topic-metadata">

**Author:** [@volumetrix](https://forums.unrealengine.com/u/volumetrix)\
**Replies:** 6\
**Last updated:** [May 23, 2026, 7:24pm UTC](https://forums.unrealengine.com/t/how-to-fix-windowed-fullscreen-offset-on-a-macbook/2632130 "2026-05-23T19:24:11Z")

</div>

When running in Windowed Fullscreen mode on a MacBook, there is a black bar added to the top of the screen to hide the camera notch. However, the UMG Widget Blueprint components of the menu still track the cursor as if …

---

## [Create procedural mesh from animated skeletal mesh?](https://forums.unrealengine.com/t/create-procedural-mesh-from-animated-skeletal-mesh/429492)

<div class="topic-metadata">

**Author:** [@Cosmik-Debris](https://forums.unrealengine.com/u/Cosmik-Debris)\
**Replies:** 16\
**Last updated:** [May 22, 2026, 9:19pm UTC](https://forums.unrealengine.com/t/create-procedural-mesh-from-animated-skeletal-mesh/429492 "2026-05-22T21:19:51Z")

</div>

Is there a way to do this in C++? I’ve found a couple of things that explain something similar but can’t quite work it out. Basically I want to have a procedural mesh that is an exact copy of the skeletal mesh, includi…

---

## [Can't command character after switching pawns by Possess() function](https://forums.unrealengine.com/t/cant-command-character-after-switching-pawns-by-possess-function/2723883)

<div class="topic-metadata">

**Author:** [@Lixanny](https://forums.unrealengine.com/u/Lixanny)\
**Replies:** 0\
**Last updated:** [May 22, 2026, 6:32pm UTC](https://forums.unrealengine.com/t/cant-command-character-after-switching-pawns-by-possess-function/2723883 "2026-05-22T18:32:44Z")

</div>

MyGameDevLog1

---

## [How can I make my graph not compile if a custom function's input is not set?](https://forums.unrealengine.com/t/how-can-i-make-my-graph-not-compile-if-a-custom-functions-input-is-not-set/2723831)

<div class="topic-metadata">

**Author:** [@OrangeAedan](https://forums.unrealengine.com/u/OrangeAedan)\
**Replies:** 2\
**Last updated:** [May 22, 2026, 6:31pm UTC](https://forums.unrealengine.com/t/how-can-i-make-my-graph-not-compile-if-a-custom-functions-input-is-not-set/2723831 "2026-05-22T18:31:47Z")

</div>

Hello everyone. I am making a custom function that sets up a custom component I made. Here is my function btw: UFUNCTION(BlueprintCallable, Category = "Vehicle|Engine", meta = ( ToolTip = "Setup the EngineAudioManager.\\…

---

## [Game Flow Breakdown - Which Function is Called once the Game is Loaded and Started ](https://forums.unrealengine.com/t/game-flow-breakdown-which-function-is-called-once-the-game-is-loaded-and-started/2723716)

<div class="topic-metadata">

**Author:** [@Deathdealer8759](https://forums.unrealengine.com/u/Deathdealer8759)\
**Replies:** 2\
**Last updated:** [May 22, 2026, 4:40am UTC](https://forums.unrealengine.com/t/game-flow-breakdown-which-function-is-called-once-the-game-is-loaded-and-started/2723716 "2026-05-22T04:40:51Z")

</div>

Hello all, I’m struggling to understand how Game Flow works, I want a UWorldSubsystem to call behavior when Gameplay actually starts \[I want it to call a Timer once everything is loaded and the gameplay truly begins\] I’…

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

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