# C++

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

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

**Page:** 60

---

## [RigVMMemoryDeprecated error messages for custom Control Rig](https://forums.unrealengine.com/t/rigvmmemorydeprecated-error-messages-for-custom-control-rig/2264360)

<div class="topic-metadata">

**Author:** [@RogueSheep](https://forums.unrealengine.com/u/RogueSheep)\
**Replies:** 1\
**Last updated:** [January 9, 2025, 7:30am UTC](https://forums.unrealengine.com/t/rigvmmemorydeprecated-error-messages-for-custom-control-rig/2264360 "2025-01-09T07:30:30Z")

</div>

Hi all, Working in 5.4.4 I am trying to create a custom Control Rig in code following these starting instructions in a recent post: https://forums.unrealengine.com/t/how-to-create-custom-control-rig-class-in-c/2026829…

---

## [UTexture2D CreateTransient](https://forums.unrealengine.com/t/utexture2d-createtransient/62580)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_e3e081c8](https://forums.unrealengine.com/u/anonymous_user_e3e081c8)\
**Replies:** 2\
**Last updated:** [January 9, 2025, 3:45am UTC](https://forums.unrealengine.com/t/utexture2d-createtransient/62580 "2025-01-09T03:45:12Z")

</div>

Hi, I am making an inventory system. I want to scale the images of the object to fit in my grid. I think that the best way to scale the UTexture2D is with CreateTransient. My code has 0 error, but when I run it it says: …

---

## [Use delegates or add dependencies between modules](https://forums.unrealengine.com/t/use-delegates-or-add-dependencies-between-modules/2266000)

<div class="topic-metadata">

**Author:** [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Replies:** 7\
**Last updated:** [January 9, 2025, 3:25am UTC](https://forums.unrealengine.com/t/use-delegates-or-add-dependencies-between-modules/2266000 "2025-01-09T03:25:28Z")

</div>

Hi! I’m using Visual Studio 2022 and Unreal Engine 5.4.4. In a method of a class in module A, I need to call a method in a class in another module B to perform a calculation. This would be the only time I would need so…

---

## [How to verify that PIE is in Player Detach (F8) status within the c++ code?](https://forums.unrealengine.com/t/how-to-verify-that-pie-is-in-player-detach-f8-status-within-the-c-code/2267193)

<div class="topic-metadata">

**Author:** [@user\_ab517090ed9c22743770830d9014a4fba8515dc3a7e7bc62ad9e1a](https://forums.unrealengine.com/u/user_ab517090ed9c22743770830d9014a4fba8515dc3a7e7bc62ad9e1a)\
**Replies:** 0\
**Last updated:** [January 9, 2025, 3:16am UTC](https://forums.unrealengine.com/t/how-to-verify-that-pie-is-in-player-detach-f8-status-within-the-c-code/2267193 "2025-01-09T03:16:52Z")

</div>

How to verify that PIE is in Player Detach (F8) status within the c++ code? I want to create a function to move the camera in player detech state, but I don’t know how to check that state within the code c++.

---

## [Gameplay Ability System (GAS) and trigger inputs event](https://forums.unrealengine.com/t/gameplay-ability-system-gas-and-trigger-inputs-event/2266349)

<div class="topic-metadata">

**Author:** [@SwtPunk](https://forums.unrealengine.com/u/SwtPunk)\
**Replies:** 0\
**Last updated:** [January 8, 2025, 4:46pm UTC](https://forums.unrealengine.com/t/gameplay-ability-system-gas-and-trigger-inputs-event/2266349 "2025-01-08T16:46:41Z")

</div>

I’m currently working in a project and I’m wondering how do you reproduce the “Move” and “Look” functions with GAS. I’ve been following an article which bind Enhanced Input System with Gameplay Ability System (How to ea…

---

## [Ammo widget that counts total amount of ammo in slot/Grid like Inventory](https://forums.unrealengine.com/t/ammo-widget-that-counts-total-amount-of-ammo-in-slot-grid-like-inventory/2261776)

<div class="topic-metadata">

**Author:** [@Munitionlord](https://forums.unrealengine.com/u/Munitionlord)\
**Replies:** 2\
**Last updated:** [January 8, 2025, 4:18pm UTC](https://forums.unrealengine.com/t/ammo-widget-that-counts-total-amount-of-ammo-in-slot-grid-like-inventory/2261776 "2025-01-08T16:18:32Z")

</div>

Are there Tutorials out there where you can pull a total amount of ammo from a specific ammo from grid or slot like inventory? For example, If I have 1 slot filled with 20 rounds of 9mm in one slot and another slot fille…

---

## [How to Rebuild Unreal Engine 4.27?](https://forums.unrealengine.com/t/how-to-rebuild-unreal-engine-4-27/2265656)

<div class="topic-metadata">

**Author:** [@DmitriyBatkovich](https://forums.unrealengine.com/u/DmitriyBatkovich)\
**Replies:** 7\
**Last updated:** [January 8, 2025, 3:56pm UTC](https://forums.unrealengine.com/t/how-to-rebuild-unreal-engine-4-27/2265656 "2025-01-08T15:56:46Z")

</div>

I changed some files in the source code of the engine, how do I rebuild it Visual Studio 2017 2019 2022 can’t do it always crash with random errors, if you run RUNUAT.bat or do a full cleanup with Clean.Bat nothing helps…

---

## [StaticMesh from soft reference not loading using Asynch Load](https://forums.unrealengine.com/t/staticmesh-from-soft-reference-not-loading-using-asynch-load/2256217)

<div class="topic-metadata">

**Author:** [@DevDoctor](https://forums.unrealengine.com/u/DevDoctor)\
**Replies:** 1\
**Last updated:** [January 8, 2025, 3:56pm UTC](https://forums.unrealengine.com/t/staticmesh-from-soft-reference-not-loading-using-asynch-load/2256217 "2025-01-08T15:56:44Z")

</div>

Hello guys, I am probably slowly becoming insane, I don’t understand why this doesn’t work: I am trying to load stuff (like a mesh) from a soft reference and not a hard one (TSoftObjectPtr ). SO I wrote the following cod…

---

## [Is it possible to read pixel values from 32-bit EXR image?](https://forums.unrealengine.com/t/is-it-possible-to-read-pixel-values-from-32-bit-exr-image/97739)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_07ba773b](https://forums.unrealengine.com/u/anonymous_user_07ba773b)\
**Replies:** 4\
**Last updated:** [January 7, 2025, 9:24pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-read-pixel-values-from-32-bit-exr-image/97739 "2025-01-07T21:24:59Z")

</div>

I’m trying to read in pixel values from a 32-bit EXR using the following code: .h: UFUNCTION(BlueprintCallable) static FColor TextureTest(UTexture2D \* TextureInput, int32 PixelIndex); .cpp: FColor UBlueprintFunctionLi…

---

## [Help: Why is my Enhanced Input Started event being called twice?](https://forums.unrealengine.com/t/help-why-is-my-enhanced-input-started-event-being-called-twice/2260911)

<div class="topic-metadata">

**Author:** [@StevenX](https://forums.unrealengine.com/u/StevenX)\
**Replies:** 5\
**Last updated:** [January 7, 2025, 11:33am UTC](https://forums.unrealengine.com/t/help-why-is-my-enhanced-input-started-event-being-called-twice/2260911 "2025-01-07T11:33:43Z")

</div>

I set the binding to Started mode in C++, but when I press a key once in the game, the function is called twice. Does anyone know why this is happening? “.h file” UEnhancedInputLocalPlayerSubsystem\* Subsystem; UEnhanc…

---

## [Missing cached shader map for material\*\*\*(Linux Platform)](https://forums.unrealengine.com/t/missing-cached-shader-map-for-material-linux-platform/2262226)

<div class="topic-metadata">

**Author:** [@ou199512](https://forums.unrealengine.com/u/ou199512)\
**Replies:** 0\
**Last updated:** [January 6, 2025, 8:54am UTC](https://forums.unrealengine.com/t/missing-cached-shader-map-for-material-linux-platform/2262226 "2025-01-06T08:54:10Z")

</div>

\[2025.01.06-16.41.58:626\]\[ 0\]LogMaterial: Display: Missing cached shader map for material Opacity, compiling. \[2025.01.06-16.41.58:629\]\[ 0\]LogMaterial: Display: Missing cached shader map for material Roughness, compili…

---

## [Redirecting properties using core redirects to native parent class](https://forums.unrealengine.com/t/redirecting-properties-using-core-redirects-to-native-parent-class/267616)

<div class="topic-metadata">

**Author:** [@CaptAnarchy](https://forums.unrealengine.com/u/CaptAnarchy)\
**Replies:** 10\
**Last updated:** [January 6, 2025, 10:27pm UTC](https://forums.unrealengine.com/t/redirecting-properties-using-core-redirects-to-native-parent-class/267616 "2025-01-06T22:27:00Z")

</div>

I’m trying to use the core redirects in 4-26 to change a property from the blueprint class to its native c++ parent class. It just won’t redirect the property, but the funny thing is that if I right click the property i…

---

## [Mesh built with BuildFromMeshDescriptions is always generating normals](https://forums.unrealengine.com/t/mesh-built-with-buildfrommeshdescriptions-is-always-generating-normals/2152502)

<div class="topic-metadata">

**Author:** [@BenWeno](https://forums.unrealengine.com/u/BenWeno)\
**Replies:** 2\
**Last updated:** [January 6, 2025, 4:49pm UTC](https://forums.unrealengine.com/t/mesh-built-with-buildfrommeshdescriptions-is-always-generating-normals/2152502 "2025-01-06T16:49:40Z")

</div>

I’m generating a mesh using BuildFromMeshDescriptions, and I’m passing the vertex instances normals and tangents using SetInstanceTangentSpace, however when the mesh is generated it calculated it’s own normals and tangen…

---

## [BT Decorator](https://forums.unrealengine.com/t/bt-decorator/2262744)

<div class="topic-metadata">

**Author:** [@ShayanShahsavary](https://forums.unrealengine.com/u/ShayanShahsavary)\
**Replies:** 0\
**Last updated:** [January 6, 2025, 3:23pm UTC](https://forums.unrealengine.com/t/bt-decorator/2262744 "2025-01-06T15:23:58Z")

</div>

Hello I Created a BT Decorator in Unreal Engine C++ and Set Observer Aborts=Lower Priority but It Did Not Work Properly

---

## [Can I use Cursor IDE as the primary IDE for Unreal Engine?](https://forums.unrealengine.com/t/can-i-use-cursor-ide-as-the-primary-ide-for-unreal-engine/2112613)

<div class="topic-metadata">

**Author:** [@lexus\_ch](https://forums.unrealengine.com/u/lexus_ch)\
**Replies:** 4\
**Last updated:** [January 6, 2025, 3:10pm UTC](https://forums.unrealengine.com/t/can-i-use-cursor-ide-as-the-primary-ide-for-unreal-engine/2112613 "2025-01-06T15:10:17Z")

</div>

Hello! I know that Unreal Engine officially supports Visual Studio Code for C++ development, and since Cursor is a fork of VS Code, I was wondering if it can be used in the same way. Is it possible to set up Cursor as t…

---

## [Materials and cameras](https://forums.unrealengine.com/t/materials-and-cameras/2262711)

<div class="topic-metadata">

**Author:** [@lvcim\_jea](https://forums.unrealengine.com/u/lvcim_jea)\
**Replies:** 0\
**Last updated:** [January 6, 2025, 3:03pm UTC](https://forums.unrealengine.com/t/materials-and-cameras/2262711 "2025-01-06T15:03:33Z")

</div>

Hi, My project use splitscreen, and i would like my actors to use a different material for each camera. In other words, i want my actors to use “Material A” for player 1 and at the same time “Material B” for player 2. I…

---

## [SET\_FLOAT\_STAT how to get the value of a float set by SET\_FLOAT\_STAT?](https://forums.unrealengine.com/t/set_float_stat-how-to-get-the-value-of-a-float-set-by-set_float_stat/83174)

<div class="topic-metadata">

**Author:** [@Muzaheed](https://forums.unrealengine.com/u/Muzaheed)\
**Replies:** 2\
**Last updated:** [January 6, 2025, 2:20pm UTC](https://forums.unrealengine.com/t/set_float_stat-how-to-get-the-value-of-a-float-set-by-set_float_stat/83174 "2025-01-06T14:20:07Z")

</div>

i want to get access to STAT\_UnitFrame/STAT\_UnitRender value from c++. how to do it?

---

## [why is the jump not replicated by default? Or is it?](https://forums.unrealengine.com/t/why-is-the-jump-not-replicated-by-default-or-is-it/2249402)

<div class="topic-metadata">

**Author:** [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Replies:** 8\
**Last updated:** [January 6, 2025, 6:18am UTC](https://forums.unrealengine.com/t/why-is-the-jump-not-replicated-by-default-or-is-it/2249402 "2025-01-06T06:18:05Z")

</div>

I’ve been looking for something like this but for the jump: I tried this but It is “false” during the entire time the character is in the air Why is the jump not replicated by default? Or is it? If so. What is…

---

## [How to preload objects (or assets) in memory?](https://forums.unrealengine.com/t/how-to-preload-objects-or-assets-in-memory/2261793)

<div class="topic-metadata">

**Author:** [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Replies:** 2\
**Last updated:** [January 6, 2025, 4:18am UTC](https://forums.unrealengine.com/t/how-to-preload-objects-or-assets-in-memory/2261793 "2025-01-06T04:18:04Z")

</div>

I’m wondering how to preload objects or assets so that they are in memory before they need to be used. For example, I’m seeing that fonts or audio take a long time to load the first time. Font: Audio: So I thin…

---

## [Get Instanced Object Outer returns Assets?](https://forums.unrealengine.com/t/get-instanced-object-outer-returns-assets/2261837)

<div class="topic-metadata">

**Author:** [@Paddles](https://forums.unrealengine.com/u/Paddles)\
**Replies:** 0\
**Last updated:** [January 6, 2025, 2:08am UTC](https://forums.unrealengine.com/t/get-instanced-object-outer-returns-assets/2261837 "2025-01-06T02:08:21Z")

</div>

I’m stumped, Here is the use case, I have a DefaultToInstanced, EditInlineNew StateMachine UObject to be used within other UObjects as an Instanced UPROPERTY which cuts down on boilerplate and promotes clean code. But w…

---

## [Mouse input not being detected.](https://forums.unrealengine.com/t/mouse-input-not-being-detected/2261389)

<div class="topic-metadata">

**Author:** [@TheoRat3](https://forums.unrealengine.com/u/TheoRat3)\
**Replies:** 0\
**Last updated:** [January 5, 2025, 7:52pm UTC](https://forums.unrealengine.com/t/mouse-input-not-being-detected/2261389 "2025-01-05T19:52:57Z")

</div>

I started a new project in Unreal and I’ve run into a bug where when I start my game mouse input isn’t being detected at all. I click on the screen and there is just no movement when I move the mouse while other axis bin…

---

## [Record Gameplay in runtime and export](https://forums.unrealengine.com/t/record-gameplay-in-runtime-and-export/1984486)

<div class="topic-metadata">

**Author:** [@VMukesh](https://forums.unrealengine.com/u/VMukesh)\
**Replies:** 4\
**Last updated:** [November 13, 2024, 4:02pm UTC](https://forums.unrealengine.com/t/record-gameplay-in-runtime-and-export/1984486 "2024-11-13T16:02:03Z")

</div>

Is there any way in unreal to record a gameplay in runtime and save it to disk in runtime

---

## [After running the game in the editor, an error occurs when clicking the stop button: "Removing chunk fragments is not supported."](https://forums.unrealengine.com/t/after-running-the-game-in-the-editor-an-error-occurs-when-clicking-the-stop-button-removing-chunk-fragments-is-not-supported/2248902)

<div class="topic-metadata">

**Author:** [@albertxavier001](https://forums.unrealengine.com/u/albertxavier001)\
**Replies:** 1\
**Last updated:** [January 5, 2025, 2:33pm UTC](https://forums.unrealengine.com/t/after-running-the-game-in-the-editor-an-error-occurs-when-clicking-the-stop-button-removing-chunk-fragments-is-not-supported/2248902 "2025-01-05T14:33:58Z")

</div>

After running the game in the editor, an error occurs when clicking the stop button: “Removing chunk fragments is not supported.” I don’t know where the error is, and the logs don’t provide enough call stack information…

---

## [enabling GAS from visual studio?](https://forums.unrealengine.com/t/enabling-gas-from-visual-studio/2256713)

<div class="topic-metadata">

**Author:** [@Squatch-A-Toon](https://forums.unrealengine.com/u/Squatch-A-Toon)\
**Replies:** 3\
**Last updated:** [January 5, 2025, 2:18pm UTC](https://forums.unrealengine.com/t/enabling-gas-from-visual-studio/2256713 "2025-01-05T14:18:54Z")

</div>

I have run into a fatal issue with a project. I have disabled GAS from the project and upon reload of the editor I am med with a popup window “The Game Module could not be loaded. There may be an operating system error, …

---

## [Finding nodes](https://forums.unrealengine.com/t/finding-nodes/250487)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_4f973aae](https://forums.unrealengine.com/u/anonymous_user_4f973aae)\
**Replies:** 2\
**Last updated:** [January 5, 2025, 1:07pm UTC](https://forums.unrealengine.com/t/finding-nodes/250487 "2025-01-05T13:07:17Z")

</div>

Hello, I am currently working on a simple Octree visualization. Something along the lines of this example UE\_Space\_Partioner\_Using\_TOctree/SpacePartioner.cpp at master · StenBone/UE\_Space\_Partioner\_Using\_TOctree · GitHu…

---

## [StateTree blueprint binding protected C++ property](https://forums.unrealengine.com/t/statetree-blueprint-binding-protected-c-property/2260766)

<div class="topic-metadata">

**Author:** [@guillemsrr](https://forums.unrealengine.com/u/guillemsrr)\
**Replies:** 0\
**Last updated:** [January 5, 2025, 12:36pm UTC](https://forums.unrealengine.com/t/statetree-blueprint-binding-protected-c-property/2260766 "2025-01-05T12:36:57Z")

</div>

As you can see, the Context Actor in the StateTree has a property named StaminaComponent. In a previous version of the Engine I just had the property inside the Actor like this: protected: UPROPERTY(EditDefaultsOnly…

---

## [Call Blueprint function from C++ and get the return value](https://forums.unrealengine.com/t/call-blueprint-function-from-c-and-get-the-return-value/158720)

<div class="topic-metadata">

**Author:** [@Aaron1178](https://forums.unrealengine.com/u/Aaron1178)\
**Replies:** 5\
**Last updated:** [January 5, 2025, 11:35am UTC](https://forums.unrealengine.com/t/call-blueprint-function-from-c-and-get-the-return-value/158720 "2025-01-05T11:35:13Z")

</div>

\*\*What I am trying to achieve: \*\* I am trying to call a blueprint function (if it exists) and get it’s return parameter. Essentially, I’d like to have a map of { “GetPlayer”, “ActualGetPlayerFunctionName” }. Now I am sur…

---

## [Advantages of a Game Instance Subsystem class over static class or a UBlueprintFunctionLibrary](https://forums.unrealengine.com/t/advantages-of-a-game-instance-subsystem-class-over-static-class-or-a-ublueprintfunctionlibrary/2260558)

<div class="topic-metadata">

**Author:** [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Replies:** 1\
**Last updated:** [January 5, 2025, 9:26am UTC](https://forums.unrealengine.com/t/advantages-of-a-game-instance-subsystem-class-over-static-class-or-a-ublueprintfunctionlibrary/2260558 "2025-01-05T09:26:15Z")

</div>

Hi! I’m using Unreal 5.4.4. in a game with C++. I’ve just started to learn about Game Instance subsystem and I’ve been thinking about the advantages of using it instead a class with static methods. I have this doubt b…

---

## [UMG and C++](https://forums.unrealengine.com/t/umg-and-c/100969)

<div class="topic-metadata">

**Author:** [@vydurr](https://forums.unrealengine.com/u/vydurr)\
**Replies:** 1\
**Last updated:** [October 9, 2017, 6:06am UTC](https://forums.unrealengine.com/t/umg-and-c/100969 "2017-10-09T06:06:39Z")

</div>

Hello guys, I am trying to figure out a way to attach a c++ script to a button in umg. What I am basically trying to achieve is a read and write button in UMG which when clicked run c++ scripts for reading text from a t…

---

## [Unreal Engine 1 Free source](https://forums.unrealengine.com/t/unreal-engine-1-free-source/110032)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_f30773a71](https://forums.unrealengine.com/u/anonymous_user_f30773a71)\
**Replies:** 0\
**Last updated:** [April 25, 2018, 9:28am UTC](https://forums.unrealengine.com/t/unreal-engine-1-free-source/110032 "2018-04-25T09:28:39Z")

</div>

The 20th anniversary of the release will be officially released unreal engine 1 source? 20 years of waiting, a long journey…

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

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