# C++

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

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

**Page:** 29

---

## [Media Player Scrubbing lag](https://forums.unrealengine.com/t/media-player-scrubbing-lag/2640540)

<div class="topic-metadata">

**Author:** [@Glek39](https://forums.unrealengine.com/u/Glek39)\
**Replies:** 0\
**Last updated:** [August 13, 2025, 3:37pm UTC](https://forums.unrealengine.com/t/media-player-scrubbing-lag/2640540 "2025-08-13T15:37:04Z")

</div>

I am trying to make a video editor using Media Player and Electra plugin. Electra Protron decoder is very fast, very cool, but there are a couple of issues i encountered: 1. For a video editor i really need scrubb…

---

## [Multiple integer checks not working](https://forums.unrealengine.com/t/multiple-integer-checks-not-working/2640422)

<div class="topic-metadata">

**Author:** [@Phteven28](https://forums.unrealengine.com/u/Phteven28)\
**Replies:** 5\
**Last updated:** [August 13, 2025, 4:41pm UTC](https://forums.unrealengine.com/t/multiple-integer-checks-not-working/2640422 "2025-08-13T16:41:02Z")

</div>

Hey, I have an integer index that I’m incrementing and performing checks based off the value of the int. if (Index == 1) { } if (Index == 2) { } etc. The index is incrementing properly and each check works by its…

---

## [ \[TUTORIAL\] How We Built a Stylized Water Shader in Unreal Engine 5 – No Plugins Needed ](https://forums.unrealengine.com/t/tutorial-how-we-built-a-stylized-water-shader-in-unreal-engine-5-no-plugins-needed/2622477)

<div class="topic-metadata">

**Author:** [@Lenvan-Hub](https://forums.unrealengine.com/u/Lenvan-Hub)\
**Replies:** 1\
**Last updated:** [August 13, 2025, 10:55am UTC](https://forums.unrealengine.com/t/tutorial-how-we-built-a-stylized-water-shader-in-unreal-engine-5-no-plugins-needed/2622477 "2025-08-13T10:55:21Z")

</div>

Hey Unreal Devs! :waving\_hand: We wanted to share how we created a stylized, dynamic water shader in Unreal Engine 5 using just the built-in Material Editor — no plugins, no Niagara (yet), just good ol’ math and nodes. …

---

## [What is Asset Registry used for?](https://forums.unrealengine.com/t/what-is-asset-registry-used-for/444142)

<div class="topic-metadata">

**Author:** [@TUGRUL\_SERT](https://forums.unrealengine.com/u/TUGRUL_SERT)\
**Replies:** 6\
**Last updated:** [August 12, 2025, 4:05pm UTC](https://forums.unrealengine.com/t/what-is-asset-registry-used-for/444142 "2025-08-12T16:05:20Z")

</div>

What is the difference between “LoadObject, FindObject” and “Asset Registry”? My english is not very well and I have difficulty to understand AssetRegistry. Could you give an example in C++? In which situations do we n…

---

## [Best Practices for Handling Large Open World Maps in Unreal Engine? ](https://forums.unrealengine.com/t/best-practices-for-handling-large-open-world-maps-in-unreal-engine/2638140)

<div class="topic-metadata">

**Author:** [@DavidLoman\_Hub](https://forums.unrealengine.com/u/DavidLoman_Hub)\
**Replies:** 1\
**Last updated:** [August 11, 2025, 6:30pm UTC](https://forums.unrealengine.com/t/best-practices-for-handling-large-open-world-maps-in-unreal-engine/2638140 "2025-08-11T18:30:30Z")

</div>

Hi everyone, I’m building a large open world map in Unreal Engine 5 and I’m starting to run into some performance and workflow challenges. The world is divided into multiple regions, and I’m using World Partition to man…

---

## [How to fix mouse behaviour...is UE bugged?](https://forums.unrealengine.com/t/how-to-fix-mouse-behaviour-is-ue-bugged/2635858)

<div class="topic-metadata">

**Author:** [@JontomXire](https://forums.unrealengine.com/u/JontomXire)\
**Replies:** 3\
**Last updated:** [August 11, 2025, 3:39pm UTC](https://forums.unrealengine.com/t/how-to-fix-mouse-behaviour-is-ue-bugged/2635858 "2025-08-11T15:39:25Z")

</div>

What I want is this: The mouse cursor is locked to the game window. When right mouse button is held down: The mouse cursor is hidden Mouse movement affects camera angle. When right mouse button is not held down: Th…

---

## [Swimming in Water plugin without physic volumes](https://forums.unrealengine.com/t/swimming-in-water-plugin-without-physic-volumes/2637915)

<div class="topic-metadata">

**Author:** [@boolangery](https://forums.unrealengine.com/u/boolangery)\
**Replies:** 0\
**Last updated:** [August 11, 2025, 1:34pm UTC](https://forums.unrealengine.com/t/swimming-in-water-plugin-without-physic-volumes/2637915 "2025-08-11T13:34:20Z")

</div>

Hello, I’m using the Water plugin (water ocean body with waves), and I’m trying to figure out how to make my character switch to swimming mode without having to add Physics Volumes with IsWater everywhere. So far I over…

---

## [After I take light build everthing messed up why?](https://forums.unrealengine.com/t/after-i-take-light-build-everthing-messed-up-why/2637873)

<div class="topic-metadata">

**Author:** [@MertErzene](https://forums.unrealengine.com/u/MertErzene)\
**Replies:** 0\
**Last updated:** [August 11, 2025, 1:01pm UTC](https://forums.unrealengine.com/t/after-i-take-light-build-everthing-messed-up-why/2637873 "2025-08-11T13:01:15Z")

</div>

---

## [How can I improve foliage performance without losing too much visual quality in UE5? ](https://forums.unrealengine.com/t/how-can-i-improve-foliage-performance-without-losing-too-much-visual-quality-in-ue5/2635879)

<div class="topic-metadata">

**Author:** [@ZayyDennHub](https://forums.unrealengine.com/u/ZayyDennHub)\
**Replies:** 1\
**Last updated:** [August 9, 2025, 10:22pm UTC](https://forums.unrealengine.com/t/how-can-i-improve-foliage-performance-without-losing-too-much-visual-quality-in-ue5/2635879 "2025-08-09T22:22:17Z")

</div>

Hi everyone, I’m working on a forest environment in Unreal Engine 5.3, and I’m having some trouble keeping the frame rate stable. The foliage looks great, but when I add a lot of trees and grass, the performance drops, …

---

## [Best Practices for Lighting Optimization in Unreal Engine 5? ](https://forums.unrealengine.com/t/best-practices-for-lighting-optimization-in-unreal-engine-5/2635394)

<div class="topic-metadata">

**Author:** [@AllibabuMa](https://forums.unrealengine.com/u/AllibabuMa)\
**Replies:** 1\
**Last updated:** [August 9, 2025, 4:18pm UTC](https://forums.unrealengine.com/t/best-practices-for-lighting-optimization-in-unreal-engine-5/2635394 "2025-08-09T16:18:47Z")

</div>

Hi everyone, I’m currently working on a small project in Unreal Engine 5, and I’ve been experimenting with different lighting setups. My goal is to get a good balance between visual quality and performance, especially f…

---

## [Link error on FSlateApplication::Get().GetPlatformApplication() ?](https://forums.unrealengine.com/t/link-error-on-fslateapplication-get-getplatformapplication/2502517)

<div class="topic-metadata">

**Author:** [@clovett](https://forums.unrealengine.com/u/clovett)\
**Replies:** 2\
**Last updated:** [August 9, 2025, 4:12pm UTC](https://forums.unrealengine.com/t/link-error-on-fslateapplication-get-getplatformapplication/2502517 "2025-08-09T16:12:27Z")

</div>

I see this code in other forum threads: TSharedPtr\<GenericApplication\> app = FSlateApplication::Get().GetPlatformApplication(); But when I try and do this (on windows) I get a link error? 2\>WindowActivation.cpp.obj :…

---

## [How do you set up World Partition for a small open-world project in UE5? ](https://forums.unrealengine.com/t/how-do-you-set-up-world-partition-for-a-small-open-world-project-in-ue5/2635866)

<div class="topic-metadata">

**Author:** [@Aloibubo](https://forums.unrealengine.com/u/Aloibubo)\
**Replies:** 0\
**Last updated:** [August 9, 2025, 1:54pm UTC](https://forums.unrealengine.com/t/how-do-you-set-up-world-partition-for-a-small-open-world-project-in-ue5/2635866 "2025-08-09T13:54:10Z")

</div>

Hi everyone, I’m building a small open-world map in Unreal Engine 5.3, and I want to make sure my World Partition settings are set up correctly for good performance. My map isn’t huge, but it has a mix of terrain, folia…

---

## [5.6 from source complile, only 2 errors left to figure out, think they're related](https://forums.unrealengine.com/t/5-6-from-source-complile-only-2-errors-left-to-figure-out-think-theyre-related/2635264)

<div class="topic-metadata">

**Author:** [@ChristopherRaven](https://forums.unrealengine.com/u/ChristopherRaven)\
**Replies:** 0\
**Last updated:** [August 8, 2025, 9:42pm UTC](https://forums.unrealengine.com/t/5-6-from-source-complile-only-2-errors-left-to-figure-out-think-theyre-related/2635264 "2025-08-08T21:42:00Z")

</div>

Here’s the first one, Horde has already been installed and configured, as well as all optional components. 19\>Module.UbaCore.cpp.obj : error LNK2019: unresolved external symbol "void \_\_cdecl uba::UbaAssert(wchar\_t const…

---

## [Warning when create Actor from Template In Level](https://forums.unrealengine.com/t/warning-when-create-actor-from-template-in-level/2634455)

<div class="topic-metadata">

**Author:** [@1934351472](https://forums.unrealengine.com/u/1934351472)\
**Replies:** 0\
**Last updated:** [August 8, 2025, 7:19am UTC](https://forums.unrealengine.com/t/warning-when-create-actor-from-template-in-level/2634455 "2025-08-08T07:19:38Z")

</div>

When create a Actor From Template in level ,the Template is a BP\_Actor, with PrimitiveComponent created in BP attached to RootComponent, and the RootComponent is created by c++,Warning occurs Gamethread hitch waiting fo…

---

## [ParallelFor Optimization](https://forums.unrealengine.com/t/parallelfor-optimization/1680779)

<div class="topic-metadata">

**Author:** [@Guy\_S\_Cool](https://forums.unrealengine.com/u/Guy_S_Cool)\
**Replies:** 4\
**Last updated:** [August 8, 2025, 2:01am UTC](https://forums.unrealengine.com/t/parallelfor-optimization/1680779 "2025-08-08T02:01:57Z")

</div>

Hello all! I hope you all are doing well. I have some optimization questions I was hoping I could get answered, particularly about ParallelFor. Right now, I am seeing some strange behavior where ParallelFor seems to be d…

---

## [Ultra-realistic 8k metahuman rendering(this is a job offer) ](https://forums.unrealengine.com/t/ultra-realistic-8k-metahuman-rendering-this-is-a-job-offer/2628460)

<div class="topic-metadata">

**Author:** [@metronomm](https://forums.unrealengine.com/u/metronomm)\
**Replies:** 1\
**Last updated:** [August 7, 2025, 9:58pm UTC](https://forums.unrealengine.com/t/ultra-realistic-8k-metahuman-rendering-this-is-a-job-offer/2628460 "2025-08-07T21:58:16Z")

</div>

Important: In the first stage, the character will be created only from the shoulders up (head, neck, shoulders). Full body development may be considered in later stages, but this project’s scope is strictly upper body …

---

## [Error During Changing Gameplay Camera to Spring Arm](https://forums.unrealengine.com/t/error-during-changing-gameplay-camera-to-spring-arm/2633820)

<div class="topic-metadata">

**Author:** [@Nerd\_AK](https://forums.unrealengine.com/u/Nerd_AK)\
**Replies:** 1\
**Last updated:** [August 7, 2025, 6:21pm UTC](https://forums.unrealengine.com/t/error-during-changing-gameplay-camera-to-spring-arm/2633820 "2025-08-07T18:21:14Z")

</div>

Hi! I wanted to change the gameplay camera to normal camera in which i can set spring arm length. So i followed this video: It isnt letting me add the link of the video i uploaded (video is about how it lo…

---

## [Asset generation in ModifyCook ](https://forums.unrealengine.com/t/asset-generation-in-modifycook/2633599)

<div class="topic-metadata">

**Author:** [@JohanTunkrans](https://forums.unrealengine.com/u/JohanTunkrans)\
**Replies:** 0\
**Last updated:** [August 7, 2025, 3:21pm UTC](https://forums.unrealengine.com/t/asset-generation-in-modifycook/2633599 "2025-08-07T15:21:03Z")

</div>

I want to generate an asset every time we cook the game, that stores an array of all different blueprints of a certain type. I do not want the asset to appear in the game repository, only as a cooked output. I tried over…

---

## [Finally Took the Leap into Unreal Engine – Some Thoughts & Questions ](https://forums.unrealengine.com/t/finally-took-the-leap-into-unreal-engine-some-thoughts-questions/2633542)

<div class="topic-metadata">

**Author:** [@BBtrangHub99](https://forums.unrealengine.com/u/BBtrangHub99)\
**Replies:** 1\
**Last updated:** [August 7, 2025, 3:08pm UTC](https://forums.unrealengine.com/t/finally-took-the-leap-into-unreal-engine-some-thoughts-questions/2633542 "2025-08-07T15:08:59Z")

</div>

Hey folks, After months of watching Unreal Engine tutorials at 2AM and lurking in this forum, I finally decided to get my hands dirty and start building something with UE5. I’ve mostly been messing around with the basic…

---

## [PCG Graph don't generate in runtime or uses old graph parameter ](https://forums.unrealengine.com/t/pcg-graph-dont-generate-in-runtime-or-uses-old-graph-parameter/2632322)

<div class="topic-metadata">

**Author:** [@AlyonaPetrova](https://forums.unrealengine.com/u/AlyonaPetrova)\
**Replies:** 1\
**Last updated:** [August 7, 2025, 10:58am UTC](https://forums.unrealengine.com/t/pcg-graph-dont-generate-in-runtime-or-uses-old-graph-parameter/2632322 "2025-08-07T10:58:35Z")

</div>

Hello! I need to generate pcg on start the game depends on values in some config. For example, I want to set density value and generate points with this value. Here the graph scheme. In my C++ class I get values fro…

---

## [Struggling with Lighting Optimization in Large Open Worlds – Any Tips? ](https://forums.unrealengine.com/t/struggling-with-lighting-optimization-in-large-open-worlds-any-tips/2632255)

<div class="topic-metadata">

**Author:** [@Bucumun99](https://forums.unrealengine.com/u/Bucumun99)\
**Replies:** 0\
**Last updated:** [August 6, 2025, 3:41pm UTC](https://forums.unrealengine.com/t/struggling-with-lighting-optimization-in-large-open-worlds-any-tips/2632255 "2025-08-06T15:41:54Z")

</div>

Hey everyone, I’ve been working on a large open-world project using UE5.4 and while most of the core mechanics are coming together, I’m running into serious issues with lighting performance – especially during day/night…

---

## [Streaming PCG data ](https://forums.unrealengine.com/t/streaming-pcg-data/2632123)

<div class="topic-metadata">

**Author:** [@WoozyWheat](https://forums.unrealengine.com/u/WoozyWheat)\
**Replies:** 0\
**Last updated:** [August 6, 2025, 1:20pm UTC](https://forums.unrealengine.com/t/streaming-pcg-data/2632123 "2025-08-06T13:20:36Z")

</div>

Hi! I am working on procedurall generation of maps. I already have quite good results and now I want to add support for multiplayer. Let me describe first how more or less my PCG algorithm works: my world is splitted …

---

## [How to Add my Widget to Vertical Box? It keeps failing](https://forums.unrealengine.com/t/how-to-add-my-widget-to-vertical-box-it-keeps-failing/155256)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_d20b47b7](https://forums.unrealengine.com/u/anonymous_user_d20b47b7)\
**Replies:** 2\
**Last updated:** [August 6, 2025, 10:08am UTC](https://forums.unrealengine.com/t/how-to-add-my-widget-to-vertical-box-it-keeps-failing/155256 "2025-08-06T10:08:40Z")

</div>

for (int32 i = 0; i \< 4; i++) { UUIHUDSlotsBar\* UIslotbar = NewObject\<UUIHUDSlotsBar\>(this, UUIHUDSlotsBar::StaticClass()); UIslotbar-\>SetKey(i); SlotsBar-\>AddChildToVerticalBox(UIslotbar ); } I tried to add UUIHUDS…

---

## [Client load level instance causes disconnect](https://forums.unrealengine.com/t/client-load-level-instance-causes-disconnect/92154)

<div class="topic-metadata">

**Author:** [@Iceey](https://forums.unrealengine.com/u/Iceey)\
**Replies:** 8\
**Last updated:** [August 6, 2025, 4:32am UTC](https://forums.unrealengine.com/t/client-load-level-instance-causes-disconnect/92154 "2025-08-06T04:32:27Z")

</div>

I made a clientside level stream for random landscapes that only serve as a background. The problem is that the client loses connection when it loads an instance of a level that server doesn’t have. When the server loads…

---

## [Seeking Tips on Optimizing Niagara Effects for Better Performance in UE5 ](https://forums.unrealengine.com/t/seeking-tips-on-optimizing-niagara-effects-for-better-performance-in-ue5/2631639)

<div class="topic-metadata">

**Author:** [@David\_ZayDen\_Po](https://forums.unrealengine.com/u/David_ZayDen_Po)\
**Replies:** 0\
**Last updated:** [August 6, 2025, 3:15am UTC](https://forums.unrealengine.com/t/seeking-tips-on-optimizing-niagara-effects-for-better-performance-in-ue5/2631639 "2025-08-06T03:15:14Z")

</div>

Hey Unreal community! I’ve been working on a UE5 project and recently dove deep into using Niagara for visual effects. It’s incredibly powerful and fun to use—but I’ve hit a wall when it comes to performance optimizatio…

---

## [C++ Programmatically Create Delegates](https://forums.unrealengine.com/t/c-programmatically-create-delegates/2627993)

<div class="topic-metadata">

**Author:** [@tride9](https://forums.unrealengine.com/u/tride9)\
**Replies:** 2\
**Last updated:** [August 5, 2025, 5:08pm UTC](https://forums.unrealengine.com/t/c-programmatically-create-delegates/2627993 "2025-08-05T17:08:56Z")

</div>

Very trimmed down version of my code below. It compiles but only OnAnyStatChanged shows up in Blueprints and any other that I explicitly define are there. However, I’m wanting to be able to programmatically create deleg…

---

## [Getting Back into Unreal — Seeking Advice on Workflow in UE5.4 ](https://forums.unrealengine.com/t/getting-back-into-unreal-seeking-advice-on-workflow-in-ue5-4/2630467)

<div class="topic-metadata">

**Author:** [@HquyyLab](https://forums.unrealengine.com/u/HquyyLab)\
**Replies:** 1\
**Last updated:** [August 5, 2025, 3:09pm UTC](https://forums.unrealengine.com/t/getting-back-into-unreal-seeking-advice-on-workflow-in-ue5-4/2630467 "2025-08-05T15:09:18Z")

</div>

Hey everyone, I’ve recently gotten back into Unreal Engine after a bit of a break (last serious project I worked on was in UE4.26), and I’m currently exploring UE5.4. Some of the new tools and updates are super exciting…

---

## [在ubuntu22.04上拉取官方UE4.27的docker容器镜像一直被拒绝，此前将github与epick账号关联，且加入组织 ](https://forums.unrealengine.com/t/ubuntu22-04-ue4-27-docker-github-epick/2630999)

<div class="topic-metadata">

**Author:** [@lanaada](https://forums.unrealengine.com/u/lanaada)\
**Replies:** 0\
**Last updated:** [August 5, 2025, 2:53pm UTC](https://forums.unrealengine.com/t/ubuntu22-04-ue4-27-docker-github-epick/2630999 "2025-08-05T14:53:09Z")

</div>

bash:docker pull ghcr.io/epicgames/unreal-engine:dev-4.27 Error response from daemon: Head "https://ghcr.io/v2/epicgames/unreal-engine/manifests/dev-4.27": denied: denied 测试API访问权限 bash:curl -H “Authorization: Bearer …

---

## [ALandscape::RenderWeightmap when pivot is not on the Landscape corner](https://forums.unrealengine.com/t/alandscape-renderweightmap-when-pivot-is-not-on-the-landscape-corner/2629910)

<div class="topic-metadata">

**Author:** [@DerDude16](https://forums.unrealengine.com/u/DerDude16)\
**Replies:** 0\
**Last updated:** [August 4, 2025, 5:51pm UTC](https://forums.unrealengine.com/t/alandscape-renderweightmap-when-pivot-is-not-on-the-landscape-corner/2629910 "2025-08-04T17:51:43Z")

</div>

Hi dear Community. For a city builder game, I need a Landscape system that can be edited at runtime when a building is placed. To my knowledge this is not possible with the standard Landscape since a lot of the editing…

---

## [Share utility across multiple Build.cs files ](https://forums.unrealengine.com/t/share-utility-across-multiple-build-cs-files/2629881)

<div class="topic-metadata">

**Author:** [@raulalbertog](https://forums.unrealengine.com/u/raulalbertog)\
**Replies:** 0\
**Last updated:** [August 4, 2025, 5:18pm UTC](https://forums.unrealengine.com/t/share-utility-across-multiple-build-cs-files/2629881 "2025-08-04T17:18:22Z")

</div>

As the title suggests, I would like to know if it’s possible to reuse a utility function across different Build.cs files. To provide some context, I have a plugin that depends on other 5 modules. Each module has its ow…

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

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