# C++

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

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

**Page:** 90

---

## [Brand new project first c++ actor fails.](https://forums.unrealengine.com/t/brand-new-project-first-c-actor-fails/1971220)

<div class="topic-metadata">

**Author:** [@Malcav1an](https://forums.unrealengine.com/u/Malcav1an)\
**Replies:** 3\
**Last updated:** [August 11, 2024, 8:05pm UTC](https://forums.unrealengine.com/t/brand-new-project-first-c-actor-fails/1971220 "2024-08-11T20:05:44Z")

</div>

Hi I have searched up the issue and every solution is delete these folders then recompile and everything works. well i doesn’t for me. There is literally nothing else in the project. Any idea apart from delete x fo…

---

## [How to use Delegate.Contains?](https://forums.unrealengine.com/t/how-to-use-delegate-contains/151765)

<div class="topic-metadata">

**Author:** [@McIntyre94](https://forums.unrealengine.com/u/McIntyre94)\
**Replies:** 4\
**Last updated:** [August 11, 2024, 8:28am UTC](https://forums.unrealengine.com/t/how-to-use-delegate-contains/151765 "2024-08-11T08:28:37Z")

</div>

Hello all I am working on a project using Delegates but I am still pretty new to c++ and have no experience using delegates in it. There is one part where I am checking to see if an object (and its function) are already…

---

## [Pure virtual function being called](https://forums.unrealengine.com/t/pure-virtual-function-being-called/1581890)

<div class="topic-metadata">

**Author:** [@AutisticLittleBoy](https://forums.unrealengine.com/u/AutisticLittleBoy)\
**Replies:** 1\
**Last updated:** [August 11, 2024, 12:45am UTC](https://forums.unrealengine.com/t/pure-virtual-function-being-called/1581890 "2024-08-11T00:45:40Z")

</div>

This error occurs after calling “OpenLevel”, the function exists in my GameInstance, but I don’t get this error when I run the game in PIE, it only exists when running on windows, this problem has been bothering me fo…

---

## [C++ Component broken after rename in constructor](https://forums.unrealengine.com/t/c-component-broken-after-rename-in-constructor/1204603)

<div class="topic-metadata">

**Author:** [@SgtFlexxx](https://forums.unrealengine.com/u/SgtFlexxx)\
**Replies:** 1\
**Last updated:** [August 11, 2024, 12:09am UTC](https://forums.unrealengine.com/t/c-component-broken-after-rename-in-constructor/1204603 "2024-08-11T00:09:38Z")

</div>

Hello, I recently renamed one of my Components in my BaseCharacter class from “HealthComp” to “HealthComponent”, and this rename seems to have broken the component in some ways. It seems that the component is constructe…

---

## [What is the c++ equivalent for random float in range from stream?](https://forums.unrealengine.com/t/what-is-the-c-equivalent-for-random-float-in-range-from-stream/1967990)

<div class="topic-metadata">

**Author:** [@tolacipeetahi](https://forums.unrealengine.com/u/tolacipeetahi)\
**Replies:** 2\
**Last updated:** [August 10, 2024, 5:03am UTC](https://forums.unrealengine.com/t/what-is-the-c-equivalent-for-random-float-in-range-from-stream/1967990 "2024-08-10T05:03:58Z")

</div>

I’ve been using blueprint get random float in range from stream, I don’t see any documentation but maybe my google phrasing was wrong. Also any libraries I need to include, and parameter options would be appreciated.

---

## [Ue 4.27 how to change screen rotation in runtime ( Android ) ](https://forums.unrealengine.com/t/ue-4-27-how-to-change-screen-rotation-in-runtime-android/1968408)

<div class="topic-metadata">

**Author:** [@DMITRJ008](https://forums.unrealengine.com/u/DMITRJ008)\
**Replies:** 0\
**Last updated:** [August 9, 2024, 2:21pm UTC](https://forums.unrealengine.com/t/ue-4-27-how-to-change-screen-rotation-in-runtime-android/1968408 "2024-08-09T14:21:49Z")

</div>

Hi everyone, I’m working on a project in Unreal Engine 4.27 and need to dynamically change the screen orientation at runtime on Android devices. Currently, my project is set to SensorLandscape but I want to switch to Fu…

---

## [Builtin overlap check is too slow. Any alternatives?](https://forums.unrealengine.com/t/builtin-overlap-check-is-too-slow-any-alternatives/1966051)

<div class="topic-metadata">

**Author:** [@Melvin\_Brink](https://forums.unrealengine.com/u/Melvin_Brink)\
**Replies:** 1\
**Last updated:** [August 9, 2024, 12:30pm UTC](https://forums.unrealengine.com/t/builtin-overlap-check-is-too-slow-any-alternatives/1966051 "2024-08-09T12:30:02Z")

</div>

We use the builtin ‘OverlapMultiByChannel’ for checking if a certain shape overlaps anything in the world. Sadly, there is no builtin method that directly compares a given shape and actor, and see if they intersect each …

---

## [UE5 Modbus Client](https://forums.unrealengine.com/t/ue5-modbus-client/1968095)

<div class="topic-metadata">

**Author:** [@eray\_ozr](https://forums.unrealengine.com/u/eray_ozr)\
**Replies:** 0\
**Last updated:** [August 9, 2024, 8:40am UTC](https://forums.unrealengine.com/t/ue5-modbus-client/1968095 "2024-08-09T08:40:28Z")

</div>

UE5 Modbus Client You can access video from my LinkedIn post Updates after video New GUI Writer System RTU Connection Support NULL safety for reader Get Slave Count Get Header Lenght Improved and blueprint exposed e…

---

## [address of header file always incorrect](https://forums.unrealengine.com/t/address-of-header-file-always-incorrect/1968059)

<div class="topic-metadata">

**Author:** [@Dark6gg](https://forums.unrealengine.com/u/Dark6gg)\
**Replies:** 0\
**Last updated:** [August 9, 2024, 7:51am UTC](https://forums.unrealengine.com/t/address-of-header-file-always-incorrect/1968059 "2024-08-09T07:51:24Z")

</div>

I’m new to c++. I’ve noticed that, every time I create a new c++ class, when the engine auto-compiles, there’s always a compilation error. For the past few days it has hunted me, but I finally understand what caused it:…

---

## [\[Tutorial\] Pixel and Compute Shaders in UE4](https://forums.unrealengine.com/t/tutorial-pixel-and-compute-shaders-in-ue4/20593)

<div class="topic-metadata">

**Author:** [@Temaran](https://forums.unrealengine.com/u/Temaran)\
**Replies:** 60\
**Last updated:** [August 8, 2024, 8:15pm UTC](https://forums.unrealengine.com/t/tutorial-pixel-and-compute-shaders-in-ue4/20593 "2024-08-08T20:15:35Z")

</div>

Hello everyone! As always, I’m not sure if post fits best in the rendering forum or the C++ one, but I chose C++ again because it might be slightly more relevant. It’s been a while, but I’ve put together a new tutoria…

---

## [PlayfabGSDK crashing my game. It works for my other teamates..](https://forums.unrealengine.com/t/playfabgsdk-crashing-my-game-it-works-for-my-other-teamates/1955191)

<div class="topic-metadata">

**Author:** [@BigWiz777](https://forums.unrealengine.com/u/BigWiz777)\
**Replies:** 1\
**Last updated:** [August 8, 2024, 7:50pm UTC](https://forums.unrealengine.com/t/playfabgsdk-crashing-my-game-it-works-for-my-other-teamates/1955191 "2024-08-08T19:50:52Z")

</div>

My game keeps crashing everytime I hit play. Me and my friends share a github repository and they are all able to press play and use the game. I was able to too till about 4 days ago. This is the stack trace. nt…

---

## [Cloned Project Fails to Build Due to Include Order and AbilitySystemInterface Errors](https://forums.unrealengine.com/t/cloned-project-fails-to-build-due-to-include-order-and-abilitysysteminterface-errors/1967042)

<div class="topic-metadata">

**Author:** [@Varod.47](https://forums.unrealengine.com/u/Varod.47)\
**Replies:** 0\
**Last updated:** [August 8, 2024, 1:10pm UTC](https://forums.unrealengine.com/t/cloned-project-fails-to-build-due-to-include-order-and-abilitysysteminterface-errors/1967042 "2024-08-08T13:10:29Z")

</div>

Hi everyone, I’m currently working on a project that I cloned from a GitHub repository. However, after cloning the project, I encountered several build issues that I haven’t been able to resolve. Below is the relevant p…

---

## [Rider 2024.1 says UFUNCTION is not implemented/used in blueprints when it clearly is](https://forums.unrealengine.com/t/rider-2024-1-says-ufunction-is-not-implemented-used-in-blueprints-when-it-clearly-is/1966133)

<div class="topic-metadata">

**Author:** [@SlugsGate](https://forums.unrealengine.com/u/SlugsGate)\
**Replies:** 0\
**Last updated:** [August 7, 2024, 8:13pm UTC](https://forums.unrealengine.com/t/rider-2024-1-says-ufunction-is-not-implemented-used-in-blueprints-when-it-clearly-is/1966133 "2024-08-07T20:13:42Z")

</div>

Any UFUNCTION I create whether it be a BlueprintImplementableEvent or a BlueprintNativeEvent, Rider always says it has not been implemented/used in blueprints. The UFUNCTION’s usages report correctly in C++ but not if I …

---

## [Is FMatrix 4x3? Where's the 4x4 matrix?](https://forums.unrealengine.com/t/is-fmatrix-4x3-wheres-the-4x4-matrix/376131)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_c8cdff6f](https://forums.unrealengine.com/u/anonymous_user_c8cdff6f)\
**Replies:** 3\
**Last updated:** [August 7, 2024, 6:17pm UTC](https://forums.unrealengine.com/t/is-fmatrix-4x3-wheres-the-4x4-matrix/376131 "2024-08-07T18:17:44Z")

</div>

So I was trying to do some matrix math today in Unreal and noticed that in the docs it states that FMatrix is 4x4, but the constructor overloads only work with FVector (and not FVector4)?! So what kind of matrix type has…

---

## [How to custom name a spawned Actor through Python API ?](https://forums.unrealengine.com/t/how-to-custom-name-a-spawned-actor-through-python-api/715191)

<div class="topic-metadata">

**Author:** [@ronyshaji1](https://forums.unrealengine.com/u/ronyshaji1)\
**Replies:** 1\
**Last updated:** [August 7, 2024, 1:11pm UTC](https://forums.unrealengine.com/t/how-to-custom-name-a-spawned-actor-through-python-api/715191 "2024-08-07T13:11:59Z")

</div>

Hallo I am using the Python API to spawn the actors to the world. I am using a code similar to the below mentioned. It is working and now i want to improvise a little. I need a way to custom name the spawned actor in th…

---

## [Transient component is still saved/loaded](https://forums.unrealengine.com/t/transient-component-is-still-saved-loaded/378742)

<div class="topic-metadata">

**Author:** [@devast3d](https://forums.unrealengine.com/u/devast3d)\
**Replies:** 6\
**Last updated:** [August 7, 2024, 12:53pm UTC](https://forums.unrealengine.com/t/transient-component-is-still-saved-loaded/378742 "2024-08-07T12:53:02Z")

</div>

I’ve got following code in my actor // header ... #if WITH\_EDITOR UPROPERTY(Transient) class UProceduralMeshComponent\* ProceduralMesh; #endif ... // cpp, constructor ... #if WITH\_EDITOR static ConstructorHelpers::FOb…

---

## [How to make a dynamic 2D pie chart using c++?](https://forums.unrealengine.com/t/how-to-make-a-dynamic-2d-pie-chart-using-c/1965315)

<div class="topic-metadata">

**Author:** [@TomSS](https://forums.unrealengine.com/u/TomSS)\
**Replies:** 0\
**Last updated:** [August 7, 2024, 7:12am UTC](https://forums.unrealengine.com/t/how-to-make-a-dynamic-2d-pie-chart-using-c/1965315 "2024-08-07T07:12:41Z")

</div>

No BP or plugins. Thanks for any tips

---

## [Invalid enum from c++ code](https://forums.unrealengine.com/t/invalid-enum-from-c-code/1965004)

<div class="topic-metadata">

**Author:** [@llMJOll](https://forums.unrealengine.com/u/llMJOll)\
**Replies:** 1\
**Last updated:** [August 7, 2024, 4:36am UTC](https://forums.unrealengine.com/t/invalid-enum-from-c-code/1965004 "2024-08-07T04:36:48Z")

</div>

I wrote a code that finds a random value by weight, but returns invalid . Only the first value returns normally Enum was created in blueprint void UFLRandomNumberGenerator::GetRandomWeightedEntryFromMap(const TArray\<UP…

---

## [FScreenshotRequest::RequestScreenshot takes very low-quality screenshots in UE5](https://forums.unrealengine.com/t/fscreenshotrequest-requestscreenshot-takes-very-low-quality-screenshots-in-ue5/512232)

<div class="topic-metadata">

**Author:** [@BrunoCaxito](https://forums.unrealengine.com/u/BrunoCaxito)\
**Replies:** 1\
**Last updated:** [August 7, 2024, 2:40am UTC](https://forums.unrealengine.com/t/fscreenshotrequest-requestscreenshot-takes-very-low-quality-screenshots-in-ue5/512232 "2024-08-07T02:40:23Z")

</div>

FScreenshotRequest::RequestScreenshot is taking very low-quality screenshots in UE5. Same for the Take Screenshot command in editor Widget Blueprints. Here is a comparison between UE4 and UE5: Is there a way to chang…

---

## [Making a Post to Twitter From a UE4 Game](https://forums.unrealengine.com/t/making-a-post-to-twitter-from-a-ue4-game/152258)

<div class="topic-metadata">

**Author:** [@Zargy](https://forums.unrealengine.com/u/Zargy)\
**Replies:** 2\
**Last updated:** [August 6, 2024, 6:37pm UTC](https://forums.unrealengine.com/t/making-a-post-to-twitter-from-a-ue4-game/152258 "2024-08-06T18:37:32Z")

</div>

I want to take an image from disk (either pre-defined or saved dynamically) and have a webpage open to twitter, prompting the user to tweet the image. I’ve searched and I haven’t found anything recent for twitter integra…

---

## [Automation Tests using Subsystem](https://forums.unrealengine.com/t/automation-tests-using-subsystem/467211)

<div class="topic-metadata">

**Author:** [@Lawendt](https://forums.unrealengine.com/u/Lawendt)\
**Replies:** 3\
**Last updated:** [August 6, 2024, 5:04pm UTC](https://forums.unrealengine.com/t/automation-tests-using-subsystem/467211 "2024-08-06T17:04:14Z")

</div>

Hello, I want to write tests to test a subsystem, but I couldn’t find a way of creating the subsystem in the test scope. CreateNew doesn’t work and I don’t know how to even get the game instance so I can access it. And …

---

## [Проблема компиляции на C++ в Unreal Engine 5](https://forums.unrealengine.com/t/c-unreal-engine-5/1964364)

<div class="topic-metadata">

**Author:** [@MEOWSCULE](https://forums.unrealengine.com/u/MEOWSCULE)\
**Replies:** 8\
**Last updated:** [August 6, 2024, 3:13pm UTC](https://forums.unrealengine.com/t/c-unreal-engine-5/1964364 "2024-08-06T15:13:23Z")

</div>

Уже третий раз задаю вопрос,дополнил и объединил его.Здравствуйте!(Предыстория) Вот учу я значит C++ уже два месяца и мне что то стало скучно программировать (в этот день) и я думаю,блин,ну раз идти в гейм дев,то нужно п…

---

## [An error when build my NNE demo](https://forums.unrealengine.com/t/an-error-when-build-my-nne-demo/1964229)

<div class="topic-metadata">

**Author:** [@\_andy\_1](https://forums.unrealengine.com/u/_andy_1)\
**Replies:** 1\
**Last updated:** [August 6, 2024, 2:50pm UTC](https://forums.unrealengine.com/t/an-error-when-build-my-nne-demo/1964229 "2024-08-06T14:50:25Z")

</div>

I got an error when i run build order Build.bat -target="EcmosimulationEditor Win64 Development" "E:\\UE\\XXX.uproject" -waitmutex --- \[3/4\] Link \[x64\] UnrealEditor-ECMOSimulation.dll 正在创建库 E:\\UE\\Intermediate\\Build\\Win6…

---

## [TArray\<FVector\> to Render Target pixels/Canvas - how to do it FAST?](https://forums.unrealengine.com/t/tarray-fvector-to-render-target-pixels-canvas-how-to-do-it-fast/550694)

<div class="topic-metadata">

**Author:** [@Rufus170](https://forums.unrealengine.com/u/Rufus170)\
**Replies:** 1\
**Last updated:** [August 6, 2024, 11:31am UTC](https://forums.unrealengine.com/t/tarray-fvector-to-render-target-pixels-canvas-how-to-do-it-fast/550694 "2024-08-06T11:31:58Z")

</div>

Hi, I need to pass an array of vectors(RTS Unit positions) to niagara per frame As Set Niagara Vector Array Function doesn’t work (temporarily???) for some reason, I need to find another solution First thing I though…

---

## [FRegexPattern constructor not found](https://forums.unrealengine.com/t/fregexpattern-constructor-not-found/1964013)

<div class="topic-metadata">

**Author:** [@TheEversor](https://forums.unrealengine.com/u/TheEversor)\
**Replies:** 0\
**Last updated:** [August 6, 2024, 10:04am UTC](https://forums.unrealengine.com/t/fregexpattern-constructor-not-found/1964013 "2024-08-06T10:04:09Z")

</div>

Hello, i’m pretty new to c++ and ue so sorry if this is a stupid question… i’m struggling a little to use the FRegexPattern and FRegexMatcher in my module. Seems like it’s not finding the constructors that take a FStri…

---

## [Issue with Replicating Inventory Contents in UE5.4 - Array of Null pointers](https://forums.unrealengine.com/t/issue-with-replicating-inventory-contents-in-ue5-4-array-of-null-pointers/1962887)

<div class="topic-metadata">

**Author:** [@Dandeusz](https://forums.unrealengine.com/u/Dandeusz)\
**Replies:** 6\
**Last updated:** [August 6, 2024, 7:54am UTC](https://forums.unrealengine.com/t/issue-with-replicating-inventory-contents-in-ue5-4-array-of-null-pointers/1962887 "2024-08-06T07:54:18Z")

</div>

Hello everyone, I’m experiencing an issue with my inventory system in UE5.4 and would appreciate any suggestions. I have a class UInventoryActorComponent : public UActorComponent attached to my APlayerCharacter class. …

---

## [How to return multiple values by reference with TTuple?](https://forums.unrealengine.com/t/how-to-return-multiple-values-by-reference-with-ttuple/1936963)

<div class="topic-metadata">

**Author:** [@mutedhue](https://forums.unrealengine.com/u/mutedhue)\
**Replies:** 6\
**Last updated:** [August 6, 2024, 7:10am UTC](https://forums.unrealengine.com/t/how-to-return-multiple-values-by-reference-with-ttuple/1936963 "2024-08-06T07:10:38Z")

</div>

I’m trying to return 2 values by reference through a TTuple. Each value is a TArray of a UStruct type. However I get the following error “No suitable conversion from std::decay\<…\> to \<…\>” I’m pretty new to C++ so wonderi…

---

## [Issue with UBlueprint Sharing the Same Generated Class (Editor Module)](https://forums.unrealengine.com/t/issue-with-ublueprint-sharing-the-same-generated-class-editor-module/1962584)

<div class="topic-metadata">

**Author:** [@Aaron1178](https://forums.unrealengine.com/u/Aaron1178)\
**Replies:** 0\
**Last updated:** [August 5, 2024, 8:49am UTC](https://forums.unrealengine.com/t/issue-with-ublueprint-sharing-the-same-generated-class-editor-module/1962584 "2024-08-05T08:49:14Z")

</div>

Context: I’m working on a dialogue system in Unreal Engine where each dialogue branch has a condition evaluated via a dynamically created blueprint. Each branch has a condition (UDialogueBranchCondition) which contains a…

---

## [Is there is any method to pack game in unreal engine 5.4.2 with ES 3.1](https://forums.unrealengine.com/t/is-there-is-any-method-to-pack-game-in-unreal-engine-5-4-2-with-es-3-1/1963649)

<div class="topic-metadata">

**Author:** [@SAKSHAMBharat](https://forums.unrealengine.com/u/SAKSHAMBharat)\
**Replies:** 0\
**Last updated:** [August 6, 2024, 3:16am UTC](https://forums.unrealengine.com/t/is-there-is-any-method-to-pack-game-in-unreal-engine-5-4-2-with-es-3-1/1963649 "2024-08-06T03:16:33Z")

</div>

Since unreal engine out of support for ES3.1 it’s not good however is there any chance to update the game ES 3.1

---

## [c++ Problem using SQLiteCore and SQLiteSupport plugins](https://forums.unrealengine.com/t/c-problem-using-sqlitecore-and-sqlitesupport-plugins/1673177)

<div class="topic-metadata">

**Author:** [@Commander\_Nimrod](https://forums.unrealengine.com/u/Commander_Nimrod)\
**Replies:** 1\
**Last updated:** [August 6, 2024, 1:33am UTC](https://forums.unrealengine.com/t/c-problem-using-sqlitecore-and-sqlitesupport-plugins/1673177 "2024-08-06T01:33:26Z")

</div>

I have the plugins working fine when using any Visual Studio configuration that runs through the Editor. But when I run say the GameDebug configuration I get: LogSQLiteDatabase: Warning: Failed to open database ‘file pa…

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

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