# C++

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

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

**Page:** 26

---

## [Metahuman 4K textures shows as 2K UE 5.6](https://forums.unrealengine.com/t/metahuman-4k-textures-shows-as-2k-ue-5-6/2553268)

<div class="topic-metadata">

**Author:** [@Cruise\_Peach1](https://forums.unrealengine.com/u/Cruise_Peach1)\
**Replies:** 3\
**Last updated:** [September 13, 2025, 4:32pm UTC](https://forums.unrealengine.com/t/metahuman-4k-textures-shows-as-2k-ue-5-6/2553268 "2025-09-13T16:32:20Z")

</div>

In Unreal Engine 5.6, I created a Metahuman with 4K textures, but in the Content Browser the textures appear as 2K. What could be the problem?

---

## [Problem with destroying an actor spawned,attached](https://forums.unrealengine.com/t/problem-with-destroying-an-actor-spawned-attached/2655746)

<div class="topic-metadata">

**Author:** [@VeryClumsySloth](https://forums.unrealengine.com/u/VeryClumsySloth)\
**Replies:** 8\
**Last updated:** [September 12, 2025, 7:36pm UTC](https://forums.unrealengine.com/t/problem-with-destroying-an-actor-spawned-attached/2655746 "2025-09-12T19:36:00Z")

</div>

Hi, I’m trying to find a way to delete gun attached to character. I’ve already searched for solution checking similar topics. The actor(weapon) is spawned and attached to character shoulder. void APlayerCharacter::S…

---

## [Getting all the actors in a Level Streaming Dynamic Instance - Pocket Worlds](https://forums.unrealengine.com/t/getting-all-the-actors-in-a-level-streaming-dynamic-instance-pocket-worlds/2655695)

<div class="topic-metadata">

**Author:** [@Portine](https://forums.unrealengine.com/u/Portine)\
**Replies:** 2\
**Last updated:** [September 12, 2025, 6:45pm UTC](https://forums.unrealengine.com/t/getting-all-the-actors-in-a-level-streaming-dynamic-instance-pocket-worlds/2655695 "2025-09-12T18:45:01Z")

</div>

So, I’m trying to create a map visualizer using Pocket Worlds plugin from Lyra and trying to get all the actors from the current streaming level, but it keeps only ever returning the actors from Persistent Level, rather …

---

## [get instance components - find item by class returns null in first person template (5.5) even though weapon is attached](https://forums.unrealengine.com/t/get-instance-components-find-item-by-class-returns-null-in-first-person-template-5-5-even-though-weapon-is-attached/2656133)

<div class="topic-metadata">

**Author:** [@Ram07](https://forums.unrealengine.com/u/Ram07)\
**Replies:** 0\
**Last updated:** [September 12, 2025, 6:05pm UTC](https://forums.unrealengine.com/t/get-instance-components-find-item-by-class-returns-null-in-first-person-template-5-5-even-though-weapon-is-attached/2656133 "2025-09-12T18:05:03Z")

</div>

Hi, i am using unreal engine 5.5 version first person template project. weapon is attached when we pass through the weapon actor. i wanted to make multiple weapons like this - like, when i take first weapon, its attachin…

---

## [why EnhancedInputCompoent Trigger type was Wrong in c++](https://forums.unrealengine.com/t/why-enhancedinputcompoent-trigger-type-was-wrong-in-c/2656102)

<div class="topic-metadata">

**Author:** [@798208](https://forums.unrealengine.com/u/798208)\
**Replies:** 1\
**Last updated:** [September 12, 2025, 4:19pm UTC](https://forums.unrealengine.com/t/why-enhancedinputcompoent-trigger-type-was-wrong-in-c/2656102 "2025-09-12T16:19:47Z")

</div>

Look this Picture i really bind Started And Completed but When I start game and debug this ,I find that the InputInstance should be Stared but it’s Trigger and Completed is right. Why.I need help.

---

## [Toggle bShowMouseCursor (or SetShowMouseCursor) at runtime](https://forums.unrealengine.com/t/toggle-bshowmousecursor-or-setshowmousecursor-at-runtime/2655528)

<div class="topic-metadata">

**Author:** [@DarkFeenix](https://forums.unrealengine.com/u/DarkFeenix)\
**Replies:** 4\
**Last updated:** [September 11, 2025, 8:48pm UTC](https://forums.unrealengine.com/t/toggle-bshowmousecursor-or-setshowmousecursor-at-runtime/2655528 "2025-09-11T20:48:07Z")

</div>

Hello, everyone! I’m working on a UE v5.3.2 C++ & Blueprint project (mostly the former). I’m currently experiencing some issues with the UI. The worst of it all is the function SetShowMouseCursor or, in general, the wa…

---

## [Widgets being rendered out of order?](https://forums.unrealengine.com/t/widgets-being-rendered-out-of-order/669687)

<div class="topic-metadata">

**Author:** [@Samathan](https://forums.unrealengine.com/u/Samathan)\
**Replies:** 4\
**Last updated:** [September 11, 2025, 8:09pm UTC](https://forums.unrealengine.com/t/widgets-being-rendered-out-of-order/669687 "2025-09-11T20:09:34Z")

</div>

I have a widget blueprint that is supposed to be placed on top of everything else. But for some reason, there is one text block widget (with completely default settings) that is still rendering on top of it. This is all…

---

## [AI won’t use auto-generated NavLinks when Area Class is set to custom Nav Area](https://forums.unrealengine.com/t/ai-won-t-use-auto-generated-navlinks-when-area-class-is-set-to-custom-nav-area/2655797)

<div class="topic-metadata">

**Author:** [@awesome\_cook1](https://forums.unrealengine.com/u/awesome_cook1)\
**Replies:** 0\
**Last updated:** [September 11, 2025, 5:47pm UTC](https://forums.unrealengine.com/t/ai-won-t-use-auto-generated-navlinks-when-area-class-is-set-to-custom-nav-area/2655797 "2025-09-11T17:47:39Z")

</div>

I’m running into an issue with auto-generated NavLinks from the Recast NavMesh. I have auto-generated nav links enabled in my RecastNavMesh. For the Up direction, I’ve assigned my custom NavArea\_Climbing (subclass …

---

## [Request to Unlock Forum Access – Unreal Engine Development ](https://forums.unrealengine.com/t/request-to-unlock-forum-access-unreal-engine-development/2655766)

<div class="topic-metadata">

**Author:** [@anxuunhun](https://forums.unrealengine.com/u/anxuunhun)\
**Replies:** 0\
**Last updated:** [September 11, 2025, 4:47pm UTC](https://forums.unrealengine.com/t/request-to-unlock-forum-access-unreal-engine-development/2655766 "2025-09-11T16:47:15Z")

</div>

Hello Unreal Engine Moderators, My name is Mr.Dev!, and I have recently started working more seriously with Unreal Engine to create interactive projects. I am fascinated by how the engine combines Blueprints, C++ progra…

---

## [Custom Viewmodes](https://forums.unrealengine.com/t/custom-viewmodes/358592)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_8e0f1534](https://forums.unrealengine.com/u/anonymous_user_8e0f1534)\
**Replies:** 3\
**Last updated:** [September 11, 2025, 3:36am UTC](https://forums.unrealengine.com/t/custom-viewmodes/358592 "2025-09-11T03:36:40Z")

</div>

Hi there, We need to do a few custom visualizers to validate PBR Values for metal and dielectric surfaces. It seems there are a handful of viewport clients and i’m wondering about a few things: Is there a simpler appr…

---

## [PIE test failure due to GC issue after upgrade from 5.5 to 5.6(GC flips the internal flag on garbage object instead of clean it up](https://forums.unrealengine.com/t/pie-test-failure-due-to-gc-issue-after-upgrade-from-5-5-to-5-6-gc-flips-the-internal-flag-on-garbage-object-instead-of-clean-it-up/2654930)

<div class="topic-metadata">

**Author:** [@OxOVy](https://forums.unrealengine.com/u/OxOVy)\
**Replies:** 7\
**Last updated:** [September 10, 2025, 5:12pm UTC](https://forums.unrealengine.com/t/pie-test-failure-due-to-gc-issue-after-upgrade-from-5-5-to-5-6-gc-flips-the-internal-flag-on-garbage-object-instead-of-clean-it-up/2654930 "2025-09-10T17:12:35Z")

</div>

Hi all, I am running into an issue with the automation test Project.Maps.PIE after moving from 5.5 to 5.6. The test is pretty simple, it loads the map, start PIE, wait a bit, stop PIE. When the PIE is ending, it went …

---

## [Unable to open the source file.](https://forums.unrealengine.com/t/unable-to-open-the-source-file/2655262)

<div class="topic-metadata">

**Author:** [@JogsLeech\_Boys](https://forums.unrealengine.com/u/JogsLeech_Boys)\
**Replies:** 2\
**Last updated:** [September 10, 2025, 10:26am UTC](https://forums.unrealengine.com/t/unable-to-open-the-source-file/2655262 "2025-09-10T10:26:03Z")

</div>

I am currently facing a problem. I want to use the following .h files: include “EditorUtilitySubsystem.h” include “EditorUtilityWidgetBlueprint.h” To do this, I added “Blutility” in the corresponding .cs dependency …

---

## [Gameplay Ability System + Turn Based](https://forums.unrealengine.com/t/gameplay-ability-system-turn-based/126620)

<div class="topic-metadata">

**Author:** [@Commander](https://forums.unrealengine.com/u/Commander)\
**Replies:** 8\
**Last updated:** [September 10, 2025, 2:40am UTC](https://forums.unrealengine.com/t/gameplay-ability-system-turn-based/126620 "2025-09-10T02:40:07Z")

</div>

Hi all, I’ve been looking into the GAS and it looks amazing. The game I’m working on is a traditional CRPG with turn-based combat so there are a lot of skills and status effects etc that would benefit from a system like…

---

## [Unreal Engine compilation error, MSB307, code 8](https://forums.unrealengine.com/t/unreal-engine-compilation-error-msb307-code-8/2655011)

<div class="topic-metadata">

**Author:** [@JogsLeech\_Boys](https://forums.unrealengine.com/u/JogsLeech_Boys)\
**Replies:** 2\
**Last updated:** [September 10, 2025, 2:36am UTC](https://forums.unrealengine.com/t/unreal-engine-compilation-error-msb307-code-8/2655011 "2025-09-10T02:36:10Z")

</div>

I encountered the following error message while compiling in C++: The Command ““C:\\Program Files\\Epic Games\\UE\_5.5\\Engine\\Build\\BatchFiles\\Build.bat” PluginExperimentEditor Win64 Development -Project=“E:\\Temporarily\_Proj…

---

## [How to Check Multiple Gameplay Tags Efficiently?](https://forums.unrealengine.com/t/how-to-check-multiple-gameplay-tags-efficiently/2654953)

<div class="topic-metadata">

**Author:** [@Annxuuicn](https://forums.unrealengine.com/u/Annxuuicn)\
**Replies:** 1\
**Last updated:** [September 9, 2025, 5:56pm UTC](https://forums.unrealengine.com/t/how-to-check-multiple-gameplay-tags-efficiently/2654953 "2025-09-09T17:56:48Z")

</div>

Hi everyone, I’m currently experimenting with Gameplay Tags in Unreal Engine and ran into a question I couldn’t solve on my own. What I’m trying to do: I want to check if an Actor has several specific tags (for exampl…

---

## [Fixing Two Build Errors in Unreal Engine 4.27.2 on Windows 10 ](https://forums.unrealengine.com/t/fixing-two-build-errors-in-unreal-engine-4-27-2-on-windows-10/2655147)

<div class="topic-metadata">

**Author:** [@79b12e0539a9498897113533cbf9bae0](https://forums.unrealengine.com/u/79b12e0539a9498897113533cbf9bae0)\
**Replies:** 0\
**Last updated:** [September 9, 2025, 4:39pm UTC](https://forums.unrealengine.com/t/fixing-two-build-errors-in-unreal-engine-4-27-2-on-windows-10/2655147 "2025-09-09T16:39:59Z")

</div>

Error ‘\_\_cpp\_noexcept\_function\_type’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif’ and ‘\_NOEXCEPT\_TYPES\_SUPPORTED’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif’ …

---

## [Plugin dependency found when game is packaged but not when building and launching in VSCode ](https://forums.unrealengine.com/t/plugin-dependency-found-when-game-is-packaged-but-not-when-building-and-launching-in-vscode/2655143)

<div class="topic-metadata">

**Author:** [@timski\_hii](https://forums.unrealengine.com/u/timski_hii)\
**Replies:** 0\
**Last updated:** [September 9, 2025, 4:18pm UTC](https://forums.unrealengine.com/t/plugin-dependency-found-when-game-is-packaged-but-not-when-building-and-launching-in-vscode/2655143 "2025-09-09T16:18:30Z")

</div>

I have developed most of my project in Windows and I am trying to run it on Linux and having some issues. To figure out exactly what is going wrong I am trying to run the game attached to VSCode. My main issue is when I…

---

## [C++ Build Failed; Fresh New Project.](https://forums.unrealengine.com/t/c-build-failed-fresh-new-project/729594)

<div class="topic-metadata">

**Author:** [@Freequency](https://forums.unrealengine.com/u/Freequency)\
**Replies:** 6\
**Last updated:** [September 9, 2025, 1:11pm UTC](https://forums.unrealengine.com/t/c-build-failed-fresh-new-project/729594 "2025-09-09T13:11:26Z")

</div>

Hello! First time posting on here so if I’m not in the right place to ask, I apologized… Currently experience FAILED Building when starting a new C++ Project. I have recently build Unreal Engine from source and was able…

---

## [Unreal Engine 5.6.1 fails to compile after updating Visual Studio Community to 17.14.13](https://forums.unrealengine.com/t/unreal-engine-5-6-1-fails-to-compile-after-updating-visual-studio-community-to-17-14-13/2655028)

<div class="topic-metadata">

**Author:** [@AmazeJin](https://forums.unrealengine.com/u/AmazeJin)\
**Replies:** 0\
**Last updated:** [September 9, 2025, 9:11am UTC](https://forums.unrealengine.com/t/unreal-engine-5-6-1-fails-to-compile-after-updating-visual-studio-community-to-17-14-13/2655028 "2025-09-09T09:11:13Z")

</div>

Everything was compiling fine with the previous version of Visual Studio. However, after I updated to the latest version, 17.14.13, it seems to be causing a conflict with ImfPixelType.h. Does anyone know how to fix this…

---

## [Spawning with c++ causes a ton of lag ](https://forums.unrealengine.com/t/spawning-with-c-causes-a-ton-of-lag/2653714)

<div class="topic-metadata">

**Author:** [@OH\_NO\_OH\_NONO](https://forums.unrealengine.com/u/OH_NO_OH_NONO)\
**Replies:** 3\
**Last updated:** [September 8, 2025, 10:56pm UTC](https://forums.unrealengine.com/t/spawning-with-c-causes-a-ton-of-lag/2653714 "2025-09-08T22:56:11Z")

</div>

Hi, I have a game where I spawn in a bunch of actors in specific places (based on a changing database so I can’t put them in manually) on begin play. I have been using some BP scripts to do this but I wanted to switch t…

---

## [FName + FName Error](https://forums.unrealengine.com/t/fname-fname-error/272139)

<div class="topic-metadata">

**Author:** [@MarcusRivers](https://forums.unrealengine.com/u/MarcusRivers)\
**Replies:** 7\
**Last updated:** [September 8, 2025, 9:22pm UTC](https://forums.unrealengine.com/t/fname-fname-error/272139 "2025-09-08T21:22:39Z")

</div>

FName LEV\_Mode = "\_PLAY\_"; int32 LEV\_Current = 10; FName LevelJump = "LEV\_" + LEV\_Current; // OK FName LevelJump = "LEV" + LEV\_Mode + LEV\_Current // ERROR! UGameplayStatics::OpenLevel(GetWorld(), LevelJump); How to …

---

## [I got a problem with exporting a project ](https://forums.unrealengine.com/t/i-got-a-problem-with-exporting-a-project/2652572)

<div class="topic-metadata">

**Author:** [@Pigeon10492](https://forums.unrealengine.com/u/Pigeon10492)\
**Replies:** 8\
**Last updated:** [September 8, 2025, 4:27pm UTC](https://forums.unrealengine.com/t/i-got-a-problem-with-exporting-a-project/2652572 "2025-09-08T16:27:57Z")

</div>

Hi, i have got a problem with my project: i tried everything and i can’t export it the prompt says: UATHelper: Packaging (Windows): \*\*\*\*\*\*\*\*\*\* BUILD COMMAND STARTED \*\*\*\*\*\*\*\*\*\* UATHelper: Packaging (Windows): Running: C:…

---

## [JSON  . USTRUCT  cannot create valid variable name from json key eg en-GB ](https://forums.unrealengine.com/t/json-ustruct-cannot-create-valid-variable-name-from-json-key-eg-en-gb/2654821)

<div class="topic-metadata">

**Author:** [@Andrew.Seed](https://forums.unrealengine.com/u/Andrew.Seed)\
**Replies:** 0\
**Last updated:** [September 8, 2025, 3:14pm UTC](https://forums.unrealengine.com/t/json-ustruct-cannot-create-valid-variable-name-from-json-key-eg-en-gb/2654821 "2025-09-08T15:14:34Z")

</div>

I am trying to parse a json file ( will re also writing out for an external program ) "name": { "ar-AE": "lang1", "da-DK": "lang2" Now I can’t use the tags directly as they have an invalid character in i…

---

## [Restricting UDataTable UPROPERTY selector in editor to data tables with specific row structs](https://forums.unrealengine.com/t/restricting-udatatable-uproperty-selector-in-editor-to-data-tables-with-specific-row-structs/121808)

<div class="topic-metadata">

**Author:** [@Doug\_Richardson](https://forums.unrealengine.com/u/Doug_Richardson)\
**Replies:** 14\
**Last updated:** [September 8, 2025, 4:01am UTC](https://forums.unrealengine.com/t/restricting-udatatable-uproperty-selector-in-editor-to-data-tables-with-specific-row-structs/121808 "2025-09-08T04:01:25Z")

</div>

I’m using several data tables with a various row structs. I have a UActorComponent sub-class that has UPROPERTY UDataTable\* member variables for each of the different tables. One annoyance is that when picking the data …

---

## [Generated texture is always created as vertical lines](https://forums.unrealengine.com/t/generated-texture-is-always-created-as-vertical-lines/2654362)

<div class="topic-metadata">

**Author:** [@ddbrown30](https://forums.unrealengine.com/u/ddbrown30)\
**Replies:** 11\
**Last updated:** [September 7, 2025, 6:30pm UTC](https://forums.unrealengine.com/t/generated-texture-is-always-created-as-vertical-lines/2654362 "2025-09-07T18:30:57Z")

</div>

I’m attempting to generate textures in C++ and no matter what I do, I can’t get it to not generate vertical bars. I’ve even tried things like setting the first pixel to 0,0,0, the second to 1,1,1, etc., and all that does…

---

## [Make Installed Build Win64命令关闭后再次运行命令需要从头重新编译 ](https://forums.unrealengine.com/t/make-installed-build-win64/2654512)

<div class="topic-metadata">

**Author:** [@b113e6757f904004803620cbfd030cc0](https://forums.unrealengine.com/u/b113e6757f904004803620cbfd030cc0)\
**Replies:** 0\
**Last updated:** [September 7, 2025, 2:59pm UTC](https://forums.unrealengine.com/t/make-installed-build-win64/2654512 "2025-09-07T14:59:11Z")

</div>

如题，使用UE官方文档里列出的的构建命令，我因为错误关闭了cmd窗口导致生成终止，在此之前已经编译好了UnrealEditor，我很不解为什么重新运行这个命令就要重新编译？已经编译完的应该报Target is up to date而不是完整地重新全编译一遍。。。。。 使用命令行如下 D:/UE\_5.4.4\_Source/Engine/Build/BatchFiles/RunUAT.bat BuildGraph -script=Eng…

---

## [How to enable bEnableAsyncInitBody ?](https://forums.unrealengine.com/t/how-to-enable-benableasyncinitbody/2506818)

<div class="topic-metadata">

**Author:** [@pastalapate](https://forums.unrealengine.com/u/pastalapate)\
**Replies:** 2\
**Last updated:** [September 7, 2025, 1:52am UTC](https://forums.unrealengine.com/t/how-to-enable-benableasyncinitbody/2506818 "2025-09-07T01:52:27Z")

</div>

Hello I am working with dynamic meshes and procedural meshes in async thread. But adding a lot of triangles creates a big fps drop. With procedural mesh the simple thing of CreatingMeshSection even with few triangles cre…

---

## [Cannot open source file "generated.h"](https://forums.unrealengine.com/t/cannot-open-source-file-generated-h/447777)

<div class="topic-metadata">

**Author:** [@Bazzy2000](https://forums.unrealengine.com/u/Bazzy2000)\
**Replies:** 15\
**Last updated:** [September 6, 2025, 1:31pm UTC](https://forums.unrealengine.com/t/cannot-open-source-file-generated-h/447777 "2025-09-06T13:31:27Z")

</div>

I can’t include X.generated.h header file in my project. For some reason when I try to include the header file I get "Cannot open source file “X\_generated.h”. I’ve tired to generate Visual Studio project files, but didn’…

---

## [\[UE5.3\] Build failed – looking for help? ](https://forums.unrealengine.com/t/ue5-3-build-failed-looking-for-help/2653939)

<div class="topic-metadata">

**Author:** [@Annxuuicn](https://forums.unrealengine.com/u/Annxuuicn)\
**Replies:** 1\
**Last updated:** [September 5, 2025, 3:48pm UTC](https://forums.unrealengine.com/t/ue5-3-build-failed-looking-for-help/2653939 "2025-09-05T15:48:38Z")

</div>

Hello everyone I am new to Unreal Engine 5.3 and recently started experimenting with a small project on Windows. When I try to build my project, I get an error message (screenshot attached). I already tried deleting t…

---

## [How to avoid hardcode? (UPrimaryDataAsset)](https://forums.unrealengine.com/t/how-to-avoid-hardcode-uprimarydataasset/2651281)

<div class="topic-metadata">

**Author:** [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Replies:** 22\
**Last updated:** [September 5, 2025, 1:37am UTC](https://forums.unrealengine.com/t/how-to-avoid-hardcode-uprimarydataasset/2651281 "2025-09-05T01:37:49Z")

</div>

I have a critical point in my code and I don’t like it. It’s a horrible static hardcode full of literals in my Master Data Asset. But without it is impossible (at least with my knowledge) to get an instance of the Mast…

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

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