# C++

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

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

**Page:** 38

---

## [Why is my UPROPERTY variable not updating in-game even though it compiles fine in C++? ](https://forums.unrealengine.com/t/why-is-my-uproperty-variable-not-updating-in-game-even-though-it-compiles-fine-in-c/2524590)

<div class="topic-metadata">

**Author:** [@JaninDerner](https://forums.unrealengine.com/u/JaninDerner)\
**Replies:** 3\
**Last updated:** [May 25, 2025, 12:12pm UTC](https://forums.unrealengine.com/t/why-is-my-uproperty-variable-not-updating-in-game-even-though-it-compiles-fine-in-c/2524590 "2025-05-25T12:12:39Z")

</div>

I’m experimenting with extending functionality in C++ rather than just Blueprints. I declared a UPROPERTY(EditAnywhere) variable, but it doesn’t seem to reflect changes I make in the editor at runtime. I’ve checked my co…

---

## [Handling (F)PropertyChangedEvent for Editor Events](https://forums.unrealengine.com/t/handling-f-propertychangedevent-for-editor-events/2526032)

<div class="topic-metadata">

**Author:** [@AgentNeoslav](https://forums.unrealengine.com/u/AgentNeoslav)\
**Replies:** 1\
**Last updated:** [May 25, 2025, 11:49am UTC](https://forums.unrealengine.com/t/handling-f-propertychangedevent-for-editor-events/2526032 "2025-05-25T11:49:14Z")

</div>

Hello together, i’d like to create some children of SceneComponents, which inherit FStructs, which inherit FMaps of Enums and Fstructs, which inherit something. You get where this is going. The Parameters of the FStruc…

---

## [SetByCaller for GAS dosent work! ](https://forums.unrealengine.com/t/setbycaller-for-gas-dosent-work/2526060)

<div class="topic-metadata">

**Author:** [@555\_FLUID](https://forums.unrealengine.com/u/555_FLUID)\
**Replies:** 0\
**Last updated:** [May 24, 2025, 1:32pm UTC](https://forums.unrealengine.com/t/setbycaller-for-gas-dosent-work/2526060 "2025-05-24T13:32:59Z")

</div>

Hello i have been trying to get SetByCaller for my GAS ability to work for hours now, but i keep getting errors even though i at one point got it to remove stamina and apply cooldown tags, this error i got: LogGameplayE…

---

## [Something with BlendSpaces crashes my preview/game a few seconds after starting](https://forums.unrealengine.com/t/something-with-blendspaces-crashes-my-preview-game-a-few-seconds-after-starting/151015)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_4e0c91c5](https://forums.unrealengine.com/u/anonymous_user_4e0c91c5)\
**Replies:** 1\
**Last updated:** [May 24, 2025, 12:41pm UTC](https://forums.unrealengine.com/t/something-with-blendspaces-crashes-my-preview-game-a-few-seconds-after-starting/151015 "2025-05-24T12:41:21Z")

</div>

It was working before and I didnt change anything on the project. No error messages on compile. If I close the preview fast, it doesnt crash. If I don’t move the character, it doesn’t crash. If I move, it will crash af…

---

## [What’s the best way to import a character from Blender to Unreal Engine with animations?](https://forums.unrealengine.com/t/what-s-the-best-way-to-import-a-character-from-blender-to-unreal-engine-with-animations/2525353)

<div class="topic-metadata">

**Author:** [@willSon-xyz](https://forums.unrealengine.com/u/willSon-xyz)\
**Replies:** 0\
**Last updated:** [May 24, 2025, 1:45am UTC](https://forums.unrealengine.com/t/what-s-the-best-way-to-import-a-character-from-blender-to-unreal-engine-with-animations/2525353 "2025-05-24T01:45:03Z")

</div>

Hey! Here’s a step-by-step guide: Rig your character in Blender using Armature. Export it as an FBX file. Make sure to enable Bake Animation and set Add Leaf Bones = false. In Unreal Engine: Import the FBX file. Chec…

---

## [How can I optimize lighting in Unreal Engine 5 for an open-world project?](https://forums.unrealengine.com/t/how-can-i-optimize-lighting-in-unreal-engine-5-for-an-open-world-project/2525342)

<div class="topic-metadata">

**Author:** [@kobetinh](https://forums.unrealengine.com/u/kobetinh)\
**Replies:** 0\
**Last updated:** [May 24, 2025, 1:26am UTC](https://forums.unrealengine.com/t/how-can-i-optimize-lighting-in-unreal-engine-5-for-an-open-world-project/2525342 "2025-05-24T01:26:14Z")

</div>

Hi there! For open-world environments in UE5, here are a few optimization tips: Use Lumen for real-time dynamic lighting without baking. Limit the number of dynamic light sources in your scene. Enable Distance Field Am…

---

## [hideCategories = (ActorTick) won't work in 4.12](https://forums.unrealengine.com/t/hidecategories-actortick-wont-work-in-4-12/368476)

<div class="topic-metadata">

**Author:** [@\_h2o](https://forums.unrealengine.com/u/_h2o)\
**Replies:** 9\
**Last updated:** [May 23, 2025, 7:02pm UTC](https://forums.unrealengine.com/t/hidecategories-actortick-wont-work-in-4-12/368476 "2025-05-23T19:02:35Z")

</div>

UCLASS(hideCategories = (ActorTick)) not hides ActorTick category in blueprint details panel any more since 4.12 (in 4.11 category was hidden fine)

---

## [LevelSequence events created in C++ not triggered in Packaged Build](https://forums.unrealengine.com/t/levelsequence-events-created-in-c-not-triggered-in-packaged-build/2524490)

<div class="topic-metadata">

**Author:** [@rahul.naskar1](https://forums.unrealengine.com/u/rahul.naskar1)\
**Replies:** 2\
**Last updated:** [May 23, 2025, 2:58pm UTC](https://forums.unrealengine.com/t/levelsequence-events-created-in-c-not-triggered-in-packaged-build/2524490 "2025-05-23T14:58:32Z")

</div>

Hi, I’m facing a typical issue in creating and receving events via event track in ULevelSequence (entirely in c++). The exact problem that I’m facing is: Event is received in c++ callback in Editor Build, but not in p…

---

## [Packaged game crashing on level transition (Ensure condition failed: GetShadowIndex() == 0)](https://forums.unrealengine.com/t/packaged-game-crashing-on-level-transition-ensure-condition-failed-getshadowindex-0/148554)

<div class="topic-metadata">

**Author:** [@CJB\_Games](https://forums.unrealengine.com/u/CJB_Games)\
**Replies:** 1\
**Last updated:** [May 23, 2025, 12:09pm UTC](https://forums.unrealengine.com/t/packaged-game-crashing-on-level-transition-ensure-condition-failed-getshadowindex-0/148554 "2025-05-23T12:09:21Z")

</div>

Hello all, I’ve been struggling with this issue for around a month now with no end in sight. Any help will be greatly appreciated. After upgrading my project from 4.24 to 4.25 my game keeps crashing upon changing level…

---

## [having trouble trying to spawn navMeshBoundVolume from c++](https://forums.unrealengine.com/t/having-trouble-trying-to-spawn-navmeshboundvolume-from-c/2524399)

<div class="topic-metadata">

**Author:** [@enzoravo](https://forums.unrealengine.com/u/enzoravo)\
**Replies:** 0\
**Last updated:** [May 23, 2025, 11:35am UTC](https://forums.unrealengine.com/t/having-trouble-trying-to-spawn-navmeshboundvolume-from-c/2524399 "2025-05-23T11:35:48Z")

</div>

I’m working on a level loader from a plain text file, i have almost all my assets spawned and working dynamically. I have added a feature to let the objects from the map to spawn in Editor without the need to run the ga…

---

## [How to optimize Niagara particle systems for better performance in UE5? ](https://forums.unrealengine.com/t/how-to-optimize-niagara-particle-systems-for-better-performance-in-ue5/2522420)

<div class="topic-metadata">

**Author:** [@Mr.hungok](https://forums.unrealengine.com/u/Mr.hungok)\
**Replies:** 3\
**Last updated:** [May 23, 2025, 4:48am UTC](https://forums.unrealengine.com/t/how-to-optimize-niagara-particle-systems-for-better-performance-in-ue5/2522420 "2025-05-23T04:48:00Z")

</div>

Hi Unreal developers! I’ve been working with Niagara to create VFX for my UE5 project — things like fire, smoke, and magic spells. They look awesome, but I’ve noticed my framerate drops when a lot of effects are active …

---

## [Why is my custom C++ actor not replicating correctly even with SetIsReplicated(true) and bReplicates = true? ](https://forums.unrealengine.com/t/why-is-my-custom-c-actor-not-replicating-correctly-even-with-setisreplicated-true-and-breplicates-true/2523994)

<div class="topic-metadata">

**Author:** [@MindyHarmon](https://forums.unrealengine.com/u/MindyHarmon)\
**Replies:** 1\
**Last updated:** [May 23, 2025, 4:28am UTC](https://forums.unrealengine.com/t/why-is-my-custom-c-actor-not-replicating-correctly-even-with-setisreplicated-true-and-breplicates-true/2523994 "2025-05-23T04:28:16Z")

</div>

Hi everyone, I’ve recently started learning C++ in Unreal Engine after spending a lot of time with Blueprints. I’m currently building a simple multiplayer prototype and wanted to create a custom actor entirely in C++ th…

---

## [How to properly replicate character movement and custom actions in UE5 multiplayer? ](https://forums.unrealengine.com/t/how-to-properly-replicate-character-movement-and-custom-actions-in-ue5-multiplayer/2522408)

<div class="topic-metadata">

**Author:** [@MR\_ManUnited](https://forums.unrealengine.com/u/MR_ManUnited)\
**Replies:** 1\
**Last updated:** [May 22, 2025, 5:14am UTC](https://forums.unrealengine.com/t/how-to-properly-replicate-character-movement-and-custom-actions-in-ue5-multiplayer/2522408 "2025-05-22T05:14:49Z")

</div>

Hey Unreal devs! I’m setting up a multiplayer project in UE5 and I’m running into some issues with replicating character movement and custom actions like attacks and dodges. The default Character Movement Component see…

---

## [Setting values for PaperFlipbookComponent in C++](https://forums.unrealengine.com/t/setting-values-for-paperflipbookcomponent-in-c/2521362)

<div class="topic-metadata">

**Author:** [@IXA-44](https://forums.unrealengine.com/u/IXA-44)\
**Replies:** 6\
**Last updated:** [May 22, 2025, 12:04am UTC](https://forums.unrealengine.com/t/setting-values-for-paperflipbookcomponent-in-c/2521362 "2025-05-22T00:04:43Z")

</div>

I’m now looking for a way to set the SourceFlipbook of the UPaperFlipbookComponent in its constructor in C++. The setting location on BP is “SourceFlipbook” in the attached image. I have confirmed that the internal name…

---

## [Crash when colliding against GeometryCollection (Chaos)](https://forums.unrealengine.com/t/crash-when-colliding-against-geometrycollection-chaos/2521178)

<div class="topic-metadata">

**Author:** [@NonoDey](https://forums.unrealengine.com/u/NonoDey)\
**Replies:** 2\
**Last updated:** [May 21, 2025, 11:30am UTC](https://forums.unrealengine.com/t/crash-when-colliding-against-geometrycollection-chaos/2521178 "2025-05-21T11:30:12Z")

</div>

In packaged build (windows) I got a crash when colliding with elements from a Geometry Collection. I never got this error while playing in editor. Here is the log crash : \[2025.05.21-10.15.23:570\]\[504\]LogWindows: Error…

---

## [Using PerObjectConfig](https://forums.unrealengine.com/t/using-perobjectconfig/1844)

<div class="topic-metadata">

**Author:** [@Passionfruit](https://forums.unrealengine.com/u/Passionfruit)\
**Replies:** 2\
**Last updated:** [May 20, 2025, 7:24pm UTC](https://forums.unrealengine.com/t/using-perobjectconfig/1844 "2025-05-20T19:24:05Z")

</div>

Hi, had a couple of questions about PerObjectConfig. Is it supposed to work with classes derived from UObject or only AActor subclasses? Whats the proper way to create the objects specified in your config file? …

---

## [Usage of the ImportTextItem function ](https://forums.unrealengine.com/t/usage-of-the-importtextitem-function/2519802)

<div class="topic-metadata">

**Author:** [@user\_20ce27d64570f8bd45fe218b430aa78e0b8351edf5ce7788dc36be](https://forums.unrealengine.com/u/user_20ce27d64570f8bd45fe218b430aa78e0b8351edf5ce7788dc36be)\
**Replies:** 0\
**Last updated:** [May 20, 2025, 2:09pm UTC](https://forums.unrealengine.com/t/usage-of-the-importtextitem-function/2519802 "2025-05-20T14:09:45Z")

</div>

I have three structures A, B, and C. A is the parent class of B, B is the parent class of C, and C inherits from FTablawRowBase. Now I need to create a CSV table to import into Unreal Engine. How do I implement the Impor…

---

## [Best way to safely migrate a UE4.27 project to Unreal Engine 5.4?](https://forums.unrealengine.com/t/best-way-to-safely-migrate-a-ue4-27-project-to-unreal-engine-5-4/2518995)

<div class="topic-metadata">

**Author:** [@willSon-xyz](https://forums.unrealengine.com/u/willSon-xyz)\
**Replies:** 0\
**Last updated:** [May 20, 2025, 2:30am UTC](https://forums.unrealengine.com/t/best-way-to-safely-migrate-a-ue4-27-project-to-unreal-engine-5-4/2518995 "2025-05-20T02:30:55Z")

</div>

I have a fairly large project made in UE4.27 and I’m considering upgrading it to UE5.4 to take advantage of features like Lumen and Nanite. What’s the safest workflow to migrate without breaking project settings or caus…

---

## [Can't Open C++ when trying to start new project, but can open blueprint just fine](https://forums.unrealengine.com/t/cant-open-c-when-trying-to-start-new-project-but-can-open-blueprint-just-fine/249726)

<div class="topic-metadata">

**Author:** [@hotgyrosandbeef](https://forums.unrealengine.com/u/hotgyrosandbeef)\
**Replies:** 29\
**Last updated:** [May 19, 2025, 1:42pm UTC](https://forums.unrealengine.com/t/cant-open-c-when-trying-to-start-new-project-but-can-open-blueprint-just-fine/249726 "2025-05-19T13:42:03Z")

</div>

Any help? I am embarrassed and mildly frustrated that I can’t figure this out.

---

## [How do I update UE third-party library binaries](https://forums.unrealengine.com/t/how-do-i-update-ue-third-party-library-binaries/727978)

<div class="topic-metadata">

**Author:** [@ue-for-v](https://forums.unrealengine.com/u/ue-for-v)\
**Replies:** 7\
**Last updated:** [May 19, 2025, 2:20am UTC](https://forums.unrealengine.com/t/how-do-i-update-ue-third-party-library-binaries/727978 "2025-05-19T02:20:16Z")

</div>

I want PixelStreaming to work on ARM64 but UE does not have ARM64 webrtc library I compiled the ARM64 webrtc library problems were encountered 1.webrtc ssl and openssl repeated symbols ( use “–allow-multiple-definiti…

---

## [UE554: PrimitiveOptions.MaterialID has strange behavior (And Completely Broken on Revolve)(Geometry Script)](https://forums.unrealengine.com/t/ue554-primitiveoptions-materialid-has-strange-behavior-and-completely-broken-on-revolve-geometry-script/2514513)

<div class="topic-metadata">

**Author:** [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Replies:** 1\
**Last updated:** [May 17, 2025, 12:49pm UTC](https://forums.unrealengine.com/t/ue554-primitiveoptions-materialid-has-strange-behavior-and-completely-broken-on-revolve-geometry-script/2514513 "2025-05-17T12:49:27Z")

</div>

Cannot select an ID with a zero value PrimitiveOptions.MaterialID = 0; If you do this, the last material in the array will be selected. Except for the dynamic mesh returned by the function. void AMyClass::RebuildGene…

---

## [GENERATED\_BODY macro causes error "this declaration has no storage class or type specifier"](https://forums.unrealengine.com/t/generated-body-macro-causes-error-this-declaration-has-no-storage-class-or-type-specifier/33671)

<div class="topic-metadata">

**Author:** [@TheWirv](https://forums.unrealengine.com/u/TheWirv)\
**Replies:** 24\
**Last updated:** [May 17, 2025, 7:20pm UTC](https://forums.unrealengine.com/t/generated-body-macro-causes-error-this-declaration-has-no-storage-class-or-type-specifier/33671 "2025-05-17T19:20:25Z")

</div>

Hey guys, I’m fairly new to UE and am currently busy (or at least trying to) with the 3rd Person Power-Up Game with C++ video tutorial. Already in the third assignment, after creating my first class, I’m running into pr…

---

## [Pawn spawning and possession after seamless travel. ](https://forums.unrealengine.com/t/pawn-spawning-and-possession-after-seamless-travel/2510682)

<div class="topic-metadata">

**Author:** [@D4RTY](https://forums.unrealengine.com/u/D4RTY)\
**Replies:** 1\
**Last updated:** [May 17, 2025, 1:14am UTC](https://forums.unrealengine.com/t/pawn-spawning-and-possession-after-seamless-travel/2510682 "2025-05-17T01:14:48Z")

</div>

Hey, I am making my first online multiplayer game. I want to make an among us like system where there are normal players and some random impostors. What I am trying to arrange these roles randomly and spawn and possess t…

---

## [C4430 In MeshBasicEditFunctions.h](https://forums.unrealengine.com/t/c4430-in-meshbasiceditfunctions-h/2510254)

<div class="topic-metadata">

**Author:** [@pastalapate](https://forums.unrealengine.com/u/pastalapate)\
**Replies:** 7\
**Last updated:** [May 16, 2025, 7:59pm UTC](https://forums.unrealengine.com/t/c4430-in-meshbasiceditfunctions-h/2510254 "2025-05-16T19:59:05Z")

</div>

Hello, When I include and use MeshBasicEditFunctions.h in my header file, it will not compile and instead give the error C4430 on lines 22, 78, 91 and 93. When searching in the source it gives : GENERATED\_BODY(), GENERA…

---

## [Do I have to recompile every time I open the project!?](https://forums.unrealengine.com/t/do-i-have-to-recompile-every-time-i-open-the-project/609549)

<div class="topic-metadata">

**Author:** [@Makadi](https://forums.unrealengine.com/u/Makadi)\
**Replies:** 4\
**Last updated:** [May 16, 2025, 5:51pm UTC](https://forums.unrealengine.com/t/do-i-have-to-recompile-every-time-i-open-the-project/609549 "2025-05-16T17:51:55Z")

</div>

I have modified the controller cpp file in the top down template to let the character jump and it is working fine but I have to recompile every time I open the project just to let this jump function work is that normal?

---

## [Does UE supports latest mac M4 Max?](https://forums.unrealengine.com/t/does-ue-supports-latest-mac-m4-max/2513639)

<div class="topic-metadata">

**Author:** [@Despria](https://forums.unrealengine.com/u/Despria)\
**Replies:** 1\
**Last updated:** [May 16, 2025, 4:37pm UTC](https://forums.unrealengine.com/t/does-ue-supports-latest-mac-m4-max/2513639 "2025-05-16T16:37:53Z")

</div>

My mac os version is sequoia 15.5, and xcode version is 16.x as long as I know, lastest UE (version 5.5) recommends mac 14.7 sonoma and xcode 15.4. is there anyone who has lastest mac (m4 max) running UE? I know that …

---

## [Why all warnings are treated as errors in the ue4 C++ project, and how to suppress all warnings?](https://forums.unrealengine.com/t/why-all-warnings-are-treated-as-errors-in-the-ue4-c-project-and-how-to-suppress-all-warnings/133206)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_841b3986](https://forums.unrealengine.com/u/anonymous_user_841b3986)\
**Replies:** 5\
**Last updated:** [May 16, 2025, 12:08pm UTC](https://forums.unrealengine.com/t/why-all-warnings-are-treated-as-errors-in-the-ue4-c-project-and-how-to-suppress-all-warnings/133206 "2025-05-16T12:08:30Z")

</div>

I’m using UE4.23 and Visual Studio 2017. I find that, in the unreal visual studio project, all warnings are treated as errors. And I don’t know how to suppress all warnings. For example, in a C++ class constructor, a va…

---

## [My Actor component disappears after reloading unreal engine.](https://forums.unrealengine.com/t/my-actor-component-disappears-after-reloading-unreal-engine/1368447)

<div class="topic-metadata">

**Author:** [@Junk111e](https://forums.unrealengine.com/u/Junk111e)\
**Replies:** 5\
**Last updated:** [May 16, 2025, 11:29am UTC](https://forums.unrealengine.com/t/my-actor-component-disappears-after-reloading-unreal-engine/1368447 "2025-05-16T11:29:38Z")

</div>

I am having big troubles when I started adding components to actors. After I ad component to my actor, save it, check it works, everything is good. But after I restart my project, the component disappeared from my actor …

---

## [How to include CreateDefaultSubobject in C++?](https://forums.unrealengine.com/t/how-to-include-createdefaultsubobject-in-c/2512848)

<div class="topic-metadata">

**Author:** [@volumetrix](https://forums.unrealengine.com/u/volumetrix)\
**Replies:** 2\
**Last updated:** [May 16, 2025, 10:06am UTC](https://forums.unrealengine.com/t/how-to-include-createdefaultsubobject-in-c/2512848 "2025-05-16T10:06:03Z")

</div>

I want to create a wrapper around calls to CreateDefaultSubobject and place it into a header file. The function is defined in Object.h but the code does not compile. What is the correct way to call this function in a st…

---

## [how can we run task in one tick in unreal ?](https://forums.unrealengine.com/t/how-can-we-run-task-in-one-tick-in-unreal/2509995)

<div class="topic-metadata">

**Author:** [@ROCKY.CHOI](https://forums.unrealengine.com/u/ROCKY.CHOI)\
**Replies:** 3\
**Last updated:** [May 15, 2025, 2:18am UTC](https://forums.unrealengine.com/t/how-can-we-run-task-in-one-tick-in-unreal/2509995 "2025-05-15T02:18:32Z")

</div>

Hello, I am trying to run task in one tick so spamming input issue can be fixed Wondering if there is any way to do it easily. I was thinking to do something like GetAsyncTaskManager()-\>AddToInQueue(Task) or somethi…

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

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