# C++

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

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

**Page:** 53

---

## [Any way to define a static function in C++ and implement it in Blueprints?](https://forums.unrealengine.com/t/any-way-to-define-a-static-function-in-c-and-implement-it-in-blueprints/2332982)

<div class="topic-metadata">

**Author:** [@Foolish.Flower1](https://forums.unrealengine.com/u/Foolish.Flower1)\
**Replies:** 1\
**Last updated:** [February 14, 2025, 9:25pm UTC](https://forums.unrealengine.com/t/any-way-to-define-a-static-function-in-c-and-implement-it-in-blueprints/2332982 "2025-02-14T21:25:11Z")

</div>

Couldn’t find a way myself, it seems that the generated reflection code for the UFUNCTION specifiers (BlueprintImplementableEvent, BlueprintNativeEvent) doesn’t go well with static functions. Was wondering if there is an…

---

## [I cant rotate my character with c++](https://forums.unrealengine.com/t/i-cant-rotate-my-character-with-c/2331755)

<div class="topic-metadata">

**Author:** [@Fire\_Ale](https://forums.unrealengine.com/u/Fire_Ale)\
**Replies:** 6\
**Last updated:** [February 14, 2025, 8:02pm UTC](https://forums.unrealengine.com/t/i-cant-rotate-my-character-with-c/2331755 "2025-02-14T20:02:26Z")

</div>

Like the tittle says im not able to rotate my character with c++. I have a wall run mechanic in my game but when the character exits the wall run its rotation changes to the one it had before. I think this happens beacau…

---

## [Packaging problem with UE5.3 MetaHuman project](https://forums.unrealengine.com/t/packaging-problem-with-ue5-3-metahuman-project/2321812)

<div class="topic-metadata">

**Author:** [@MetalGandix](https://forums.unrealengine.com/u/MetalGandix)\
**Replies:** 1\
**Last updated:** [February 14, 2025, 5:01pm UTC](https://forums.unrealengine.com/t/packaging-problem-with-ue5-3-metahuman-project/2321812 "2025-02-14T17:01:54Z")

</div>

Hi to all, I’m trying to release one of my projects in UE5.3 because I need to stream it to multiple people at the same time, however to stream it I need the “Shipping” package or the “Development” package would also be…

---

## [ShaderCompileWorker terminated unexpectedly!](https://forums.unrealengine.com/t/shadercompileworker-terminated-unexpectedly/2326017)

<div class="topic-metadata">

**Author:** [@MetalGandix](https://forums.unrealengine.com/u/MetalGandix)\
**Replies:** 1\
**Last updated:** [February 14, 2025, 5:01pm UTC](https://forums.unrealengine.com/t/shadercompileworker-terminated-unexpectedly/2326017 "2025-02-14T17:01:04Z")

</div>

Hi, I’m packaging my project (development) for Windows 11 with some MetaHumans inside, my shaderCompiler at a certain point (during cooking on the fly) stop working and gives me this: UATHelper: Packaging (Windows): Lo…

---

## [DOM-traversal-like UI manipulation of existing Editors through own Plugin?](https://forums.unrealengine.com/t/dom-traversal-like-ui-manipulation-of-existing-editors-through-own-plugin/2332617)

<div class="topic-metadata">

**Author:** [@DevKaiUnreal](https://forums.unrealengine.com/u/DevKaiUnreal)\
**Replies:** 0\
**Last updated:** [February 14, 2025, 3:01pm UTC](https://forums.unrealengine.com/t/dom-traversal-like-ui-manipulation-of-existing-editors-through-own-plugin/2332617 "2025-02-14T15:01:45Z")

</div>

Hi, my general question is: Is there anything built-in the Engine that solves similar problems like the DOM-traversal JavaScript offers? I am trying to add features/UI/widgets to existing Editors through my own plugin w…

---

## [Parse nested json to TMap in Unreal Engine 4](https://forums.unrealengine.com/t/parse-nested-json-to-tmap-in-unreal-engine-4/157998)

<div class="topic-metadata">

**Author:** [@Panmigo](https://forums.unrealengine.com/u/Panmigo)\
**Replies:** 4\
**Last updated:** [February 13, 2025, 8:51pm UTC](https://forums.unrealengine.com/t/parse-nested-json-to-tmap-in-unreal-engine-4/157998 "2025-02-13T20:51:38Z")

</div>

I have a nested json with the following structure within UE4: { "boundary\_points\_\_per\_\_cell": { "0": { "x": 16.451330042628662, "y": 2.0813326861577965 }, { "x": 16.7552…

---

## [USD Variants in blueprint](https://forums.unrealengine.com/t/usd-variants-in-blueprint/632847)

<div class="topic-metadata">

**Author:** [@mattschoepf](https://forums.unrealengine.com/u/mattschoepf)\
**Replies:** 7\
**Last updated:** [February 14, 2025, 2:03pm UTC](https://forums.unrealengine.com/t/usd-variants-in-blueprint/632847 "2025-02-14T14:03:29Z")

</div>

Is there a way to configure USD variants in blueprint? I can use the USD stage editor to switch variants just fine but would like to use widget blueprints to drive variant selection on assets

---

## [Changing TP\_WeaponComponent in FPS template changes variable types in component blueprint.](https://forums.unrealengine.com/t/changing-tp-weaponcomponent-in-fps-template-changes-variable-types-in-component-blueprint/554200)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_c0dcabd6](https://forums.unrealengine.com/u/anonymous_user_c0dcabd6)\
**Replies:** 2\
**Last updated:** [February 13, 2025, 10:16pm UTC](https://forums.unrealengine.com/t/changing-tp-weaponcomponent-in-fps-template-changes-variable-types-in-component-blueprint/554200 "2025-02-13T22:16:09Z")

</div>

INTRO: I’ve been messing with the first person template doing things like adding zoom and walk functionalities but now I’m working on adding recoil and movement inaccuracy that you would see in a shooter like CSGO or VA…

---

## [Confused with Dynamic Delegates (Serialization)](https://forums.unrealengine.com/t/confused-with-dynamic-delegates-serialization/1819226)

<div class="topic-metadata">

**Author:** [@IWizardMasterI](https://forums.unrealengine.com/u/IWizardMasterI)\
**Replies:** 2\
**Last updated:** [February 13, 2025, 10:12pm UTC](https://forums.unrealengine.com/t/confused-with-dynamic-delegates-serialization/1819226 "2025-02-13T22:12:29Z")

</div>

Hey! So, I’m studying delegates on C++ and I’m a bit confused with when to use dynamic delegates. I understand that I must use it if I want to call this delegate from the blueprint side, but there is this word that is bu…

---

## [Crash in DuplicateObject\<USkeletalMesh\>() when data is Cooked](https://forums.unrealengine.com/t/crash-in-duplicateobject-uskeletalmesh-when-data-is-cooked/2321670)

<div class="topic-metadata">

**Author:** [@Bojan\_Lovrovic](https://forums.unrealengine.com/u/Bojan_Lovrovic)\
**Replies:** 5\
**Last updated:** [February 13, 2025, 12:27pm UTC](https://forums.unrealengine.com/t/crash-in-duplicateobject-uskeletalmesh-when-data-is-cooked/2321670 "2025-02-13T12:27:06Z")

</div>

Hello, I have this issue that appeared in 5.5.1 and 5.5.2. I created two minimal projects that are exactly the same (based on third person demo from unreal) with the added code to duplicate the skeletal mesh of the mai…

---

## [Cannot include .generated.h but it exists](https://forums.unrealengine.com/t/cannot-include-generated-h-but-it-exists/414059)

<div class="topic-metadata">

**Author:** [@benjaml](https://forums.unrealengine.com/u/benjaml)\
**Replies:** 7\
**Last updated:** [February 13, 2025, 9:21am UTC](https://forums.unrealengine.com/t/cannot-include-generated-h-but-it-exists/414059 "2025-02-13T09:21:38Z")

</div>

Hello, I’m currently trying to add a custom module to my game, but I got a class in this new module that fails to compile because it cannot include it’s generated.h file Here is the header of the class : #pragma once …

---

## [OnOverlapBegin Usphere components not triggering.](https://forums.unrealengine.com/t/onoverlapbegin-usphere-components-not-triggering/2326830)

<div class="topic-metadata">

**Author:** [@xsmokumsx](https://forums.unrealengine.com/u/xsmokumsx)\
**Replies:** 2\
**Last updated:** [February 13, 2025, 12:36am UTC](https://forums.unrealengine.com/t/onoverlapbegin-usphere-components-not-triggering/2326830 "2025-02-13T00:36:06Z")

</div>

After days of fiddling with collision settings and reading through every forum post I can come across, nothing I’ve found seems to work, and I was hoping someone here could assist me. Like the title says, for some reason…

---

## [PackagingResults: Error: Unknown Error ](https://forums.unrealengine.com/t/packagingresults-error-unknown-error/2328477)

<div class="topic-metadata">

**Author:** [@MugenFN](https://forums.unrealengine.com/u/MugenFN)\
**Replies:** 1\
**Last updated:** [February 12, 2025, 7:31pm UTC](https://forums.unrealengine.com/t/packagingresults-error-unknown-error/2328477 "2025-02-12T19:31:22Z")

</div>

LogStreaming: Error: Couldn’t find file for package /Game/Fab/Chainlink\_Fences\_\_Mid-Poly\_/chainlink\_fences\_mid\_poly requested by async loading code. NameToLoad: /Game/Fab/Chainlink\_Fences\_\_Mid-Poly\_/chainlink\_fences\_mid\_…

---

## [Use Chooser Plugin in C++](https://forums.unrealengine.com/t/use-chooser-plugin-in-c/2327532)

<div class="topic-metadata">

**Author:** [@InvQuasar](https://forums.unrealengine.com/u/InvQuasar)\
**Replies:** 9\
**Last updated:** [February 12, 2025, 6:13pm UTC](https://forums.unrealengine.com/t/use-chooser-plugin-in-c/2327532 "2025-02-12T18:13:46Z")

</div>

Hi! Has anyone tried using the Chooser plugin in code? I want to rewrite a BP Evaluate Chooser node (screen 1) to C++ code, but I don’t understand how to do it correctly. .h file UPROPERTY(EditAnywhere, BlueprintR…

---

## [Shipping build with Editor data](https://forums.unrealengine.com/t/shipping-build-with-editor-data/2315782)

<div class="topic-metadata">

**Author:** [@Ermitash](https://forums.unrealengine.com/u/Ermitash)\
**Replies:** 1\
**Last updated:** [February 12, 2025, 5:56pm UTC](https://forums.unrealengine.com/t/shipping-build-with-editor-data/2315782 "2025-02-12T17:56:44Z")

</div>

Hello guys, is it possible to include all data inside #WITH EDITOR macros inside shipping build? I need UAnimDataModel runtime build, but i don’t know how i can do that(

---

## [Generating Box Components for Dynamic Mesh Faces at Runtime](https://forums.unrealengine.com/t/generating-box-components-for-dynamic-mesh-faces-at-runtime/2329401)

<div class="topic-metadata">

**Author:** [@cmccormick](https://forums.unrealengine.com/u/cmccormick)\
**Replies:** 0\
**Last updated:** [February 12, 2025, 3:25pm UTC](https://forums.unrealengine.com/t/generating-box-components-for-dynamic-mesh-faces-at-runtime/2329401 "2025-02-12T15:25:14Z")

</div>

Hi, I’m trying to generate box components at each face of a dynamic mesh at runtime, however, setting the box component extents is really throwing me off. I’m generating the box components successfully and setting the tr…

---

## [No viable function when referencing another classes function in character bind action.](https://forums.unrealengine.com/t/no-viable-function-when-referencing-another-classes-function-in-character-bind-action/2328601)

<div class="topic-metadata">

**Author:** [@GreenBaguette192](https://forums.unrealengine.com/u/GreenBaguette192)\
**Replies:** 3\
**Last updated:** [February 12, 2025, 2:34pm UTC](https://forums.unrealengine.com/t/no-viable-function-when-referencing-another-classes-function-in-character-bind-action/2328601 "2025-02-12T14:34:22Z")

</div>

Hi, I can’t seem to find a solution to this other than something a bit roundabout, so I wanted to see if anyone would know the solution. I have a character class and an arm class that is attached to it. The arm is a com…

---

## [Game Movie Player: black screen when loading is finished](https://forums.unrealengine.com/t/game-movie-player-black-screen-when-loading-is-finished/2329145)

<div class="topic-metadata">

**Author:** [@1934351472](https://forums.unrealengine.com/u/1934351472)\
**Replies:** 0\
**Last updated:** [February 12, 2025, 1:04pm UTC](https://forums.unrealengine.com/t/game-movie-player-black-screen-when-loading-is-finished/2329145 "2025-02-12T13:04:36Z")

</div>

UE5.4 using userwidget for gamemovieplayer ,just black screen void UMyGameinstance::StartInGameLoadingScreen(bool bPlayUntilStopped/\*\*true\*/, float PlayTime/\*\*3.f\*/) { LoadScreenWidget = CreateWidget\<UTDLoadScreenWi…

---

## [GetForward (or Right) Vector confusion.](https://forums.unrealengine.com/t/getforward-or-right-vector-confusion/2327261)

<div class="topic-metadata">

**Author:** [@1xu7](https://forums.unrealengine.com/u/1xu7)\
**Replies:** 3\
**Last updated:** [February 12, 2025, 1:01pm UTC](https://forums.unrealengine.com/t/getforward-or-right-vector-confusion/2327261 "2025-02-12T13:01:34Z")

</div>

Hello! I have a question regarding to Forward or Right Vector I was wondering why when getting GetActorForwardVector returns a Vector (regardless the name of the function) if you know that X is the forward… So, acc…

---

## [My c++ class cant see a variable in my blueprint ](https://forums.unrealengine.com/t/my-c-class-cant-see-a-variable-in-my-blueprint/2326087)

<div class="topic-metadata">

**Author:** [@samwilliams](https://forums.unrealengine.com/u/samwilliams)\
**Replies:** 3\
**Last updated:** [February 12, 2025, 11:42am UTC](https://forums.unrealengine.com/t/my-c-class-cant-see-a-variable-in-my-blueprint/2326087 "2025-02-12T11:42:28Z")

</div>

Hi there, Im a super noob to c++, I have created a c++ project and created three blueprints. I basically have a umg widget menu. There is a main menu with a ‘new project’ button, and an ‘Open project’ button. There are …

---

## [Default argument for functions with delegates as parameters](https://forums.unrealengine.com/t/default-argument-for-functions-with-delegates-as-parameters/2325661)

<div class="topic-metadata">

**Author:** [@UnrealDji](https://forums.unrealengine.com/u/UnrealDji)\
**Replies:** 7\
**Last updated:** [February 12, 2025, 10:51am UTC](https://forums.unrealengine.com/t/default-argument-for-functions-with-delegates-as-parameters/2325661 "2025-02-12T10:51:48Z")

</div>

I have a member function (in C++) which has several inputs and a delegate, also as an input, declared as const reference. So everything works fine. After compile and dropping that node in BP, delegate’s pin appears as e…

---

## [Using enum classes across modules.](https://forums.unrealengine.com/t/using-enum-classes-across-modules/137275)

<div class="topic-metadata">

**Author:** [@VD\_D](https://forums.unrealengine.com/u/VD_D)\
**Replies:** 4\
**Last updated:** [February 12, 2025, 5:39am UTC](https://forums.unrealengine.com/t/using-enum-classes-across-modules/137275 "2025-02-12T05:39:43Z")

</div>

I have an enumeration declared in separate .h file in my “Locomotion” module, declared as such: #include "CoreMinimal.h" #include "WallEntryType.generated.h" UENUM(BlueprintType) enum class EWallEntryType : uint8 { …

---

## [Ray Tracing bug ONLY in Shipping](https://forums.unrealengine.com/t/ray-tracing-bug-only-in-shipping/2288034)

<div class="topic-metadata">

**Author:** [@DELGOODIE](https://forums.unrealengine.com/u/DELGOODIE)\
**Replies:** 2\
**Last updated:** [February 11, 2025, 7:10pm UTC](https://forums.unrealengine.com/t/ray-tracing-bug-only-in-shipping/2288034 "2025-02-11T19:10:43Z")

</div>

I get this Runtime error in packaged shipping game that does NOT occur when game is packaged in DebugGame or Development configuration: Current version is 5.4.4 but I’ve had this error on previous version of unreal too. …

---

## [Unreal might be reading size for address?](https://forums.unrealengine.com/t/unreal-might-be-reading-size-for-address/2320395)

<div class="topic-metadata">

**Author:** [@GreenBaguette192](https://forums.unrealengine.com/u/GreenBaguette192)\
**Replies:** 11\
**Last updated:** [February 11, 2025, 4:29pm UTC](https://forums.unrealengine.com/t/unreal-might-be-reading-size-for-address/2320395 "2025-02-11T16:29:43Z")

</div>

Hi there, I apologize if I’m getting something wrong or missing something obvious, I’ve just running into an extremely strange error and am a junior programmer. I’m using C++ to create a game wherein a need a player and…

---

## [Compile Fails with "Exited with code 1" (Perforce)](https://forums.unrealengine.com/t/compile-fails-with-exited-with-code-1-perforce/2327556)

<div class="topic-metadata">

**Author:** [@BioFrost.in](https://forums.unrealengine.com/u/BioFrost.in)\
**Replies:** 0\
**Last updated:** [February 11, 2025, 2:51pm UTC](https://forums.unrealengine.com/t/compile-fails-with-exited-with-code-1-perforce/2327556 "2025-02-11T14:51:04Z")

</div>

I’m using Unreal Engine with Perforce for version control. When I compile my project in Visual Studio and run it with Ctrl + F5, I get the error exited with 1(0x1) However: The build succeeds without errors. My code c…

---

## [Invalid pointer to some UObjects using Instanced Structs](https://forums.unrealengine.com/t/invalid-pointer-to-some-uobjects-using-instanced-structs/1919694)

<div class="topic-metadata">

**Author:** [@hzFishy](https://forums.unrealengine.com/u/hzFishy)\
**Replies:** 3\
**Last updated:** [February 11, 2025, 2:28pm UTC](https://forums.unrealengine.com/t/invalid-pointer-to-some-uobjects-using-instanced-structs/1919694 "2025-02-11T14:28:20Z")

</div>

Hello, Its been a few days that i’m stuck on a “weird” issue. For context, my inventory system uses a single UObject type: UPGItem. This class contains data such as Instanced Structs, used as fragments to make modular…

---

## [What is the alternative to ConstructorHelpers:FObjectFinder outside of the constructor?](https://forums.unrealengine.com/t/what-is-the-alternative-to-constructorhelpers-fobjectfinder-outside-of-the-constructor/345479)

<div class="topic-metadata">

**Author:** [@sseufert](https://forums.unrealengine.com/u/sseufert)\
**Replies:** 10\
**Last updated:** [February 11, 2025, 11:18am UTC](https://forums.unrealengine.com/t/what-is-the-alternative-to-constructorhelpers-fobjectfinder-outside-of-the-constructor/345479 "2025-02-11T11:18:02Z")

</div>

Hello. When finding an object in the content browser, you can use ConstructorHelpers::FObjectFinder along with the asset’s path, but this will crash when used outside the constructor. What is the equivalent function when…

---

## [Replicating TMaps, what are my options?](https://forums.unrealengine.com/t/replicating-tmaps-what-are-my-options/2319736)

<div class="topic-metadata">

**Author:** [@Kotaru\_1](https://forums.unrealengine.com/u/Kotaru_1)\
**Replies:** 21\
**Last updated:** [February 11, 2025, 8:47am UTC](https://forums.unrealengine.com/t/replicating-tmaps-what-are-my-options/2319736 "2025-02-11T08:47:05Z")

</div>

I was working on a stat management system to easily allow my gameplay designer an easier method for assigning stats to various classes. The idea was to have an enum for each datatype which contains the various stats tha…

---

## [Create a new local player/ new player controller on unassigned gamepad button press](https://forums.unrealengine.com/t/create-a-new-local-player-new-player-controller-on-unassigned-gamepad-button-press/2323642)

<div class="topic-metadata">

**Author:** [@Edorion\_tlg](https://forums.unrealengine.com/u/Edorion_tlg)\
**Replies:** 1\
**Last updated:** [February 11, 2025, 4:33am UTC](https://forums.unrealengine.com/t/create-a-new-local-player-new-player-controller-on-unassigned-gamepad-button-press/2323642 "2025-02-11T04:33:58Z")

</div>

Hi, I am trying to give a way for my players to join the lobby in a local multiplayer game (non splitscreen) with the press of a button. The end goal is to have a menu like smash bros (for example). However I cannot find…

---

## [Physics asset for character falls through floor when simulating physics.](https://forums.unrealengine.com/t/physics-asset-for-character-falls-through-floor-when-simulating-physics/2326493)

<div class="topic-metadata">

**Author:** [@xsmokumsx](https://forums.unrealengine.com/u/xsmokumsx)\
**Replies:** 1\
**Last updated:** [February 11, 2025, 3:38am UTC](https://forums.unrealengine.com/t/physics-asset-for-character-falls-through-floor-when-simulating-physics/2326493 "2025-02-11T03:38:06Z")

</div>

Any help would be appreciated. Will link any blueprint/c++ backend/screenshots requested.

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

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