# C++

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

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

**Page:** 97

---

## [Widget never dies in packaged project](https://forums.unrealengine.com/t/widget-never-dies-in-packaged-project/1932304)

<div class="topic-metadata">

**Author:** [@Nephilim\_Alpha](https://forums.unrealengine.com/u/Nephilim_Alpha)\
**Replies:** 1\
**Last updated:** [July 10, 2024, 7:36pm UTC](https://forums.unrealengine.com/t/widget-never-dies-in-packaged-project/1932304 "2024-07-10T19:36:23Z")

</div>

Any Ideas why a widget won’t go away in a packaged project that runs fine in editor? Upon loading the next map the ui from the prev map stays on screen and hogs input. Checked for any ref to the initial maps ui in s…

---

## [When is it good to use "MARK\_PROPERTY\_DIRTY"?](https://forums.unrealengine.com/t/when-is-it-good-to-use-mark-property-dirty/1930988)

<div class="topic-metadata">

**Author:** [@HighRender](https://forums.unrealengine.com/u/HighRender)\
**Replies:** 6\
**Last updated:** [July 10, 2024, 6:02pm UTC](https://forums.unrealengine.com/t/when-is-it-good-to-use-mark-property-dirty/1930988 "2024-07-10T18:02:16Z")

</div>

When creating “UFUNCTION” with arrays, the “KismetArrayLibrary.h” uses MARK\_PROPERTY\_DIRTY on its “DECLARE\_FUNCTION”. I am trying to understand the pattern here, but at the moment I do not know when to apply the concept…

---

## [The message'Target is up to date' appears, but it does not apply to the editor.](https://forums.unrealengine.com/t/the-messagetarget-is-up-to-date-appears-but-it-does-not-apply-to-the-editor/155501)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_51cd8097](https://forums.unrealengine.com/u/anonymous_user_51cd8097)\
**Replies:** 3\
**Last updated:** [July 10, 2024, 2:33pm UTC](https://forums.unrealengine.com/t/the-messagetarget-is-up-to-date-appears-but-it-does-not-apply-to-the-editor/155501 "2024-07-10T14:33:51Z")

</div>

I modified the cpp file. And I built in Visual Studio. In the’output’ window 2\>Target is up to date 2\>Total execution time: 0.63 seconds Only the above message is displayed. And the information modified in the edit…

---

## [Bitset vs FBitSet](https://forums.unrealengine.com/t/bitset-vs-fbitset/664274)

<div class="topic-metadata">

**Author:** [@AlTheSlacker](https://forums.unrealengine.com/u/AlTheSlacker)\
**Replies:** 4\
**Last updated:** [July 10, 2024, 1:10pm UTC](https://forums.unrealengine.com/t/bitset-vs-fbitset/664274 "2024-07-10T13:10:49Z")

</div>

I’m trying to do some bitwise operations and I have a few questions / problems: I see Unreal has its own bitset class called FBitSet (FBitSet | Unreal Engine Documentation), but the documentation and functionality app…

---

## [Can not create C++ Project in Unreal Engine 5.4.2](https://forums.unrealengine.com/t/can-not-create-c-project-in-unreal-engine-5-4-2/1931691)

<div class="topic-metadata">

**Author:** [@JWNimble](https://forums.unrealengine.com/u/JWNimble)\
**Replies:** 1\
**Last updated:** [July 10, 2024, 1:06pm UTC](https://forums.unrealengine.com/t/can-not-create-c-project-in-unreal-engine-5-4-2/1931691 "2024-07-10T13:06:06Z")

</div>

When I try to create a C++ blank project I am getting this error message: Running C:/Program Files/Epic Games/UE\_5.4/Engine/Build/BatchFiles/Build.bat Development Win64 -Project=“C:/Users/jackw/OneDrive/Documents/Unreal…

---

## [How to use a PrimaryDataAsset as a key in a TMap?](https://forums.unrealengine.com/t/how-to-use-a-primarydataasset-as-a-key-in-a-tmap/1932275)

<div class="topic-metadata">

**Author:** [@JustJunuh](https://forums.unrealengine.com/u/JustJunuh)\
**Replies:** 1\
**Last updated:** [July 10, 2024, 2:48am UTC](https://forums.unrealengine.com/t/how-to-use-a-primarydataasset-as-a-key-in-a-tmap/1932275 "2024-07-10T02:48:51Z")

</div>

I have a TMap in a GameInstanceSubsystem, and I’m trying to use a PrimaryDataAsset as the key. UCommonViewData is just a blank PrimaryDataAsset for now. TMap\<UCommonViewData, TWeakObjectPtr\<UCommonActivatableWidget\>\> Da…

---

## [Why one of my project can't find C++ header preview？](https://forums.unrealengine.com/t/why-one-of-my-project-cant-find-c-header-preview/1931726)

<div class="topic-metadata">

**Author:** [@PRC\_baoyu](https://forums.unrealengine.com/u/PRC_baoyu)\
**Replies:** 0\
**Last updated:** [July 9, 2024, 1:36pm UTC](https://forums.unrealengine.com/t/why-one-of-my-project-cant-find-c-header-preview/1931726 "2024-07-09T13:36:57Z")

</div>

Why one of my project can’t find C++ header preview？？UE5.4

---

## [ListView Does Not Respond When Click And Entry Widget Does Not Print Image C++](https://forums.unrealengine.com/t/listview-does-not-respond-when-click-and-entry-widget-does-not-print-image-c/1928597)

<div class="topic-metadata">

**Author:** [@4.5cm](https://forums.unrealengine.com/u/4.5cm)\
**Replies:** 2\
**Last updated:** [July 9, 2024, 1:28pm UTC](https://forums.unrealengine.com/t/listview-does-not-respond-when-click-and-entry-widget-does-not-print-image-c/1928597 "2024-07-09T13:28:07Z")

</div>

ListView Doesn’t Respone When Click and Entry Widget Doesn’t Print UImage C++ Sorry For My English And Thank You For Your Answer Here Is My Item Class Code UCLASS() class UCreateCharacterPresetData : public UObject { …

---

## [Not Found error SocketSubsystemBSDPrivate.h (IPv4/IPv6 on multiplatforms)](https://forums.unrealengine.com/t/not-found-error-socketsubsystembsdprivate-h-ipv4-ipv6-on-multiplatforms/91191)

<div class="topic-metadata">

**Author:** [@WoodsShin](https://forums.unrealengine.com/u/WoodsShin)\
**Replies:** 3\
**Last updated:** [July 9, 2024, 10:05am UTC](https://forums.unrealengine.com/t/not-found-error-socketsubsystembsdprivate-h-ipv4-ipv6-on-multiplatforms/91191 "2024-07-09T10:05:07Z")

</div>

I’m trying to use FSocket IPv4/IPv6 on multiplatforms with UE4 4.15.1 engine source on launcher, not git hub. Added “Sockets” and “Networking” in PublicDependencyModuleNames and PrivateDependencyModuleNames in build.cs. …

---

## [Are delegates a good practice?](https://forums.unrealengine.com/t/are-delegates-a-good-practice/1928665)

<div class="topic-metadata">

**Author:** [@JMelter](https://forums.unrealengine.com/u/JMelter)\
**Replies:** 4\
**Last updated:** [July 9, 2024, 8:59am UTC](https://forums.unrealengine.com/t/are-delegates-a-good-practice/1928665 "2024-07-09T08:59:18Z")

</div>

Hello, I am doing a multiplayer project and I wanted to ask two questions maybe I can get it more clear. First question is that I created an actor component for Character Stats, is a component that have all stats variab…

---

## [Internal database of collectible notes and how to implement it](https://forums.unrealengine.com/t/internal-database-of-collectible-notes-and-how-to-implement-it/667211)

<div class="topic-metadata">

**Author:** [@kn0bbulo](https://forums.unrealengine.com/u/kn0bbulo)\
**Replies:** 11\
**Last updated:** [July 9, 2024, 2:41am UTC](https://forums.unrealengine.com/t/internal-database-of-collectible-notes-and-how-to-implement-it/667211 "2024-07-09T02:41:14Z")

</div>

I’m trying to find an easy way to achieve this. I want to have notes and documents spread around the game world. But in order to avoid creating many different interactable notes, I thought of creating just 1 and link it…

---

## [GetWorld() not available in blueprint native??](https://forums.unrealengine.com/t/getworld-not-available-in-blueprint-native/90443)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_f77a82de](https://forums.unrealengine.com/u/anonymous_user_f77a82de)\
**Replies:** 3\
**Last updated:** [July 8, 2024, 7:59pm UTC](https://forums.unrealengine.com/t/getworld-not-available-in-blueprint-native/90443 "2024-07-08T19:59:41Z")

</div>

Did something change? I can’t figure a way around this.

---

## [how to get all filters in a content browser](https://forums.unrealengine.com/t/how-to-get-all-filters-in-a-content-browser/1930713)

<div class="topic-metadata">

**Author:** [@virgil\_xh](https://forums.unrealengine.com/u/virgil_xh)\
**Replies:** 0\
**Last updated:** [July 8, 2024, 4:51pm UTC](https://forums.unrealengine.com/t/how-to-get-all-filters-in-a-content-browser/1930713 "2024-07-08T16:51:22Z")

</div>

how to get all filters in a content browser

---

## [Using Unreal Engine 5.4 with Microsoft Visual Studio for the first time](https://forums.unrealengine.com/t/using-unreal-engine-5-4-with-microsoft-visual-studio-for-the-first-time/1930426)

<div class="topic-metadata">

**Author:** [@Cmdr.Kokoro](https://forums.unrealengine.com/u/Cmdr.Kokoro)\
**Replies:** 0\
**Last updated:** [July 8, 2024, 12:15pm UTC](https://forums.unrealengine.com/t/using-unreal-engine-5-4-with-microsoft-visual-studio-for-the-first-time/1930426 "2024-07-08T12:15:18Z")

</div>

I recently decided to get my toes wet and try writing a simple C++ asset for Unreal Engine. However, I must not have something configured correctly because it took down the entire project I was working on, stating that …

---

## [Save Data](https://forums.unrealengine.com/t/save-data/1930267)

<div class="topic-metadata">

**Author:** [@Evan\_Choquene\_76](https://forums.unrealengine.com/u/Evan_Choquene_76)\
**Replies:** 1\
**Last updated:** [July 8, 2024, 10:45am UTC](https://forums.unrealengine.com/t/save-data/1930267 "2024-07-08T10:45:02Z")

</div>

I created a video game and I wanted to know how to set up a save system in C++

---

## [use TSoftObjectPtr return NULL](https://forums.unrealengine.com/t/use-tsoftobjectptr-return-null/1923420)

<div class="topic-metadata">

**Author:** [@aiorosu\_cn](https://forums.unrealengine.com/u/aiorosu_cn)\
**Replies:** 2\
**Last updated:** [July 8, 2024, 12:24am UTC](https://forums.unrealengine.com/t/use-tsoftobjectptr-return-null/1923420 "2024-07-08T00:24:20Z")

</div>

i use TSoftObjectPtr , but always return Null , why?

---

## [How rotate character and why AddControllerYawInput doesn't work properly?](https://forums.unrealengine.com/t/how-rotate-character-and-why-addcontrolleryawinput-doesnt-work-properly/1929710)

<div class="topic-metadata">

**Author:** [@LooserInRealLife](https://forums.unrealengine.com/u/LooserInRealLife)\
**Replies:** 0\
**Last updated:** [July 7, 2024, 7:34pm UTC](https://forums.unrealengine.com/t/how-rotate-character-and-why-addcontrolleryawinput-doesnt-work-properly/1929710 "2024-07-07T19:34:27Z")

</div>

Hello all, I am new to UE and sorry if the question is simple. Also, I am new to this forum, and if this is not a good place to ask this kind of questions let me know. Ok, I have a Character class (default from top dow…

---

## [Overlapping issues](https://forums.unrealengine.com/t/overlapping-issues/1929698)

<div class="topic-metadata">

**Author:** [@GadMyDev](https://forums.unrealengine.com/u/GadMyDev)\
**Replies:** 0\
**Last updated:** [July 7, 2024, 7:27pm UTC](https://forums.unrealengine.com/t/overlapping-issues/1929698 "2024-07-07T19:27:19Z")

</div>

My issue is related to rendering overlapping output. It doesn’t show whether overlap is true or false. I’m aware of the incorrect setup in the overlapping system. Here is my code: include “PlayerCharacter.h” include “…

---

## [Is getting hard to switch UI between pawns](https://forums.unrealengine.com/t/is-getting-hard-to-switch-ui-between-pawns/1928888)

<div class="topic-metadata">

**Author:** [@JMelter](https://forums.unrealengine.com/u/JMelter)\
**Replies:** 0\
**Last updated:** [July 6, 2024, 10:15pm UTC](https://forums.unrealengine.com/t/is-getting-hard-to-switch-ui-between-pawns/1928888 "2024-07-06T22:15:08Z")

</div>

Hello! Im struggling with a mechanic that I want to implement in my game. Is multiplayer and right now you can switch between pawns, when you aim a pawn and shoot you possess it. The problem is with the UI, I would li…

---

## [How to index TTuple](https://forums.unrealengine.com/t/how-to-index-ttuple/659173)

<div class="topic-metadata">

**Author:** [@morgankohler](https://forums.unrealengine.com/u/morgankohler)\
**Replies:** 1\
**Last updated:** [July 6, 2024, 2:52pm UTC](https://forums.unrealengine.com/t/how-to-index-ttuple/659173 "2024-07-06T14:52:36Z")

</div>

How to index a TTuple? Documentation is very sparse for this object

---

## [How to fix ADetourCrowdAIController linking errors in c++?](https://forums.unrealengine.com/t/how-to-fix-adetourcrowdaicontroller-linking-errors-in-c/1928338)

<div class="topic-metadata">

**Author:** [@Justrenis](https://forums.unrealengine.com/u/Justrenis)\
**Replies:** 3\
**Last updated:** [July 6, 2024, 2:48pm UTC](https://forums.unrealengine.com/t/how-to-fix-adetourcrowdaicontroller-linking-errors-in-c/1928338 "2024-07-06T14:48:34Z")

</div>

I try to use ADetourCrowdAIController, but it gives linking errors: Header file: include “DetourCrowdAIController.h” Source file: include “Navigation/CrowdFollowingComponent.h” Errors: 0\>Module.PossessionGame.…

---

## [Enhanced input and WasInputKeyJustPressed](https://forums.unrealengine.com/t/enhanced-input-and-wasinputkeyjustpressed/1133084)

<div class="topic-metadata">

**Author:** [@digitalbug](https://forums.unrealengine.com/u/digitalbug)\
**Replies:** 1\
**Last updated:** [July 6, 2024, 3:21am UTC](https://forums.unrealengine.com/t/enhanced-input-and-wasinputkeyjustpressed/1133084 "2024-07-06T03:21:32Z")

</div>

PC has function which returns true if the given key/button was up last frame and down this frame. bool APlayerController::WasInputKeyJustPressed(const FKey Key) const How to use this or similar function for EnhancedInp…

---

## [Creating Listener Socket in FRunnable](https://forums.unrealengine.com/t/creating-listener-socket-in-frunnable/654021)

<div class="topic-metadata">

**Author:** [@MattSierra](https://forums.unrealengine.com/u/MattSierra)\
**Replies:** 3\
**Last updated:** [July 6, 2024, 2:15am UTC](https://forums.unrealengine.com/t/creating-listener-socket-in-frunnable/654021 "2024-07-06T02:15:40Z")

</div>

Hello Long story short, been trying to create and run FSocket inside FRunnable as server on linux There is the code of Run function that crashes: virtual uint32 Run() override { while(bRunThread) { UE\_LOG(LogT…

---

## [Weird crash in Game Instance function](https://forums.unrealengine.com/t/weird-crash-in-game-instance-function/1921083)

<div class="topic-metadata">

**Author:** [@HollyWretch](https://forums.unrealengine.com/u/HollyWretch)\
**Replies:** 3\
**Last updated:** [July 5, 2024, 10:29pm UTC](https://forums.unrealengine.com/t/weird-crash-in-game-instance-function/1921083 "2024-07-05T22:29:41Z")

</div>

I’m currently writing my own ‘lean’ version of the Lyra loading screen, where I’ve encountered and reproduced the same issue multiple times. When I add the loading screen widget to the viewport, the game crashes with a m…

---

## [Must Each TObjectPtr\<T\> Be Marked UPROPERTY()?](https://forums.unrealengine.com/t/must-each-tobjectptr-t-be-marked-uproperty/1925826)

<div class="topic-metadata">

**Author:** [@blAddddDe](https://forums.unrealengine.com/u/blAddddDe)\
**Replies:** 10\
**Last updated:** [July 5, 2024, 8:05pm UTC](https://forums.unrealengine.com/t/must-each-tobjectptr-t-be-marked-uproperty/1925826 "2024-07-05T20:05:40Z")

</div>

I have some classes where I don’t want to denote TObjectPtr UPROPERTY(), but the IDE tells me that this object can be deleted during garbage collection. Is this true, or can it be disregarded. Example: I don’t need …

---

## [USceneCaptureComponent2D to Slate SImage](https://forums.unrealengine.com/t/uscenecapturecomponent2d-to-slate-simage/1927517)

<div class="topic-metadata">

**Author:** [@KarolRoesner](https://forums.unrealengine.com/u/KarolRoesner)\
**Replies:** 0\
**Last updated:** [July 5, 2024, 1:25pm UTC](https://forums.unrealengine.com/t/uscenecapturecomponent2d-to-slate-simage/1927517 "2024-07-05T13:25:54Z")

</div>

Hey Everyone, i am trying to write a Plugin in UnrealEngine 5.4. I started with an “Editor Standalone Window” template. I want to be able to display the Image of an Camera inside of this Window. My current progress l…

---

## [How to iterate UClasses?](https://forums.unrealengine.com/t/how-to-iterate-uclasses/14757)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_a36a29c6](https://forums.unrealengine.com/u/anonymous_user_a36a29c6)\
**Replies:** 5\
**Last updated:** [July 5, 2024, 9:07am UTC](https://forums.unrealengine.com/t/how-to-iterate-uclasses/14757 "2024-07-05T09:07:35Z")

</div>

I want to iterate through all UClasses with a specific parent but I’m not sure how. I need to check their properties for something I’m making these classes will not always exist as objects in the world. How can I get a l…

---

## [Know the coordinate towards the camera is looking at](https://forums.unrealengine.com/t/know-the-coordinate-towards-the-camera-is-looking-at/1901324)

<div class="topic-metadata">

**Author:** [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Replies:** 9\
**Last updated:** [July 5, 2024, 8:24am UTC](https://forums.unrealengine.com/t/know-the-coordinate-towards-the-camera-is-looking-at/1901324 "2024-07-05T08:24:33Z")

</div>

Hi! I’m using Unreal 5.4.2 in a C++ game. I would like to know the coordinate towards which the camera is looking at a certain instant. This coordinate is always at 7500 units, because the camera would be at the imagin…

---

## [Writing Cross Platform Code](https://forums.unrealengine.com/t/writing-cross-platform-code/95222)

<div class="topic-metadata">

**Author:** [@wilberolive](https://forums.unrealengine.com/u/wilberolive)\
**Replies:** 3\
**Last updated:** [July 5, 2024, 6:53am UTC](https://forums.unrealengine.com/t/writing-cross-platform-code/95222 "2024-07-05T06:53:45Z")

</div>

So I’m prototyping out a project at the moment and built some pretty impressive systems in blueprint. Its all a bit of a mess and I want to start cleaning up and consolidating. I’m a C++ programmer at heart, so my first …

---

## [How to copy all properties of a component?](https://forums.unrealengine.com/t/how-to-copy-all-properties-of-a-component/236802)

<div class="topic-metadata">

**Author:** [@Babush61](https://forums.unrealengine.com/u/Babush61)\
**Replies:** 0\
**Last updated:** [June 22, 2021, 12:32pm UTC](https://forums.unrealengine.com/t/how-to-copy-all-properties-of-a-component/236802 "2021-06-22T12:32:17Z")

</div>

Hello. The actor has 1 UStaticMeshComponent component. In Runtime or in the editor (OnConstruction), I create an additional component: UStaticMeshComponent\* comp = NewObject\<UStaticMeshComponent\>(this); comp-\>AttachT…

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

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