# C++

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

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

**Page:** 79

---

## [Garbage collection, creating UObject while collecting garbage is not allowed](https://forums.unrealengine.com/t/garbage-collection-creating-uobject-while-collecting-garbage-is-not-allowed/2051311)

<div class="topic-metadata">

**Author:** [@Elites94](https://forums.unrealengine.com/u/Elites94)\
**Replies:** 1\
**Last updated:** [October 4, 2024, 8:36am UTC](https://forums.unrealengine.com/t/garbage-collection-creating-uobject-while-collecting-garbage-is-not-allowed/2051311 "2024-10-04T08:36:32Z")

</div>

Hello, I have an issue with garbage collection and I would like to know how I can find what is causing that… I have a game server in 4.26, and the fatal error “Creating UObjects while Collecting Garbage is not allowed!…

---

## [Creating a movement system for all actors](https://forums.unrealengine.com/t/creating-a-movement-system-for-all-actors/2049368)

<div class="topic-metadata">

**Author:** [@Supermatta321](https://forums.unrealengine.com/u/Supermatta321)\
**Replies:** 8\
**Last updated:** [October 4, 2024, 7:38am UTC](https://forums.unrealengine.com/t/creating-a-movement-system-for-all-actors/2049368 "2024-10-04T07:38:19Z")

</div>

Hi, I am currently creating a movement system where I have actor components that control the state of each actor, and a single actor that actually ticks all the movement. However I am struggling with replicating this. I …

---

## [C++ Structs doesnt work](https://forums.unrealengine.com/t/c-structs-doesnt-work/2050145)

<div class="topic-metadata">

**Author:** [@AdamGaming\_CZ](https://forums.unrealengine.com/u/AdamGaming_CZ)\
**Replies:** 12\
**Last updated:** [October 4, 2024, 1:32am UTC](https://forums.unrealengine.com/t/c-structs-doesnt-work/2050145 "2024-10-04T01:32:56Z")

</div>

Hi, I am trying to create struct in c++ but it shows me like 20 errors for some unknown reason. All errors are syntax or something stupid. Its really weird :confused:

---

## [Project could not be compiled. Try rebuilding from source manually ERROR !Help please!](https://forums.unrealengine.com/t/project-could-not-be-compiled-try-rebuilding-from-source-manually-error-help-please/106203)

<div class="topic-metadata">

**Author:** [@jabbawalden](https://forums.unrealengine.com/u/jabbawalden)\
**Replies:** 13\
**Last updated:** [October 3, 2024, 8:58pm UTC](https://forums.unrealengine.com/t/project-could-not-be-compiled-try-rebuilding-from-source-manually-error-help-please/106203 "2024-10-03T20:58:22Z")

</div>

Hey. Was unsure where to post this issue; I hope I am in the right place. I am receiving the following errors: "The following modules are missing or built with a different engine version: UE4Editor-BattleTank.dll Wou…

---

## [Updating Uproperties in the editor afte they are modified prodeducarlly.](https://forums.unrealengine.com/t/updating-uproperties-in-the-editor-afte-they-are-modified-prodeducarlly/2046357)

<div class="topic-metadata">

**Author:** [@JulioJerez](https://forums.unrealengine.com/u/JulioJerez)\
**Replies:** 4\
**Last updated:** [October 3, 2024, 5:10pm UTC](https://forums.unrealengine.com/t/updating-uproperties-in-the-editor-afte-they-are-modified-prodeducarlly/2046357 "2024-10-03T17:10:24Z")

</div>

Hi. I finally have the class UNewtonCollisionPrimitive : public UDynamicMeshComponent working more or less as I want it. however still has some problems that I can’t find a solution for. the video bellow show what I …

---

## [Online Services (V2) with Lyra project](https://forums.unrealengine.com/t/online-services-v2-with-lyra-project/1305390)

<div class="topic-metadata">

**Author:** [@OmegaSyrus](https://forums.unrealengine.com/u/OmegaSyrus)\
**Replies:** 1\
**Last updated:** [October 3, 2024, 3:42pm UTC](https://forums.unrealengine.com/t/online-services-v2-with-lyra-project/1305390 "2024-10-03T15:42:00Z")

</div>

I’m trying to experiment with the Online Services interface with the Lyra project, but it keeps crashing on LocalPlayer-\>GetPlayerNickname() because the UserId referenced by OnlineIdentityNull interface is empty Is ther…

---

## [UTexture::UpdateResource() overwrote by winbase.h #define](https://forums.unrealengine.com/t/utexture-updateresource-overwrote-by-winbase-h-define/95627)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_f9e5c401](https://forums.unrealengine.com/u/anonymous_user_f9e5c401)\
**Replies:** 5\
**Last updated:** [October 3, 2024, 1:55pm UTC](https://forums.unrealengine.com/t/utexture-updateresource-overwrote-by-winbase-h-define/95627 "2024-10-03T13:55:25Z")

</div>

I have a UTexture2D\* variable called texture. UTexture2D has a function called UpdateResource(). WinBase.h has a macro called “UpdateResource” that calls “UpdateResourceW”. When I call “texture-\>UpdateResource();”, I get…

---

## [Smooth loading screen with Movie player](https://forums.unrealengine.com/t/smooth-loading-screen-with-movie-player/2047718)

<div class="topic-metadata">

**Author:** [@DzikiJanusz](https://forums.unrealengine.com/u/DzikiJanusz)\
**Replies:** 2\
**Last updated:** [October 3, 2024, 11:08am UTC](https://forums.unrealengine.com/t/smooth-loading-screen-with-movie-player/2047718 "2024-10-03T11:08:02Z")

</div>

Hey everyone, quick question about movie player, when I call function OpenLevel from Level A to LevelB movie is played but when Level B is loaded and we open it, movie player instantly dissapear, can I make it play all t…

---

## [How to attach an arrow to a bow string?](https://forums.unrealengine.com/t/how-to-attach-an-arrow-to-a-bow-string/2050231)

<div class="topic-metadata">

**Author:** [@Hukiozkentukii](https://forums.unrealengine.com/u/Hukiozkentukii)\
**Replies:** 0\
**Last updated:** [October 2, 2024, 7:14pm UTC](https://forums.unrealengine.com/t/how-to-attach-an-arrow-to-a-bow-string/2050231 "2024-10-02T19:14:27Z")

</div>

Hello guys. Im very new to unreal engine and currently learning projectiles at university. But i have a problem - i have to do ranged weapon foe Egypt. So i chose bow. And i have a problem with attaching it to socket on…

---

## [Modifying Input pin data objects corrupts the whole node chain](https://forums.unrealengine.com/t/modifying-input-pin-data-objects-corrupts-the-whole-node-chain/2049692)

<div class="topic-metadata">

**Author:** [@Psijic\_Void](https://forums.unrealengine.com/u/Psijic_Void)\
**Replies:** 0\
**Last updated:** [October 2, 2024, 1:15pm UTC](https://forums.unrealengine.com/t/modifying-input-pin-data-objects-corrupts-the-whole-node-chain/2049692 "2024-10-02T13:15:26Z")

</div>

I did remove some points from my InputData array and it changed the whole Input/Output chain even for a PCG node before. I thought, they should be more independent and create separate (non-referenced) pin variables, beca…

---

## [LIdar visualizationon Widget](https://forums.unrealengine.com/t/lidar-visualizationon-widget/2049517)

<div class="topic-metadata">

**Author:** [@Ahmed\_S\_Nassar](https://forums.unrealengine.com/u/Ahmed_S_Nassar)\
**Replies:** 1\
**Last updated:** [October 2, 2024, 11:33am UTC](https://forums.unrealengine.com/t/lidar-visualizationon-widget/2049517 "2024-10-02T11:33:55Z")

</div>

Hello everyone, I have a lidar and i want to Visualize the results on the hit point on a widget I tried to make a widget with an image inside to visulize on it but it’s not working with me anyone know how to make it?

---

## [EnhancedInput | UserSettings are null](https://forums.unrealengine.com/t/enhancedinput-usersettings-are-null/2047983)

<div class="topic-metadata">

**Author:** [@GhostDeveloper](https://forums.unrealengine.com/u/GhostDeveloper)\
**Replies:** 2\
**Last updated:** [October 2, 2024, 4:20am UTC](https://forums.unrealengine.com/t/enhancedinput-usersettings-are-null/2047983 "2024-10-02T04:20:01Z")

</div>

Hi! I’m trying to figure out how to work with user settings (keyboard hotkeys, etc.) and I have one problem: when I try to pull out the current input settings, the settings are null. That’s how i try to get it: if (con…

---

## [How to setup crash reporter client?](https://forums.unrealengine.com/t/how-to-setup-crash-reporter-client/1155464)

<div class="topic-metadata">

**Author:** [@Kokapuk](https://forums.unrealengine.com/u/Kokapuk)\
**Replies:** 2\
**Last updated:** [October 2, 2024, 1:03am UTC](https://forums.unrealengine.com/t/how-to-setup-crash-reporter-client/1155464 "2024-10-02T01:03:03Z")

</div>

I’m interested in using crash reporter, so if my players encounter some fatal errors they can send data to me, i can inspect it and find out what was the problem. How can i setup crash reporter for my ue game?

---

## [C++ extensions](https://forums.unrealengine.com/t/c-extensions/2037167)

<div class="topic-metadata">

**Author:** [@Psijic\_Void](https://forums.unrealengine.com/u/Psijic_Void)\
**Replies:** 3\
**Last updated:** [October 1, 2024, 11:57pm UTC](https://forums.unrealengine.com/t/c-extensions/2037167 "2024-10-01T23:57:58Z")

</div>

If Cpp has very complex and unoptimized syntax by design, so the baseline time to compile is pretty high. Other languages with well thought-out syntaxes (go, zig, odin, even C itself) compile much faster. and A inc…

---

## [New Blank project - Folder C++ classes missing so can't create new C++ class](https://forums.unrealengine.com/t/new-blank-project-folder-c-classes-missing-so-cant-create-new-c-class/2047729)

<div class="topic-metadata">

**Author:** [@s.giammori](https://forums.unrealengine.com/u/s.giammori)\
**Replies:** 2\
**Last updated:** [October 1, 2024, 9:35pm UTC](https://forums.unrealengine.com/t/new-blank-project-folder-c-classes-missing-so-cant-create-new-c-class/2047729 "2024-10-01T21:35:41Z")

</div>

I can’t create new C++ class because “C++ classes” folder missing in a new Blank game project.

---

## [Select the PlayerStart where to spawn the player](https://forums.unrealengine.com/t/select-the-playerstart-where-to-spawn-the-player/2040699)

<div class="topic-metadata">

**Author:** [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Replies:** 3\
**Last updated:** [October 1, 2024, 4:53am UTC](https://forums.unrealengine.com/t/select-the-playerstart-where-to-spawn-the-player/2040699 "2024-10-01T04:53:33Z")

</div>

Hi! I’m using Unreal Engine 5.3.2. On a Single Player level I have two PlayerStarts, each with different tags, and I want to set the PlayerStart where I want to spawn the Player. To do it, I’ve been checking the AGame…

---

## [Background strange mirroring effect](https://forums.unrealengine.com/t/background-strange-mirroring-effect/2046899)

<div class="topic-metadata">

**Author:** [@KassidyDavila](https://forums.unrealengine.com/u/KassidyDavila)\
**Replies:** 0\
**Last updated:** [October 1, 2024, 2:27am UTC](https://forums.unrealengine.com/t/background-strange-mirroring-effect/2046899 "2024-10-01T02:27:59Z")

</div>

Hi, I have a scene inside a spaceship. At one position I have a window and since today I have the problem, that the background (Skybox) has a strange mirroring effect. I’m using Unity 2023.2.20f1 with a camera and Cinem…

---

## [How do Lock Screen Widgets like Glance change the way you use your phone ?](https://forums.unrealengine.com/t/how-do-lock-screen-widgets-like-glance-change-the-way-you-use-your-phone/2046842)

<div class="topic-metadata">

**Author:** [@Chimtodan49](https://forums.unrealengine.com/u/Chimtodan49)\
**Replies:** 0\
**Last updated:** [October 1, 2024, 1:27am UTC](https://forums.unrealengine.com/t/how-do-lock-screen-widgets-like-glance-change-the-way-you-use-your-phone/2046842 "2024-10-01T01:27:13Z")

</div>

So I lately I have been hearing lot about Glance and it’s features and how cool is this Glance thing is but to be honest I think this is overhyped and overrated thing do any of you guys use this give me your honest revie…

---

## [Help me root my phone please!](https://forums.unrealengine.com/t/help-me-root-my-phone-please/2046836)

<div class="topic-metadata">

**Author:** [@IsraelMiles](https://forums.unrealengine.com/u/IsraelMiles)\
**Replies:** 0\
**Last updated:** [October 1, 2024, 1:24am UTC](https://forums.unrealengine.com/t/help-me-root-my-phone-please/2046836 "2024-10-01T01:24:46Z")

</div>

I have a Red Magic 8s pro that is running Android 14. How do I root it without a PC?

---

## [Souls-like respawn system](https://forums.unrealengine.com/t/souls-like-respawn-system/2046104)

<div class="topic-metadata">

**Author:** [@AdamGaming\_CZ](https://forums.unrealengine.com/u/AdamGaming_CZ)\
**Replies:** 3\
**Last updated:** [October 1, 2024, 12:16am UTC](https://forums.unrealengine.com/t/souls-like-respawn-system/2046104 "2024-10-01T00:16:52Z")

</div>

“I’m trying to set up a respawn system where I get all the actors at the start of the game and then respawn them by referencing the ones I got before. But it’s acting all wacky—sometimes it kills actors, sometimes it doe…

---

## [Build fail when running debugger - MSB3073 with exit code 8](https://forums.unrealengine.com/t/build-fail-when-running-debugger-msb3073-with-exit-code-8/2046737)

<div class="topic-metadata">

**Author:** [@bippyxoxo](https://forums.unrealengine.com/u/bippyxoxo)\
**Replies:** 0\
**Last updated:** [September 30, 2024, 10:58pm UTC](https://forums.unrealengine.com/t/build-fail-when-running-debugger-msb3073-with-exit-code-8/2046737 "2024-09-30T22:58:59Z")

</div>

I’ve been following along a tutorial for making retro games (https://youtu.be/hF6-m4Jjc0g?si=PljuvQLAEe--YjhQ) and I’ve gotten along so far just fine, though the actor animation sequence broke so the weapon no longer bob…

---

## [Conditional component inheritance dependant on plugin](https://forums.unrealengine.com/t/conditional-component-inheritance-dependant-on-plugin/2040966)

<div class="topic-metadata">

**Author:** [@Morpheus](https://forums.unrealengine.com/u/Morpheus)\
**Replies:** 3\
**Last updated:** [September 30, 2024, 11:34am UTC](https://forums.unrealengine.com/t/conditional-component-inheritance-dependant-on-plugin/2040966 "2024-09-30T11:34:53Z")

</div>

Hi, Im hoping someone can help me with this design decision. I have a plugin which has ActorComponentA that grants some specific visual features to the actor it is attached to. It has a number of properties and functio…

---

## [Converting TArray\<uint8\> from OpenAI TTS API to USoundWave in Unreal Engine (No Paid Plugins)](https://forums.unrealengine.com/t/converting-tarray-uint8-from-openai-tts-api-to-usoundwave-in-unreal-engine-no-paid-plugins/2022544)

<div class="topic-metadata">

**Author:** [@Shripad\_Agashe](https://forums.unrealengine.com/u/Shripad_Agashe)\
**Replies:** 1\
**Last updated:** [September 30, 2024, 12:15pm UTC](https://forums.unrealengine.com/t/converting-tarray-uint8-from-openai-tts-api-to-usoundwave-in-unreal-engine-no-paid-plugins/2022544 "2024-09-30T12:15:45Z")

</div>

I am working on integrating OpenAI’s Text-to-Speech (TTS) API with Unreal Engine to get audio responses in binary format. I am receiving the binary audio data in a TArray\<uint8\> format from FHttpResponsePtr, specifically…

---

## [Without any change, unreal build with Thousands of build action again](https://forums.unrealengine.com/t/without-any-change-unreal-build-with-thousands-of-build-action-again/2040177)

<div class="topic-metadata">

**Author:** [@user\_47352f7f087ad8](https://forums.unrealengine.com/u/user_47352f7f087ad8)\
**Replies:** 2\
**Last updated:** [September 30, 2024, 7:59am UTC](https://forums.unrealengine.com/t/without-any-change-unreal-build-with-thousands-of-build-action-again/2040177 "2024-09-30T07:59:58Z")

</div>

First, I build unreal engine and the project and run them from VS2022 in debug mode successfully. Then, I close the editor,and do not change any character code. Next, I run editor again from VS2022 in debug mode. It de…

---

## [SWebBrowser ExecuteJavascript](https://forums.unrealengine.com/t/swebbrowser-executejavascript/2040953)

<div class="topic-metadata">

**Author:** [@Emaer](https://forums.unrealengine.com/u/Emaer)\
**Replies:** 1\
**Last updated:** [September 30, 2024, 7:57am UTC](https://forums.unrealengine.com/t/swebbrowser-executejavascript/2040953 "2024-09-30T07:57:01Z")

</div>

Has anyone played around with the SWebBrowser class? My question is about the ExecuteJavascript function. Is it blocking or asynchronous? I can’t find any information. Can I process data produced by the called JS scrip…

---

## [Load in object from second layer to spawn position](https://forums.unrealengine.com/t/load-in-object-from-second-layer-to-spawn-position/2045658)

<div class="topic-metadata">

**Author:** [@IsraelMiles](https://forums.unrealengine.com/u/IsraelMiles)\
**Replies:** 0\
**Last updated:** [September 30, 2024, 7:01am UTC](https://forums.unrealengine.com/t/load-in-object-from-second-layer-to-spawn-position/2045658 "2024-09-30T07:01:22Z")

</div>

Hi, I can’t get this object to load into the player’s location. It will only load from the player’s location or move to the second layer at this position. In the game, it doesn’t load, I am guessing it does, but it loa…

---

## [\[C++\] Using Gameplay Ability System in a straightforward FPS Is It Overkill?](https://forums.unrealengine.com/t/c-using-gameplay-ability-system-in-a-straightforward-fps-is-it-overkill/2032910)

<div class="topic-metadata">

**Author:** [@ofekSusanTrainer](https://forums.unrealengine.com/u/ofekSusanTrainer)\
**Replies:** 4\
**Last updated:** [September 30, 2024, 5:17am UTC](https://forums.unrealengine.com/t/c-using-gameplay-ability-system-in-a-straightforward-fps-is-it-overkill/2032910 "2024-09-30T05:17:13Z")

</div>

Hi everyone, I’m working on a realistic first person shooter in Unreal Engine 5, and I’m considering using the Gameplay Ability System (GAS). From what I’ve seen, GAS is mainly used for RPGs and hero shooters since thos…

---

## [Calling functions implemented by C++in the blueprint and the usage of UFUNCATION](https://forums.unrealengine.com/t/calling-functions-implemented-by-c-in-the-blueprint-and-the-usage-of-ufuncation/2044262)

<div class="topic-metadata">

**Author:** [@qiuter](https://forums.unrealengine.com/u/qiuter)\
**Replies:** 2\
**Last updated:** [September 29, 2024, 4:04pm UTC](https://forums.unrealengine.com/t/calling-functions-implemented-by-c-in-the-blueprint-and-the-usage-of-ufuncation/2044262 "2024-09-29T16:04:00Z")

</div>

May I ask what this symbol on the blueprint means? How should I add this symbol to a function I want to write in C++.

---

## [Where are the coordinates of the player's initial position listed?](https://forums.unrealengine.com/t/where-are-the-coordinates-of-the-players-initial-position-listed/2044137)

<div class="topic-metadata">

**Author:** [@launched\_momonga](https://forums.unrealengine.com/u/launched_momonga)\
**Replies:** 4\
**Last updated:** [September 29, 2024, 1:55pm UTC](https://forums.unrealengine.com/t/where-are-the-coordinates-of-the-players-initial-position-listed/2044137 "2024-09-29T13:55:48Z")

</div>

Where are the coordinates of the player’s initial position in the Lyra Starter Game listed in the program?

---

## [Packaging a third-party library with a plugin for Unreal Marketplace](https://forums.unrealengine.com/t/packaging-a-third-party-library-with-a-plugin-for-unreal-marketplace/2043123)

<div class="topic-metadata">

**Author:** [@RollinFields](https://forums.unrealengine.com/u/RollinFields)\
**Replies:** 0\
**Last updated:** [September 28, 2024, 7:21pm UTC](https://forums.unrealengine.com/t/packaging-a-third-party-library-with-a-plugin-for-unreal-marketplace/2043123 "2024-09-28T19:21:04Z")

</div>

In this thread, I show a way to include a static Third-Party (.lib) with a plugin. It is necessary to put the third-party library (code, includes and .lib files) into the following location: /(ProjectName)/Plugins/(P…

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

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