# C++

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

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

**Page:** 30

---

## [How to modify shadow projection ](https://forums.unrealengine.com/t/how-to-modify-shadow-projection/2629675)

<div class="topic-metadata">

**Author:** [@Ruuku\_Yuki](https://forums.unrealengine.com/u/Ruuku_Yuki)\
**Replies:** 0\
**Last updated:** [August 4, 2025, 2:25pm UTC](https://forums.unrealengine.com/t/how-to-modify-shadow-projection/2629675 "2025-08-04T14:25:08Z")

</div>

I’m trying to make the projection shadow of objects not too long when the directional light is near horizon. I tried to modify the ShadowSetup.cpp, changing the function SetupWholeSceneProjection. What I’ve tried is to r…

---

## [Deproject Screen To World and SceneCapture2D.](https://forums.unrealengine.com/t/deproject-screen-to-world-and-scenecapture2d/91657)

<div class="topic-metadata">

**Author:** [@antoinegloum](https://forums.unrealengine.com/u/antoinegloum)\
**Replies:** 15\
**Last updated:** [August 4, 2025, 9:45am UTC](https://forums.unrealengine.com/t/deproject-screen-to-world-and-scenecapture2d/91657 "2025-08-04T09:45:03Z")

</div>

Hi, I have a SceneCapture2D actor capturing my scene, and the output is displayed in a widget. When the user click on the widget, I would like to know where she clicked in the 3D space. Basically “Deproject Screen to W…

---

## [Error C1083 : Can't open files include: “atlcomcli.h”: No such file or directory](https://forums.unrealengine.com/t/error-c1083-cant-open-files-include-atlcomcli-h-no-such-file-or-directory/2629366)

<div class="topic-metadata">

**Author:** [@SbeanCNBanzai](https://forums.unrealengine.com/u/SbeanCNBanzai)\
**Replies:** 1\
**Last updated:** [August 4, 2025, 9:15am UTC](https://forums.unrealengine.com/t/error-c1083-cant-open-files-include-atlcomcli-h-no-such-file-or-directory/2629366 "2025-08-04T09:15:22Z")

</div>

I searched a lot but can’t find solution. \[2/5\] Compile \[x64\] DumpSyms.cpp 29\>pdb\_source\_line\_writer.h(35,1): Error C1083 : 无法打开包括文件: “atlcomcli.h”: No such file or directory include \<atlcomcli.h\> ^ And one more err…

---

## [Vive VR Marker-based virtual space implementation](https://forums.unrealengine.com/t/vive-vr-marker-based-virtual-space-implementation/2628971)

<div class="topic-metadata">

**Author:** [@hanbas1](https://forums.unrealengine.com/u/hanbas1)\
**Replies:** 0\
**Last updated:** [August 3, 2025, 11:51pm UTC](https://forums.unrealengine.com/t/vive-vr-marker-based-virtual-space-implementation/2628971 "2025-08-03T23:51:09Z")

</div>

Hello, I just started Unreal Engine because I wanted to make my own vr. I want to use a system like arucco marker to clean up all the furniture, recognize a large space like a house, walk around, and decorate the same sp…

---

## [Material applied to a procedural mesh does not display. Please help!](https://forums.unrealengine.com/t/material-applied-to-a-procedural-mesh-does-not-display-please-help/2628367)

<div class="topic-metadata">

**Author:** [@JontomXire](https://forums.unrealengine.com/u/JontomXire)\
**Replies:** 0\
**Last updated:** [August 3, 2025, 11:50am UTC](https://forums.unrealengine.com/t/material-applied-to-a-procedural-mesh-does-not-display-please-help/2628367 "2025-08-03T11:50:34Z")

</div>

My actor constructor code looks like this: static ConstructorHelpers::FObjectFinder\<UMaterial\> material(TEXT("Material'/Game/Materials/M\_Rock'")); PrimaryActorTick.bCanEverTick = true; m\_mesh = CreateDefaul…

---

## [How to build an Android app using Unreal Engine 5.6 so I can use std::stringstream without crashing?](https://forums.unrealengine.com/t/how-to-build-an-android-app-using-unreal-engine-5-6-so-i-can-use-std-stringstream-without-crashing/2628286)

<div class="topic-metadata">

**Author:** [@werto871](https://forums.unrealengine.com/u/werto871)\
**Replies:** 0\
**Last updated:** [August 3, 2025, 10:17am UTC](https://forums.unrealengine.com/t/how-to-build-an-android-app-using-unreal-engine-5-6-so-i-can-use-std-stringstream-without-crashing/2628286 "2025-08-03T10:17:30Z")

</div>

Problem: When I use std::stringstream in Unreal Engine on Android, I get a crash when running the app on the phone. Note: Running the app on my Desktop does not crash. How to reproduce: Install Unreal Engine 5.6 I…

---

## [Connection Timeout EOS / Playfab](https://forums.unrealengine.com/t/connection-timeout-eos-playfab/1879157)

<div class="topic-metadata">

**Author:** [@444\_Nuits](https://forums.unrealengine.com/u/444_Nuits)\
**Replies:** 4\
**Last updated:** [August 3, 2025, 9:22am UTC](https://forums.unrealengine.com/t/connection-timeout-eos-playfab/1879157 "2025-08-03T09:22:57Z")

</div>

Hi, I’m having issues connecting to my dedicated server hosted on azure playfab, it used to work but I removed the EOS Plugin by mistake (or I thought that was the error) I put it back but still get this error Client ge…

---

## [How to open parameterised URL?](https://forums.unrealengine.com/t/how-to-open-parameterised-url/2627338)

<div class="topic-metadata">

**Author:** [@JontomXire](https://forums.unrealengine.com/u/JontomXire)\
**Replies:** 0\
**Last updated:** [August 2, 2025, 10:57am UTC](https://forums.unrealengine.com/t/how-to-open-parameterised-url/2627338 "2025-08-02T10:57:37Z")

</div>

As far as I can tell, the initial level/map information is baked into the executable, at least for shipped builds. This is based on various bits of information, some of which may be out of date, on the internet. What I …

---

## [Is there an initial overridable initialisation point?](https://forums.unrealengine.com/t/is-there-an-initial-overridable-initialisation-point/2622656)

<div class="topic-metadata">

**Author:** [@JontomXire](https://forums.unrealengine.com/u/JontomXire)\
**Replies:** 3\
**Last updated:** [August 2, 2025, 9:13am UTC](https://forums.unrealengine.com/t/is-there-an-initial-overridable-initialisation-point/2622656 "2025-08-02T09:13:29Z")

</div>

I am a hardcore programmer, and doing anything through the Unreal Editor really turns me off. Apart from anything, how do you peer review someone else’s changes? C++ code has numerous tools to provide, and comment on, th…

---

## [laptop buying advice for UE5 ](https://forums.unrealengine.com/t/laptop-buying-advice-for-ue5/2626529)

<div class="topic-metadata">

**Author:** [@Creatingtoday](https://forums.unrealengine.com/u/Creatingtoday)\
**Replies:** 1\
**Last updated:** [August 1, 2025, 5:51pm UTC](https://forums.unrealengine.com/t/laptop-buying-advice-for-ue5/2626529 "2025-08-01T17:51:48Z")

</div>

\[Help\] Laptop for Unreal Engine 5 (Game Dev + Lumen/Nanite) under ₹1.3L (India) Use: UE5 dev, Lumen, Nanite, virtual production Budget: ₹1.3L Shortlisted: ASUS ROG Strix G16 (i7 + RTX 4060) Questions: Is 8GB VRAM enoug…

---

## [\[Help\] EnhancedInputSystem MouseLook stops at window boundary](https://forums.unrealengine.com/t/help-enhancedinputsystem-mouselook-stops-at-window-boundary/2626624)

<div class="topic-metadata">

**Author:** [@LoreStudio](https://forums.unrealengine.com/u/LoreStudio)\
**Replies:** 0\
**Last updated:** [August 1, 2025, 4:45pm UTC](https://forums.unrealengine.com/t/help-enhancedinputsystem-mouselook-stops-at-window-boundary/2626624 "2025-08-01T16:45:20Z")

</div>

I am working on camera controls while the LMB is held down. Things are pretty smooth, until the mouse hits the window boundary at which point the rotation abruptly halts and it feels jarring. What I would like is to ha…

---

## [Day based task system](https://forums.unrealengine.com/t/day-based-task-system/2625359)

<div class="topic-metadata">

**Author:** [@FreakishGrape](https://forums.unrealengine.com/u/FreakishGrape)\
**Replies:** 4\
**Last updated:** [August 1, 2025, 1:44pm UTC](https://forums.unrealengine.com/t/day-based-task-system/2625359 "2025-08-01T13:44:50Z")

</div>

Trying to find the best way to implement a day based task system in c++. I’m trying to setup something where you have a certain number of days and each day the player has a new set of tasks to complete before they can go…

---

## [\[Help Needed\] Trouble with Lighting Build in UE5.4 – Static Meshes Look Flat ](https://forums.unrealengine.com/t/help-needed-trouble-with-lighting-build-in-ue5-4-static-meshes-look-flat/2626390)

<div class="topic-metadata">

**Author:** [@EthanHub-ol](https://forums.unrealengine.com/u/EthanHub-ol)\
**Replies:** 0\
**Last updated:** [August 1, 2025, 1:22pm UTC](https://forums.unrealengine.com/t/help-needed-trouble-with-lighting-build-in-ue5-4-static-meshes-look-flat/2626390 "2025-08-01T13:22:04Z")

</div>

Hi everyone, I’ve been working on a small third-person exploration project in Unreal Engine 5.4, and I recently ran into an issue with my lighting build that I can’t seem to solve. I was hoping someone here might be abl…

---

## [Blueprint subcategory?](https://forums.unrealengine.com/t/blueprint-subcategory/296495)

<div class="topic-metadata">

**Author:** [@Daverkex](https://forums.unrealengine.com/u/Daverkex)\
**Replies:** 9\
**Last updated:** [August 1, 2025, 1:21pm UTC](https://forums.unrealengine.com/t/blueprint-subcategory/296495 "2025-08-01T13:21:25Z")

</div>

I think that Category tag of UFUNCTION is partial bugged in 4.5 release. Code documentation said: /// Specifies the category of the function when displayed in blueprint editing tools. /// Usage: Category=CategoryName o…

---

## [How to create pass-by-ref parameter with default value (something like “nullptr”) in Unreal's BlueprintCallable UFUNCTION?](https://forums.unrealengine.com/t/how-to-create-pass-by-ref-parameter-with-default-value-something-like-nullptr-in-unreals-blueprintcallable-ufunction/612635)

<div class="topic-metadata">

**Author:** [@dzemzmcdonalda](https://forums.unrealengine.com/u/dzemzmcdonalda)\
**Replies:** 5\
**Last updated:** [July 31, 2025, 7:00pm UTC](https://forums.unrealengine.com/t/how-to-create-pass-by-ref-parameter-with-default-value-something-like-nullptr-in-unreals-blueprintcallable-ufunction/612635 "2025-07-31T19:00:22Z")

</div>

Hello, What I want to achieve: A Blueprint Callable function that takes ‘UPARAM(ref) bool&’ as a parameter which can but don’t have to be passed inside of Blueprint Graph (variable don’t have to be pluged into input pi…

---

## [Struggling with Landscape and Foliage Optimization – Any Advice? ](https://forums.unrealengine.com/t/struggling-with-landscape-and-foliage-optimization-any-advice/2625404)

<div class="topic-metadata">

**Author:** [@kunkihuba](https://forums.unrealengine.com/u/kunkihuba)\
**Replies:** 0\
**Last updated:** [July 31, 2025, 5:39pm UTC](https://forums.unrealengine.com/t/struggling-with-landscape-and-foliage-optimization-any-advice/2625404 "2025-07-31T17:39:27Z")

</div>

Hi everyone, I’m currently working on a small open-world scene in Unreal Engine 5.4, and I’m starting to run into performance issues. I figured this would be a great place to ask for help and maybe share my experience s…

---

## [How should I implement HP Bar for ai and player?](https://forums.unrealengine.com/t/how-should-i-implement-hp-bar-for-ai-and-player/2616838)

<div class="topic-metadata">

**Author:** [@sehwa](https://forums.unrealengine.com/u/sehwa)\
**Replies:** 12\
**Last updated:** [July 31, 2025, 4:35pm UTC](https://forums.unrealengine.com/t/how-should-i-implement-hp-bar-for-ai-and-player/2616838 "2025-07-31T16:35:45Z")

</div>

Hi everyone. I’m implementing HP Bar for ai and player right now. At first, I only made player’s Hp Bar visible. I made the widget pop on top of my head as shown in the picture above. The player made it appear on …

---

## [HairStrandsMutable - Update Your Dependencies Warning](https://forums.unrealengine.com/t/hairstrandsmutable-update-your-dependencies-warning/2624678)

<div class="topic-metadata">

**Author:** [@ADayInForever](https://forums.unrealengine.com/u/ADayInForever)\
**Replies:** 0\
**Last updated:** [July 31, 2025, 5:12am UTC](https://forums.unrealengine.com/t/hairstrandsmutable-update-your-dependencies-warning/2624678 "2025-07-31T05:12:37Z")

</div>

Hello there, I am getting a warning during code compilation of my project: Plugin ‘HairStrandsMutable’ depends on plugin ‘StructUtils’ which was deprecated in 5.5 and will soon be removed. Please update your dependenci…

---

## [How ChaosMover Support PlayMontage?](https://forums.unrealengine.com/t/how-chaosmover-support-playmontage/2623661)

<div class="topic-metadata">

**Author:** [@TANGRONGQI](https://forums.unrealengine.com/u/TANGRONGQI)\
**Replies:** 0\
**Last updated:** [July 30, 2025, 10:17am UTC](https://forums.unrealengine.com/t/how-chaosmover-support-playmontage/2623661 "2025-07-30T10:17:00Z")

</div>

I Test ChaosMover Pawn to use PlayMontage(MoverActor). there is no effect on AnimRootMotion. I modified the code myself. If there is a more correct way, please help me. bool FLayeredMove\_AnimRootMotion::GenerateMove(co…

---

## [T Pose for a single frame when switching between Montages](https://forums.unrealengine.com/t/t-pose-for-a-single-frame-when-switching-between-montages/2623365)

<div class="topic-metadata">

**Author:** [@mrm\_dev](https://forums.unrealengine.com/u/mrm_dev)\
**Replies:** 0\
**Last updated:** [July 30, 2025, 4:49am UTC](https://forums.unrealengine.com/t/t-pose-for-a-single-frame-when-switching-between-montages/2623365 "2025-07-30T04:49:24Z")

</div>

I’m trying to play 3 montages one after the other but I’m getting TPose (for a single frame) in between switching montages Can someone tell me why this is happening and how to fix it so all 3 montages play seamlessly? N…

---

## [TSoftObjectPtr\<\> (Texture2D) loads wrong size values.](https://forums.unrealengine.com/t/tsoftobjectptr-texture2d-loads-wrong-size-values/734522)

<div class="topic-metadata">

**Author:** [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Replies:** 8\
**Last updated:** [July 29, 2025, 3:27pm UTC](https://forums.unrealengine.com/t/tsoftobjectptr-texture2d-loads-wrong-size-values/734522 "2025-07-29T15:27:13Z")

</div>

I have a weapon class that has a reference to a UI icon in it, and it’s a TSoftObjectPtr\<\>. When I need to use this icon, I do Icon.LoadSynchronous() and use it to set a UI image, changing the size of the image to match…

---

## [Cannot control custom pawn. Please help.](https://forums.unrealengine.com/t/cannot-control-custom-pawn-please-help/2622329)

<div class="topic-metadata">

**Author:** [@JontomXire](https://forums.unrealengine.com/u/JontomXire)\
**Replies:** 4\
**Last updated:** [July 29, 2025, 3:12pm UTC](https://forums.unrealengine.com/t/cannot-control-custom-pawn-please-help/2622329 "2025-07-29T15:12:59Z")

</div>

I am trying to create a pawn that is a small sphere (like the default pawn), that floats around controlled by the player (like the default pawn) but which has a built in spotlight to illuminate everything the player sees…

---

## [\[DEVLOG\] Our First Steps with Unreal Engine 5 – Indie Project in Progress ](https://forums.unrealengine.com/t/devlog-our-first-steps-with-unreal-engine-5-indie-project-in-progress/2622464)

<div class="topic-metadata">

**Author:** [@kenlab-po](https://forums.unrealengine.com/u/kenlab-po)\
**Replies:** 0\
**Last updated:** [July 29, 2025, 1:15pm UTC](https://forums.unrealengine.com/t/devlog-our-first-steps-with-unreal-engine-5-indie-project-in-progress/2622464 "2025-07-29T13:15:52Z")

</div>

Hey everyone! :waving\_hand: We’re a small indie team currently diving into Unreal Engine 5 for the first time, and we’re thrilled to share a bit about our journey so far. :video\_game: Project Overview We’re working on…

---

## [ChaosMover on a MovingPlatform](https://forums.unrealengine.com/t/chaosmover-on-a-movingplatform/2622203)

<div class="topic-metadata">

**Author:** [@TANGRONGQI](https://forums.unrealengine.com/u/TANGRONGQI)\
**Replies:** 0\
**Last updated:** [July 29, 2025, 8:54am UTC](https://forums.unrealengine.com/t/chaosmover-on-a-movingplatform/2622203 "2025-07-29T08:54:26Z")

</div>

ChaosMover Pawn On a MovingPlatform will swipe. I commented out this line of code, and the behavior seems to be correct. Does this pose any potential problems? void UChaosWalkingMode::GenerateMove\_Implementation(co…

---

## [Looking to create a QTE](https://forums.unrealengine.com/t/looking-to-create-a-qte/2621533)

<div class="topic-metadata">

**Author:** [@TheoRat3](https://forums.unrealengine.com/u/TheoRat3)\
**Replies:** 0\
**Last updated:** [July 28, 2025, 6:31pm UTC](https://forums.unrealengine.com/t/looking-to-create-a-qte/2621533 "2025-07-28T18:31:52Z")

</div>

I’m trying to create a quick time event like the one shown in the video below. I need a little help getting the ball rolling though. Creating a widget, making it visible via C++ when needed, I got all of that covered. Bu…

---

## [What is this crash? AABBTreeBuildNode::subdivide()](https://forums.unrealengine.com/t/what-is-this-crash-aabbtreebuildnode-subdivide/101278)

<div class="topic-metadata">

**Author:** [@Erdrik](https://forums.unrealengine.com/u/Erdrik)\
**Replies:** 4\
**Last updated:** [July 28, 2025, 6:44am UTC](https://forums.unrealengine.com/t/what-is-this-crash-aabbtreebuildnode-subdivide/101278 "2025-07-28T06:44:27Z")

</div>

Any thoughts on what this crash is related to would be much appreciated. PhysX3PROFILE\_x64!physx::Sq::AABBTreeBuildNode::subdivide() \[d:\\build\\++ue4+release-4.14+physx\_compile\\sync\\engine\\source hirdparty\\physx\\physx\_…

---

## [Even on a brand new, blank C++ project, the build fails. ](https://forums.unrealengine.com/t/even-on-a-brand-new-blank-c-project-the-build-fails/2620082)

<div class="topic-metadata">

**Author:** [@SajeevanVeeriah](https://forums.unrealengine.com/u/SajeevanVeeriah)\
**Replies:** 1\
**Last updated:** [July 27, 2025, 10:08pm UTC](https://forums.unrealengine.com/t/even-on-a-brand-new-blank-c-project-the-build-fails/2620082 "2025-07-27T22:08:21Z")

</div>

I have already tried a full, clean reinstallation of both Visual Studio 2022 (with the ‘Game development with C++’ and ‘Unreal Engine installer’ components) and Unreal Engine 5.6. I have also tried ‘Verify’, and ‘Switch …

---

## [是否可以通过line trace获得hit character 的 uv？](https://forums.unrealengine.com/t/line-trace-hit-character-uv/2619443)

<div class="topic-metadata">

**Author:** [@1237162](https://forums.unrealengine.com/u/1237162)\
**Replies:** 1\
**Last updated:** [July 26, 2025, 9:56pm UTC](https://forums.unrealengine.com/t/line-trace-hit-character-uv/2619443 "2025-07-26T21:56:48Z")

</div>

想通过line trace获得hit，然后通过FindCollisionUV获得 character skeletal mesh的材质UV 但是似乎skeletal mesh hitresult的faceindex 始终为-1 ，只有static mesh才有效？ 已经设置了bReturnFaceIndex and bTraceComplex to “true” in FCollisionQueryParams .

---

## [Build.bat fails exited with code 6](https://forums.unrealengine.com/t/build-bat-fails-exited-with-code-6/237526)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_f00cc662](https://forums.unrealengine.com/u/anonymous_user_f00cc662)\
**Replies:** 20\
**Last updated:** [July 26, 2025, 7:05pm UTC](https://forums.unrealengine.com/t/build-bat-fails-exited-with-code-6/237526 "2025-07-26T19:05:13Z")

</div>

For the last several months I’ve been building UE source version 4.26 with no problem. Today our company distributed licenses to switch from VS Community 2019 to VS Pro 2019 and so I updated to VS Pro 2019. Doing this c…

---

## [Why do I get different results reading a file in Unreal Engine vs Standalone? ](https://forums.unrealengine.com/t/why-do-i-get-different-results-reading-a-file-in-unreal-engine-vs-standalone/2619064)

<div class="topic-metadata">

**Author:** [@CakeSniffer1](https://forums.unrealengine.com/u/CakeSniffer1)\
**Replies:** 1\
**Last updated:** [July 26, 2025, 6:18pm UTC](https://forums.unrealengine.com/t/why-do-i-get-different-results-reading-a-file-in-unreal-engine-vs-standalone/2619064 "2025-07-26T18:18:31Z")

</div>

I have been trying to read a .tif file using ifstream and I get incorrect data back when I run the code in Unreal Engine but when I read the same file using a standalone c++ program it reads the file correctly. The data…

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

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