# C++

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

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

**Page:** 99

---

## [Paper2D: Setting sprites in Sprite Actors dynamically in C++](https://forums.unrealengine.com/t/paper2d-setting-sprites-in-sprite-actors-dynamically-in-c/1920204)

<div class="topic-metadata">

**Author:** [@Lenka\_Pitonakova](https://forums.unrealengine.com/u/Lenka_Pitonakova)\
**Replies:** 0\
**Last updated:** [June 28, 2024, 11:43pm UTC](https://forums.unrealengine.com/t/paper2d-setting-sprites-in-sprite-actors-dynamically-in-c/1920204 "2024-06-28T23:43:24Z")

</div>

I have a number of assets that I imported for various “items” in my game. I have converted each asset into a Sprite. In C++, I have subclassed a class ASLBaseSpriteActor from APaperSpriteActor, so that I can dynamically…

---

## [Unable to access steam api objects](https://forums.unrealengine.com/t/unable-to-access-steam-api-objects/1918423)

<div class="topic-metadata">

**Author:** [@Firesrest\_Dev](https://forums.unrealengine.com/u/Firesrest_Dev)\
**Replies:** 1\
**Last updated:** [June 28, 2024, 4:28pm UTC](https://forums.unrealengine.com/t/unable-to-access-steam-api-objects/1918423 "2024-06-28T16:28:28Z")

</div>

When I attempt to use types such as CSteamID I get the following error error : Unable to find ‘class’, ‘delegate’, ‘enum’, or ‘struct’ with name ‘CSteamID’ I believe I’ve got the defaultengine.ini and build.cs files co…

---

## [Compiling UE4.23.1 from source is taking up 90GB+ and growing each time I compile!!](https://forums.unrealengine.com/t/compiling-ue4-23-1-from-source-is-taking-up-90gb-and-growing-each-time-i-compile/135682)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_adc3f730](https://forums.unrealengine.com/u/anonymous_user_adc3f730)\
**Replies:** 19\
**Last updated:** [June 28, 2024, 3:58pm UTC](https://forums.unrealengine.com/t/compiling-ue4-23-1-from-source-is-taking-up-90gb-and-growing-each-time-i-compile/135682 "2024-06-28T15:58:40Z")

</div>

Hi, I downloaded the UE4 source code the other night. After the first initial successful compile (which took 2 hours on a 16 thread RYZEN! what the hell?). I had 40GB left of free space on my ssd. After changing some cod…

---

## [New Blank project wont compile ue5](https://forums.unrealengine.com/t/new-blank-project-wont-compile-ue5/541161)

<div class="topic-metadata">

**Author:** [@Xanderxavier](https://forums.unrealengine.com/u/Xanderxavier)\
**Replies:** 7\
**Last updated:** [June 28, 2024, 2:38pm UTC](https://forums.unrealengine.com/t/new-blank-project-wont-compile-ue5/541161 "2024-06-28T14:38:19Z")

</div>

First enviroment I’m running latest Win11 Pro with both VS2022 and VS2019 installed, i notice it defaulted to vs2022 when opening project file tho could be due to system associations. Go to make a new project if I selec…

---

## [How to bind Onclick method using UMG ViewModel MVVM?](https://forums.unrealengine.com/t/how-to-bind-onclick-method-using-umg-viewmodel-mvvm/1919565)

<div class="topic-metadata">

**Author:** [@GhostDeveloper](https://forums.unrealengine.com/u/GhostDeveloper)\
**Replies:** 0\
**Last updated:** [June 28, 2024, 9:49am UTC](https://forums.unrealengine.com/t/how-to-bind-onclick-method-using-umg-viewmodel-mvvm/1919565 "2024-06-28T09:49:53Z")

</div>

Hello! I’m using MVVM plugin for widgets, but cannot find any info about binding onclick events, is it possible? thanks! p.s. the same topic: Unable to Bind Button Onclick to FOnButtonClickedEvent using UMG ViewModel MV…

---

## [Problems with HttpServer Module](https://forums.unrealengine.com/t/problems-with-httpserver-module/147414)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_8d5fb1cc](https://forums.unrealengine.com/u/anonymous_user_8d5fb1cc)\
**Replies:** 4\
**Last updated:** [June 28, 2024, 8:15am UTC](https://forums.unrealengine.com/t/problems-with-httpserver-module/147414 "2024-06-28T08:15:35Z")

</div>

Hello! I hope I’m posting in the right place, I decided to post it here since I will be quoting the engine code itself. I want to share some of the problems I found while trying to use the HTTP Server Module (HttpServer…

---

## [Using UE Source code in visualization software](https://forums.unrealengine.com/t/using-ue-source-code-in-visualization-software/40191)

<div class="topic-metadata">

**Author:** [@Depix](https://forums.unrealengine.com/u/Depix)\
**Replies:** 5\
**Last updated:** [June 28, 2024, 3:05am UTC](https://forums.unrealengine.com/t/using-ue-source-code-in-visualization-software/40191 "2024-06-28T03:05:32Z")

</div>

Hello everybody, I’m interested in developing software for architectural visualization. I checked several game engine and I like the Unreal Engine rendering. Basically the plan is to remove all the unnecessary part (ph…

---

## [templates on actor subclasses?](https://forums.unrealengine.com/t/templates-on-actor-subclasses/136947)

<div class="topic-metadata">

**Author:** [@26sramirez6](https://forums.unrealengine.com/u/26sramirez6)\
**Replies:** 1\
**Last updated:** [June 28, 2024, 12:14am UTC](https://forums.unrealengine.com/t/templates-on-actor-subclasses/136947 "2024-06-28T00:14:54Z")

</div>

Can I template my actor classes (before or after UCLASS())? ie. UCLASS() template\<......\> class GAME\_API AAsdf : public AActor { .... }

---

## [FViewport::GetHitProxy will get nothing?](https://forums.unrealengine.com/t/fviewport-gethitproxy-will-get-nothing/45170)

<div class="topic-metadata">

**Author:** [@Henry\_Read](https://forums.unrealengine.com/u/Henry_Read)\
**Replies:** 8\
**Last updated:** [June 27, 2024, 8:44pm UTC](https://forums.unrealengine.com/t/fviewport-gethitproxy-will-get-nothing/45170 "2024-06-27T20:44:21Z")

</div>

....... virtual bool RequiresHitProxyStorage() override { return true; } ....... I overrided the RequiresHitProxyStorage method to return true. Then GetHitProxy won’t crash. But I still get nothing…

---

## [Help please](https://forums.unrealengine.com/t/help-please/1918930)

<div class="topic-metadata">

**Author:** [@popadens](https://forums.unrealengine.com/u/popadens)\
**Replies:** 0\
**Last updated:** [June 27, 2024, 7:16pm UTC](https://forums.unrealengine.com/t/help-please/1918930 "2024-06-27T19:16:30Z")

</div>

I need the sound to turn on when I go into the trigger box and when I pick up some blueprint, it disappears from me.

---

## [good build on windows, No such file or directory on mac /Intermediate/Mac/Stubs/arm64/UnrealEditor-\*.dylib](https://forums.unrealengine.com/t/good-build-on-windows-no-such-file-or-directory-on-mac-intermediate-mac-stubs-arm64-unrealeditor-dylib/1819500)

<div class="topic-metadata">

**Author:** [@AlanSorrill](https://forums.unrealengine.com/u/AlanSorrill)\
**Replies:** 1\
**Last updated:** [June 27, 2024, 2:09pm UTC](https://forums.unrealengine.com/t/good-build-on-windows-no-such-file-or-directory-on-mac-intermediate-mac-stubs-arm64-unrealeditor-dylib/1819500 "2024-06-27T14:09:40Z")

</div>

My company’s 5.3.2 project has been compiling perfectly on Windows. However when I try to compile it on mac (Mac Studio 2023 M2Max Ventura 13.5 XCode 14.3.1), I get several errors for missing files: no such file or dire…

---

## [Can't figure out how to delete c++ files in my unreal editor](https://forums.unrealengine.com/t/cant-figure-out-how-to-delete-c-files-in-my-unreal-editor/1918505)

<div class="topic-metadata">

**Author:** [@Lime\_Energy](https://forums.unrealengine.com/u/Lime_Energy)\
**Replies:** 3\
**Last updated:** [June 27, 2024, 2:03pm UTC](https://forums.unrealengine.com/t/cant-figure-out-how-to-delete-c-files-in-my-unreal-editor/1918505 "2024-06-27T14:03:58Z")

</div>

I watched a video on how to delete c++ files and I did that, but now it’s asking that I need to delete my binary folder in my project files. Whenever I do that it just causes my project not to run, but when I bring the b…

---

## [C++ Integration with Bluprint for game optimization structured courses for learning](https://forums.unrealengine.com/t/c-integration-with-bluprint-for-game-optimization-structured-courses-for-learning/1917888)

<div class="topic-metadata">

**Author:** [@Choodleloo](https://forums.unrealengine.com/u/Choodleloo)\
**Replies:** 4\
**Last updated:** [June 27, 2024, 1:31pm UTC](https://forums.unrealengine.com/t/c-integration-with-bluprint-for-game-optimization-structured-courses-for-learning/1917888 "2024-06-27T13:31:17Z")

</div>

Hi people, I’ve been working on my game and it requires a heavy load of multiple synchronous units combating in real time using only the blueprint visual editor. As I’ve made my way around the many posts and questions h…

---

## [How to initialize a const member using NewObject\<\>()](https://forums.unrealengine.com/t/how-to-initialize-a-const-member-using-newobject/1903150)

<div class="topic-metadata">

**Author:** [@DachsYin1](https://forums.unrealengine.com/u/DachsYin1)\
**Replies:** 9\
**Last updated:** [June 27, 2024, 12:35pm UTC](https://forums.unrealengine.com/t/how-to-initialize-a-const-member-using-newobject/1903150 "2024-06-27T12:35:31Z")

</div>

I did blueprint UI scripting for a year, till recently I read a book about how code ‘smells bad’. I tried refactoring my ‘code’, and found too many things I cannot solve. I searched stockoverflow, forums, and other websi…

---

## [How do I go about making a simple inventory system in c++?](https://forums.unrealengine.com/t/how-do-i-go-about-making-a-simple-inventory-system-in-c/1917842)

<div class="topic-metadata">

**Author:** [@Lime\_Energy](https://forums.unrealengine.com/u/Lime_Energy)\
**Replies:** 2\
**Last updated:** [June 27, 2024, 9:10am UTC](https://forums.unrealengine.com/t/how-do-i-go-about-making-a-simple-inventory-system-in-c/1917842 "2024-06-27T09:10:01Z")

</div>

All I want to do is make it to where if I pick up an item the item icon shows up on the widget from right to left. I want to do this in C++ though, and there’s not really a lot of tutorials showing you how to do that esp…

---

## [Engine Version](https://forums.unrealengine.com/t/engine-version/1917699)

<div class="topic-metadata">

**Author:** [@SncI\_Games](https://forums.unrealengine.com/u/SncI_Games)\
**Replies:** 1\
**Last updated:** [June 27, 2024, 8:10am UTC](https://forums.unrealengine.com/t/engine-version/1917699 "2024-06-27T08:10:04Z")

</div>

I started making maps using Unreal Engine 5.3 and upgraded to version 5.4, but I want the map I made to support versions such as 4.23, 4.26, 5.2 and 5.3 when sold. I couldn’t downgrade the engine version but it stayed at…

---

## [Dedicated server code split from client code](https://forums.unrealengine.com/t/dedicated-server-code-split-from-client-code/7446)

<div class="topic-metadata">

**Author:** [@Etapaa](https://forums.unrealengine.com/u/Etapaa)\
**Replies:** 6\
**Last updated:** [June 27, 2024, 6:12am UTC](https://forums.unrealengine.com/t/dedicated-server-code-split-from-client-code/7446 "2024-06-27T06:12:54Z")

</div>

Ok, my question is basically, how can i split code that needs to be in the game, but basically server side only from my build?, for instance i will have a persistent database per game, but i do not want clients to be abl…

---

## [Windows runtime Load GroomAsset  in pak files crash](https://forums.unrealengine.com/t/windows-runtime-load-groomasset-in-pak-files-crash/1368422)

<div class="topic-metadata">

**Author:** [@wangyue11](https://forums.unrealengine.com/u/wangyue11)\
**Replies:** 2\
**Last updated:** [June 27, 2024, 5:44am UTC](https://forums.unrealengine.com/t/windows-runtime-load-groomasset-in-pak-files-crash/1368422 "2024-06-27T05:44:39Z")

</div>

I cook metahuman resources ,then use pakfile to pak the resources to pak file .At runtime,I mount the pak file,load the groom asset cause the app crash,anyone knows the reason? the crash log as follows: \[2023.11.06-07.…

---

## [how to use map with Red-black tree algorithm](https://forums.unrealengine.com/t/how-to-use-map-with-red-black-tree-algorithm/1917251)

<div class="topic-metadata">

**Author:** [@IsGris1](https://forums.unrealengine.com/u/IsGris1)\
**Replies:** 0\
**Last updated:** [June 26, 2024, 12:38pm UTC](https://forums.unrealengine.com/t/how-to-use-map-with-red-black-tree-algorithm/1917251 "2024-06-26T12:38:33Z")

</div>

I would like to use map in my c++ code but TMap from unreal engine uses a hashing algorithm whereas I need the Red-black tree search algorithm which is used in the standard std::map and which has the upper\_bound function…

---

## [How can I get my Unreal Engine pull request reviewed?](https://forums.unrealengine.com/t/how-can-i-get-my-unreal-engine-pull-request-reviewed/1717587)

<div class="topic-metadata">

**Author:** [@aaronfranke](https://forums.unrealengine.com/u/aaronfranke)\
**Replies:** 4\
**Last updated:** [June 25, 2024, 11:40pm UTC](https://forums.unrealengine.com/t/how-can-i-get-my-unreal-engine-pull-request-reviewed/1717587 "2024-06-25T23:40:32Z")

</div>

I made a PR to add local vertical movement to the editor viewport camera in addition to the existing local forward/back/left/right movement. This is a really minor usability enhancement in the editor, I think it would be…

---

## [How do I call a function in a widget class from my player cpp?](https://forums.unrealengine.com/t/how-do-i-call-a-function-in-a-widget-class-from-my-player-cpp/1863461)

<div class="topic-metadata">

**Author:** [@Lime\_Energy](https://forums.unrealengine.com/u/Lime_Energy)\
**Replies:** 5\
**Last updated:** [June 25, 2024, 11:26pm UTC](https://forums.unrealengine.com/t/how-do-i-call-a-function-in-a-widget-class-from-my-player-cpp/1863461 "2024-06-25T23:26:26Z")

</div>

I’m trying to make a widget that shows how much ammo I have left on my gun and every time I click (shoot the gun) I lose 1 bullet so for example I go from 17 bullets to 16 bullets. Now how would I be able to call …

---

## [Unreal engine 5.4.2 C++ crash](https://forums.unrealengine.com/t/unreal-engine-5-4-2-c-crash/1916225)

<div class="topic-metadata">

**Author:** [@1GameMaker](https://forums.unrealengine.com/u/1GameMaker)\
**Replies:** 1\
**Last updated:** [June 25, 2024, 3:35pm UTC](https://forums.unrealengine.com/t/unreal-engine-5-4-2-c-crash/1916225 "2024-06-25T15:35:59Z")

</div>

Hello IDK what is wrong but somehow UE 5.4.2 C++ Project Just crashes on compiling. Here is the code: GameModeBase (I just set Ap as a default pawn) G.cpp #include "G.h" AG::AG() { DefaultPawnClass = Ap::StaticClass(…

---

## [How to construct object from \`TSubclassOf\<UMyObject\>\`](https://forums.unrealengine.com/t/how-to-construct-object-from-tsubclassof-umyobject/674789)

<div class="topic-metadata">

**Author:** [@zos](https://forums.unrealengine.com/u/zos)\
**Replies:** 4\
**Last updated:** [June 25, 2024, 3:26pm UTC](https://forums.unrealengine.com/t/how-to-construct-object-from-tsubclassof-umyobject/674789 "2024-06-25T15:26:42Z")

</div>

Suppose I have some UObject subclass called UMyObject and I have a TSubclassOf\<UMyObject\> MyClass that is a blueprint class derived from UMyObject, how do I create a new instance of MyClass and get a UMyObject\* pointer …

---

## [How to use Game Mode in a game (nullptr exception when I use InitGameState)](https://forums.unrealengine.com/t/how-to-use-game-mode-in-a-game-nullptr-exception-when-i-use-initgamestate/1915881)

<div class="topic-metadata">

**Author:** [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Replies:** 7\
**Last updated:** [June 25, 2024, 3:01pm UTC](https://forums.unrealengine.com/t/how-to-use-game-mode-in-a-game-nullptr-exception-when-i-use-initgamestate/1915881 "2024-06-25T15:01:52Z")

</div>

Hi! I have no idea about how to use the GameMode. I know it purposes, but I don’t know how to integrate it in my game. To clarify me, is this the way I have to use the GameMode class? void ATTetrisGameModeBase::InitGa…

---

## [How to setup the UE4 UWP FORK? If you know Please answer me!](https://forums.unrealengine.com/t/how-to-setup-the-ue4-uwp-fork-if-you-know-please-answer-me/121794)

<div class="topic-metadata">

**Author:** [@KingOfSapiens](https://forums.unrealengine.com/u/KingOfSapiens)\
**Replies:** 21\
**Last updated:** [June 25, 2024, 2:38pm UTC](https://forums.unrealengine.com/t/how-to-setup-the-ue4-uwp-fork-if-you-know-please-answer-me/121794 "2024-06-25T14:38:30Z")

</div>

now im able to access this page. https://github.com/MICROSOFT-XBOX-ATG/MICROSOFT\_UWP\_UNREAL but i cant find any steps, and i seach in the whole form here and in github, to many peaple asking how to do it from ages and …

---

## [Why FInstancedStruct is doing deep comparison??](https://forums.unrealengine.com/t/why-finstancedstruct-is-doing-deep-comparison/1916038)

<div class="topic-metadata">

**Author:** [@M.S.M.A.S](https://forums.unrealengine.com/u/M.S.M.A.S)\
**Replies:** 0\
**Last updated:** [June 25, 2024, 12:49pm UTC](https://forums.unrealengine.com/t/why-finstancedstruct-is-doing-deep-comparison/1916038 "2024-06-25T12:49:50Z")

</div>

Why FInstancedStruct does a deep comparison?? is there a specific reason for that? According to documentation FInstancedStruct works similarly as instanced UObject\* property but is USTRUCTs. Now in the equality oper…

---

## [MakeEditWidget is not working.](https://forums.unrealengine.com/t/makeeditwidget-is-not-working/157480)

<div class="topic-metadata">

**Author:** [@m00nB33r](https://forums.unrealengine.com/u/m00nB33r)\
**Replies:** 1\
**Last updated:** [June 25, 2024, 11:32am UTC](https://forums.unrealengine.com/t/makeeditwidget-is-not-working/157480 "2024-06-25T11:32:14Z")

</div>

Hi all. I’m using UE 4.26 Working through a tutorial where we are creating a BP from a C++ class. Class has a UStaticMeshComponent that we will place in the level. One of the steps is to create a FVector \[FONT=Times …

---

## [hello please with this. error biuld](https://forums.unrealengine.com/t/hello-please-with-this-error-biuld/1915374)

<div class="topic-metadata">

**Author:** [@Focusiin](https://forums.unrealengine.com/u/Focusiin)\
**Replies:** 1\
**Last updated:** [June 25, 2024, 5:29am UTC](https://forums.unrealengine.com/t/hello-please-with-this-error-biuld/1915374 "2024-06-25T05:29:58Z")

</div>

How about brothers, I have a problem compiling my project, I leave you an image of the error LINE 44

---

## [\[UE 5.3\] Mediaplayer issues](https://forums.unrealengine.com/t/ue-5-3-mediaplayer-issues/1915530)

<div class="topic-metadata">

**Author:** [@Le\_sii](https://forums.unrealengine.com/u/Le_sii)\
**Replies:** 0\
**Last updated:** [June 25, 2024, 2:36am UTC](https://forums.unrealengine.com/t/ue-5-3-mediaplayer-issues/1915530 "2024-06-25T02:36:23Z")

</div>

I was defined a UObject to control Mediaplayer. and it will NewObject\<UMediaplayer\> at construct method.listen sm. delegates. It can work perfectly in version 5.2. But when I copy to 5.3. identified multiple issue…

---

## [UOctreeDynamicMeshComponent will not render because SceneProxy is always null](https://forums.unrealengine.com/t/uoctreedynamicmeshcomponent-will-not-render-because-sceneproxy-is-always-null/1915272)

<div class="topic-metadata">

**Author:** [@lyonAB](https://forums.unrealengine.com/u/lyonAB)\
**Replies:** 0\
**Last updated:** [June 24, 2024, 8:58pm UTC](https://forums.unrealengine.com/t/uoctreedynamicmeshcomponent-will-not-render-because-sceneproxy-is-always-null/1915272 "2024-06-24T20:58:53Z")

</div>

Not sure if I’m just doing something wrong here, but on Windows, in Unreal Engine 5.4, if I attempt to make any changes to my mesh, UOctreeDynamicMeshComponent::NotifyMeshUpdated will early return, because the UOctreeDyn…

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

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