# C++

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

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

**Page:** 15

---

## [Share Your Tips: Best Practices for Optimizing Mobile Games in Unreal Engine! ](https://forums.unrealengine.com/t/share-your-tips-best-practices-for-optimizing-mobile-games-in-unreal-engine/2702097)

<div class="topic-metadata">

**Author:** [@3pattigamespk](https://forums.unrealengine.com/u/3pattigamespk)\
**Replies:** 0\
**Last updated:** [February 25, 2026, 1:10am UTC](https://forums.unrealengine.com/t/share-your-tips-best-practices-for-optimizing-mobile-games-in-unreal-engine/2702097 "2026-02-25T01:10:57Z")

</div>

Hi all! As mobile game development continues to grow, optimizing Unreal Engine projects for performance has become more important than ever — especially for games targeting a wide range of devices. Whether it’s reducing …

---

## [How can I inherit a class from AGameplayCameraActor in C++?](https://forums.unrealengine.com/t/how-can-i-inherit-a-class-from-agameplaycameraactor-in-c/2701925)

<div class="topic-metadata">

**Author:** [@SolidSk](https://forums.unrealengine.com/u/SolidSk)\
**Replies:** 1\
**Last updated:** [February 24, 2026, 1:48pm UTC](https://forums.unrealengine.com/t/how-can-i-inherit-a-class-from-agameplaycameraactor-in-c/2701925 "2026-02-24T13:48:22Z")

</div>

I’m trying to inherit a class from AGameplayCameraActor, but I’m getting the following errors: LNK2001: unresolved external symbol “public: virtual void \_\_cdecl AGameplayCameraActorBase::CalcCamera(float,struct FMinima…

---

## [Long Path enabled, but source code unzip/build still failed.](https://forums.unrealengine.com/t/long-path-enabled-but-source-code-unzip-build-still-failed/2692707)

<div class="topic-metadata">

**Author:** [@Chahorain](https://forums.unrealengine.com/u/Chahorain)\
**Replies:** 3\
**Last updated:** [February 23, 2026, 5:14pm UTC](https://forums.unrealengine.com/t/long-path-enabled-but-source-code-unzip-build-still-failed/2692707 "2026-02-23T17:14:29Z")

</div>

When I use Visual Studio to build source code in win 11, I always fail on a CPP file due to a long path problem. In visual studio it says that cpp file could not be found, but it was there not broken. I already enabled l…

---

## [How do I iterate across a TMap?](https://forums.unrealengine.com/t/how-do-i-iterate-across-a-tmap/2701540)

<div class="topic-metadata">

**Author:** [@JontomXire](https://forums.unrealengine.com/u/JontomXire)\
**Replies:** 3\
**Last updated:** [February 22, 2026, 3:23pm UTC](https://forums.unrealengine.com/t/how-do-i-iterate-across-a-tmap/2701540 "2026-02-22T15:23:17Z")

</div>

This is why you don’t re-invent the wheel. Iterating across a std::map: for (auto it = m\_map.begin(); it != my\_map.end(); ++it) { // it-\>first is the key, it-\>second is the value. } Iterating across a TMap: for (…

---

## [How do I load a blueprint in C++?](https://forums.unrealengine.com/t/how-do-i-load-a-blueprint-in-c/2701390)

<div class="topic-metadata">

**Author:** [@JontomXire](https://forums.unrealengine.com/u/JontomXire)\
**Replies:** 10\
**Last updated:** [February 22, 2026, 3:16pm UTC](https://forums.unrealengine.com/t/how-do-i-load-a-blueprint-in-c/2701390 "2026-02-22T15:16:40Z")

</div>

There are a lot of similar question, I know, but almost all of them revert to having to select the blueprint in the editor as a property of the C++ class. This is not going to work for me. I am trying to write a factory …

---

## [My Super Heroes plugin is not being loaded properly after published on Fab](https://forums.unrealengine.com/t/my-super-heroes-plugin-is-not-being-loaded-properly-after-published-on-fab/2700292)

<div class="topic-metadata">

**Author:** [@HighRender](https://forums.unrealengine.com/u/HighRender)\
**Replies:** 5\
**Last updated:** [February 22, 2026, 2:33pm UTC](https://forums.unrealengine.com/t/my-super-heroes-plugin-is-not-being-loaded-properly-after-published-on-fab/2700292 "2026-02-22T14:33:32Z")

</div>

I recently published my best product ever (Super Heroes plugin), however, the most random issue appeared. After installing the plugin to the engine (any of them) and enabling it, the project crashes or the engine does n…

---

## [Selecting different parts of object system . ](https://forums.unrealengine.com/t/selecting-different-parts-of-object-system/2701415)

<div class="topic-metadata">

**Author:** [@Andra\_235](https://forums.unrealengine.com/u/Andra_235)\
**Replies:** 0\
**Last updated:** [February 21, 2026, 2:20pm UTC](https://forums.unrealengine.com/t/selecting-different-parts-of-object-system/2701415 "2026-02-21T14:20:39Z")

</div>

I have an object ( human bone ) and when widget is pressed every landmark (part of bone) is higlighted green. How to select landmark and get it’s information. Just to mention i merged 4 meshes (human bones) into one mesh…

---

## [Visual Studio project does not list engine include directories](https://forums.unrealengine.com/t/visual-studio-project-does-not-list-engine-include-directories/2410518)

<div class="topic-metadata">

**Author:** [@DavidRainder](https://forums.unrealengine.com/u/DavidRainder)\
**Replies:** 2\
**Last updated:** [February 21, 2026, 1:45am UTC](https://forums.unrealengine.com/t/visual-studio-project-does-not-list-engine-include-directories/2410518 "2026-02-21T01:45:01Z")

</div>

Hello all. I have been searching for a solution for this problem, where generating an Visual Studio solution (by right-clicking on the .uproject) does not fill in the Include Directories for the engine source files. Thi…

---

## [SetActorScale3D behaving out of place when applying 1:1000 and vice versa scale?](https://forums.unrealengine.com/t/setactorscale3d-behaving-out-of-place-when-applying-1-1000-and-vice-versa-scale/2701170)

<div class="topic-metadata">

**Author:** [@xx\_pooya\_xx](https://forums.unrealengine.com/u/xx_pooya_xx)\
**Replies:** 0\
**Last updated:** [February 20, 2026, 11:41am UTC](https://forums.unrealengine.com/t/setactorscale3d-behaving-out-of-place-when-applying-1-1000-and-vice-versa-scale/2701170 "2026-02-20T11:41:12Z")

</div>

So we are making a game for our final project in our school in VR. The concept is: 1:1000 scale change of player and time. I am scaling up to environment to make the player ‘tiny’. For 1 → 1000, I do SetActorScale3D(Ge…

---

## [World Partition does not stream when opening new level](https://forums.unrealengine.com/t/world-partition-does-not-stream-when-opening-new-level/2700740)

<div class="topic-metadata">

**Author:** [@Gameartist3d](https://forums.unrealengine.com/u/Gameartist3d)\
**Replies:** 2\
**Last updated:** [February 19, 2026, 9:53pm UTC](https://forums.unrealengine.com/t/world-partition-does-not-stream-when-opening-new-level/2700740 "2026-02-19T21:53:40Z")

</div>

When loading in a new level that uses World Partition, the Terrain and geometry placed in the level do not stream in, only the the test BSP geometry and the skybox. When I press f8 however, the geometry and terrai…

---

## [C++ Blueprint Equivalent of the Byte Variable?](https://forums.unrealengine.com/t/c-blueprint-equivalent-of-the-byte-variable/2700693)

<div class="topic-metadata">

**Author:** [@jpalmer999](https://forums.unrealengine.com/u/jpalmer999)\
**Replies:** 2\
**Last updated:** [February 19, 2026, 6:21am UTC](https://forums.unrealengine.com/t/c-blueprint-equivalent-of-the-byte-variable/2700693 "2026-02-19T06:21:20Z")

</div>

So I am wanting to use bytes (as you would in a blueprint) for variables that don’t need the extra number size for example: UPROPERTY(BlueprintReadWrite, EditAnywhere, Category = "General|Resources", meta = (ClampMin = …

---

## [\[SOLVED\]LNK2019/2001 errors with Gameplay Tags used across custom modules](https://forums.unrealengine.com/t/solved-lnk2019-2001-errors-with-gameplay-tags-used-across-custom-modules/2520122)

<div class="topic-metadata">

**Author:** [@G1ntokiSakata](https://forums.unrealengine.com/u/G1ntokiSakata)\
**Replies:** 2\
**Last updated:** [February 19, 2026, 6:15am UTC](https://forums.unrealengine.com/t/solved-lnk2019-2001-errors-with-gameplay-tags-used-across-custom-modules/2520122 "2026-02-19T06:15:11Z")

</div>

Update: found solution For LNK2019 In Modules.Build.cs add GameplayTags to the PublicDependencyModuleNames Modules.Build.cs // Copyright Epic Games, Inc. All Rights Reserved. using UnrealBuildTool; public class Modu…

---

## [Building UE 4.27 with VS 2026](https://forums.unrealengine.com/t/building-ue-4-27-with-vs-2026/2700816)

<div class="topic-metadata">

**Author:** [@RVillani](https://forums.unrealengine.com/u/RVillani)\
**Replies:** 2\
**Last updated:** [February 19, 2026, 5:23am UTC](https://forums.unrealengine.com/t/building-ue-4-27-with-vs-2026/2700816 "2026-02-19T05:23:51Z")

</div>

If, like me, you refuse to install an older VS when you have to work on older projects, you might get a bunch of errors from the AutomationTool if you happen to have an MSBuild.exe under this path: C:\\Windows\\Microsoft.…

---

## [Why the Epic Online Service (EOS) OSS access token is not refreshed?](https://forums.unrealengine.com/t/why-the-epic-online-service-eos-oss-access-token-is-not-refreshed/1412083)

<div class="topic-metadata">

**Author:** [@AB\_Jonathan](https://forums.unrealengine.com/u/AB_Jonathan)\
**Replies:** 3\
**Last updated:** [February 17, 2026, 12:50am UTC](https://forums.unrealengine.com/t/why-the-epic-online-service-eos-oss-access-token-is-not-refreshed/1412083 "2026-02-17T00:50:38Z")

</div>

I found an occurence where the EOS OSS’ IdentityInterface does not return a correct access token (expired). I used (IdentityInterface-\>GetAuthToken(...)) to get the token. I created a scheduler run each minute to obtai…

---

## [Guidance with data structures for rounds in horde mode](https://forums.unrealengine.com/t/guidance-with-data-structures-for-rounds-in-horde-mode/2699754)

<div class="topic-metadata">

**Author:** [@Phteven28](https://forums.unrealengine.com/u/Phteven28)\
**Replies:** 1\
**Last updated:** [February 15, 2026, 8:19pm UTC](https://forums.unrealengine.com/t/guidance-with-data-structures-for-rounds-in-horde-mode/2699754 "2026-02-15T20:19:23Z")

</div>

Hey, so I want to make a horde mode where each round has very specific combinations of enemies. Currently the spawners function based on variables in the GameMode class. The variables would just be integers signifying …

---

## [VS 2022 (17.11.4) open a file selector when I press Ctrl+S or Ctrl+Shift+S](https://forums.unrealengine.com/t/vs-2022-17-11-4-open-a-file-selector-when-i-press-ctrl-s-or-ctrl-shift-s/2699948)

<div class="topic-metadata">

**Author:** [@Piti](https://forums.unrealengine.com/u/Piti)\
**Replies:** 0\
**Last updated:** [February 15, 2026, 6:48pm UTC](https://forums.unrealengine.com/t/vs-2022-17-11-4-open-a-file-selector-when-i-press-ctrl-s-or-ctrl-shift-s/2699948 "2026-02-15T18:48:36Z")

</div>

I’m posting this here as I’ve found the same question from a year ago in reddit, but it seems like the poor dude got no anwser, and I’m suffering from the same problem. (https://www.reddit.com/r/VisualStudio/comments/1ic…

---

## [Hide Spline editing gizmo](https://forums.unrealengine.com/t/hide-spline-editing-gizmo/654941)

<div class="topic-metadata">

**Author:** [@Rumzie](https://forums.unrealengine.com/u/Rumzie)\
**Replies:** 6\
**Last updated:** [February 15, 2026, 4:34pm UTC](https://forums.unrealengine.com/t/hide-spline-editing-gizmo/654941 "2026-02-15T16:34:59Z")

</div>

Is there a way to hide the spline gizmo in the editor? I have more than one spline component per actors and it’s really getting in the way when editing. Clicking on the actor or components individually shows all spline g…

---

## [Custom First-Person Character Appears Transparent While Looking Down – Why?](https://forums.unrealengine.com/t/custom-first-person-character-appears-transparent-while-looking-down-why/2676532)

<div class="topic-metadata">

**Author:** [@xuzhiyu1236](https://forums.unrealengine.com/u/xuzhiyu1236)\
**Replies:** 6\
**Last updated:** [February 14, 2026, 9:48pm UTC](https://forums.unrealengine.com/t/custom-first-person-character-appears-transparent-while-looking-down-why/2676532 "2026-02-14T21:48:54Z")

</div>

I’m following the official tutorial “Code a First-Person Adventure Game”, specifically the section “Add a First-Person Camera, Mesh, and Animation,” and I ran into an issue. I have confirmed that my C++ code is copi…

---

## [Ubuntu Epic Asset Manager Overhaul](https://forums.unrealengine.com/t/ubuntu-epic-asset-manager-overhaul/2699766)

<div class="topic-metadata">

**Author:** [@joematrix77](https://forums.unrealengine.com/u/joematrix77)\
**Replies:** 1\
**Last updated:** [February 14, 2026, 7:36pm UTC](https://forums.unrealengine.com/t/ubuntu-epic-asset-manager-overhaul/2699766 "2026-02-14T19:36:03Z")

</div>

Not sure if you guys work in Linux at all, but in case you do I gave the Epic Asset Manager a complete visual overhaul and added a bunch of new functionality. I submitted a pull request to the original Dev but I think it…

---

## [How to inject/simulate mouse clicks?](https://forums.unrealengine.com/t/how-to-inject-simulate-mouse-clicks/25602)

<div class="topic-metadata">

**Author:** [@Marchon](https://forums.unrealengine.com/u/Marchon)\
**Replies:** 15\
**Last updated:** [February 14, 2026, 2:27pm UTC](https://forums.unrealengine.com/t/how-to-inject-simulate-mouse-clicks/25602 "2026-02-14T14:27:18Z")

</div>

Hi guys, I sucessfully managed to control the mouse cursor in a UMG menu using the analog stick on my PS4 gamepad. However, what I didn’t think about before setting it all up: How can I inject mouse clicks by pushing b…

---

## [Niagara won't accept Local vs World space updates from cpp](https://forums.unrealengine.com/t/niagara-wont-accept-local-vs-world-space-updates-from-cpp/2699632)

<div class="topic-metadata">

**Author:** [@Blue\_Faerie](https://forums.unrealengine.com/u/Blue_Faerie)\
**Replies:** 0\
**Last updated:** [February 13, 2026, 10:13pm UTC](https://forums.unrealengine.com/t/niagara-wont-accept-local-vs-world-space-updates-from-cpp/2699632 "2026-02-13T22:13:33Z")

</div>

So I have my niagara system and emmiter, it’s accepting cpp parameters for everything else (scale, velocity etc…) but it will not accept a rotation coordinate space parameter to change the emitter from local to world spa…

---

## [How to create own Physical Constrain?](https://forums.unrealengine.com/t/how-to-create-own-physical-constrain/2699604)

<div class="topic-metadata">

**Author:** [@HellFireHE](https://forums.unrealengine.com/u/HellFireHE)\
**Replies:** 0\
**Last updated:** [February 13, 2026, 7:02pm UTC](https://forums.unrealengine.com/t/how-to-create-own-physical-constrain/2699604 "2026-02-13T19:02:25Z")

</div>

I would like to create own specialized physical constrain that would solve all dependences between few bodies on scene (it would be car body and 4 wheels). Application is utilizing async physics ticks in 500-1000Hz. Bu…

---

## [Detect if actor is casting a shadow](https://forums.unrealengine.com/t/detect-if-actor-is-casting-a-shadow/2699280)

<div class="topic-metadata">

**Author:** [@volumetrix](https://forums.unrealengine.com/u/volumetrix)\
**Replies:** 3\
**Last updated:** [February 13, 2026, 11:20am UTC](https://forums.unrealengine.com/t/detect-if-actor-is-casting-a-shadow/2699280 "2026-02-13T11:20:32Z")

</div>

There are several actors which do complex work that only needs to be done when they have an effect on the screen. We can detect if an actor is in the camera view frustum and disable it when it’s not. However, an off-scr…

---

## [Including AudioCaptureComponent causing packaging errors ](https://forums.unrealengine.com/t/including-audiocapturecomponent-causing-packaging-errors/2463680)

<div class="topic-metadata">

**Author:** [@KillerBot5281](https://forums.unrealengine.com/u/KillerBot5281)\
**Replies:** 1\
**Last updated:** [February 13, 2026, 3:28am UTC](https://forums.unrealengine.com/t/including-audiocapturecomponent-causing-packaging-errors/2463680 "2026-02-13T03:28:56Z")

</div>

Hello! I’m working on a plugin for Unreal Engine 5.5 (precompiled build). Everything compiles and runs fine in the editor, but when I try to package the plugin, I get the errors listed below. After some testing, I’ve na…

---

## [Niagara systems automatically marked as dirty](https://forums.unrealengine.com/t/niagara-systems-automatically-marked-as-dirty/2699342)

<div class="topic-metadata">

**Author:** [@Xtr4nger](https://forums.unrealengine.com/u/Xtr4nger)\
**Replies:** 1\
**Last updated:** [February 12, 2026, 9:05pm UTC](https://forums.unrealengine.com/t/niagara-systems-automatically-marked-as-dirty/2699342 "2026-02-12T21:05:05Z")

</div>

Hello, We have recently found an issue where Niagara systems using Static Bool Material Parameters are automatically marked as dirty when opened. Is this a known bug in UE5.6? Is it fixed in later versions? Thanks in …

---

## [i have problem in generation the my world dinamic](https://forums.unrealengine.com/t/i-have-problem-in-generation-the-my-world-dinamic/2698829)

<div class="topic-metadata">

**Author:** [@Pedro\_Alves](https://forums.unrealengine.com/u/Pedro_Alves)\
**Replies:** 1\
**Last updated:** [February 12, 2026, 8:54pm UTC](https://forums.unrealengine.com/t/i-have-problem-in-generation-the-my-world-dinamic/2698829 "2026-02-12T20:54:26Z")

</div>

i trying create a small village dinamicly that its my result my code “VillageGenerator.h” “Kismet/KismetMathLibrary.h” AVillageGenerator::AVillageGenerator() { PrimaryActorTick.bCanEverTick = false; RootScene …

---

## [Is it possible to forward declare TUniquePtr?](https://forums.unrealengine.com/t/is-it-possible-to-forward-declare-tuniqueptr/552946)

<div class="topic-metadata">

**Author:** [@KaidoomDev](https://forums.unrealengine.com/u/KaidoomDev)\
**Replies:** 3\
**Last updated:** [February 12, 2026, 6:28pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-forward-declare-tuniqueptr/552946 "2026-02-12T18:28:41Z")

</div>

Hi, This compiles fine using TSharedPtr in CPP However changing to TUniquePtr doesn’t compile CPP I understand I have to include the header file where that struct exists but is there no way to forward decl…

---

## [Failed to compile UE 5.4 Source - Loads of compile errors](https://forums.unrealengine.com/t/failed-to-compile-ue-5-4-source-loads-of-compile-errors/1919125)

<div class="topic-metadata">

**Author:** [@TetraStudiosDev](https://forums.unrealengine.com/u/TetraStudiosDev)\
**Replies:** 1\
**Last updated:** [February 12, 2026, 6:03pm UTC](https://forums.unrealengine.com/t/failed-to-compile-ue-5-4-source-loads-of-compile-errors/1919125 "2026-02-12T18:03:08Z")

</div>

I’m using Meta’s Source build, and I’m unable to compile UE 5.4. It gives these new errors, which never happened on other engine versions: Here’s my VS installation setup, 17.0.10. I’ve also changed the .target.c…

---

## [(Steam Online Subsystem) Net Mode is not changing. Travel not working properly. ](https://forums.unrealengine.com/t/steam-online-subsystem-net-mode-is-not-changing-travel-not-working-properly/2699098)

<div class="topic-metadata">

**Author:** [@DevLX\_Official](https://forums.unrealengine.com/u/DevLX_Official)\
**Replies:** 3\
**Last updated:** [February 12, 2026, 3:39pm UTC](https://forums.unrealengine.com/t/steam-online-subsystem-net-mode-is-not-changing-travel-not-working-properly/2699098 "2026-02-12T15:39:31Z")

</div>

Hey, so I’m trying to learn how to use OnlineSubsystems and tried Steam ones. Everything works and the travel is happening but somehow the Net Mode of the client is still Standalone and not Client. Do I miss something in…

---

## [In FPS Game, are the character and camera always facing the same direction? Or is there a delay in the character's orientation?](https://forums.unrealengine.com/t/in-fps-game-are-the-character-and-camera-always-facing-the-same-direction-or-is-there-a-delay-in-the-characters-orientation/2699258)

<div class="topic-metadata">

**Author:** [@\_1994\_5](https://forums.unrealengine.com/u/_1994_5)\
**Replies:** 1\
**Last updated:** [February 12, 2026, 11:00am UTC](https://forums.unrealengine.com/t/in-fps-game-are-the-character-and-camera-always-facing-the-same-direction-or-is-there-a-delay-in-the-characters-orientation/2699258 "2026-02-12T11:00:34Z")

</div>

In ALS, there will be a delay when the character is facing relative to the camera(or controller rotation). Does Fps Game games also do this?

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

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