# C++

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

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

**Page:** 58

---

## [USTRUCT : Property not initialized properly error - how to fix?](https://forums.unrealengine.com/t/ustruct-property-not-initialized-properly-error-how-to-fix/2273633)

<div class="topic-metadata">

**Author:** [@TheWolf](https://forums.unrealengine.com/u/TheWolf)\
**Replies:** 1\
**Last updated:** [January 21, 2025, 10:17pm UTC](https://forums.unrealengine.com/t/ustruct-property-not-initialized-properly-error-how-to-fix/2273633 "2025-01-21T22:17:51Z")

</div>

Hi, I’m a bit lost trying to solve an error showing up when loading a project containing a 3rd party plugin I’ve updated from 5.4 to 5.5. “LogClass: Error: StructProperty FCPathNode::WorldLocation is not initialized pro…

---

## [Can't declare delegates : definition not found](https://forums.unrealengine.com/t/cant-declare-delegates-definition-not-found/2294986)

<div class="topic-metadata">

**Author:** [@Idknoidealol](https://forums.unrealengine.com/u/Idknoidealol)\
**Replies:** 8\
**Last updated:** [January 21, 2025, 8:03pm UTC](https://forums.unrealengine.com/t/cant-declare-delegates-definition-not-found/2294986 "2025-01-21T20:03:06Z")

</div>

Hello, Just put my nose into C++ coming from blueprints. I can’t figure out why DECLARE\_DELEGATE generates errors. More precisely, I’m doing the following in a character.h file (public) : DECLARE\_DYNAMIC\_MULTICAST\_DELE…

---

## [\[Slate\] SComboBox doesn´t update laben OnSelectionChanged()](https://forums.unrealengine.com/t/slate-scombobox-doesn-t-update-laben-onselectionchanged/93541)

<div class="topic-metadata">

**Author:** [@MaxAuer](https://forums.unrealengine.com/u/MaxAuer)\
**Replies:** 4\
**Last updated:** [January 21, 2025, 8:00pm UTC](https://forums.unrealengine.com/t/slate-scombobox-doesn-t-update-laben-onselectionchanged/93541 "2025-01-21T20:00:00Z")

</div>

Hey guys, I´m having a hard time understanding Slate and its update behaviour in an editor plugin. I have a SComboBox which shows a few categories. If I choose another option my OnSelectionChanged event gets fired but…

---

## [How to create a plugin with UI Widget?](https://forums.unrealengine.com/t/how-to-create-a-plugin-with-ui-widget/137797)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_5a7a8c01](https://forums.unrealengine.com/u/anonymous_user_5a7a8c01)\
**Replies:** 2\
**Last updated:** [January 21, 2025, 7:11pm UTC](https://forums.unrealengine.com/t/how-to-create-a-plugin-with-ui-widget/137797 "2025-01-21T19:11:43Z")

</div>

So the plugin module code, the one derived from IModuleInterface, can’t really access UI widget that comes with the plugin, can it? What I need is a method on plugin module code that returns instantiated widget. But how…

---

## [Setup Detour Crowd for Basic Pawn](https://forums.unrealengine.com/t/setup-detour-crowd-for-basic-pawn/1228404)

<div class="topic-metadata">

**Author:** [@Phoenix100](https://forums.unrealengine.com/u/Phoenix100)\
**Replies:** 2\
**Last updated:** [January 21, 2025, 6:20pm UTC](https://forums.unrealengine.com/t/setup-detour-crowd-for-basic-pawn/1228404 "2025-01-21T18:20:35Z")

</div>

I always thought that Detour Crowd only works with the CharacterMovementComponent hence only with the character. But I’ve now seen in the docs, that it should just work with a basic pawns. So I’ve tried it once again, …

---

## ["Allow Physics Rotation During Root Motion" In cpp](https://forums.unrealengine.com/t/allow-physics-rotation-during-root-motion-in-cpp/2293185)

<div class="topic-metadata">

**Author:** [@Unknown\_TAG](https://forums.unrealengine.com/u/Unknown_TAG)\
**Replies:** 3\
**Last updated:** [January 21, 2025, 4:40pm UTC](https://forums.unrealengine.com/t/allow-physics-rotation-during-root-motion-in-cpp/2293185 "2025-01-21T16:40:46Z")

</div>

Hello, so I’m using cpp in my project but I’ve run into a beginner problem. My character is still able to partially move when i use root motion. I know how to turn it of in blueprint but im new to cpp and I cant figure o…

---

## [Signature Error: The function/event '' does not match the necessary signature - has the delegate or function/event changed?](https://forums.unrealengine.com/t/signature-error-the-function-event-does-not-match-the-necessary-signature-has-the-delegate-or-function-event-changed/724030)

<div class="topic-metadata">

**Author:** [@digitalritualstudio](https://forums.unrealengine.com/u/digitalritualstudio)\
**Replies:** 9\
**Last updated:** [January 20, 2025, 9:16pm UTC](https://forums.unrealengine.com/t/signature-error-the-function-event-does-not-match-the-necessary-signature-has-the-delegate-or-function-event-changed/724030 "2025-01-20T21:16:40Z")

</div>

Hi I’m currently trying to make an Asynchronous “EOS Find Sessions” Node in C++ and I’d like to return a TArray as an output. The FEOSFindSessionResultStruct is custom which currently holds two FString Properties. Allt…

---

## [TEXT("") variable as FString::Printf() parameter](https://forums.unrealengine.com/t/text-variable-as-fstring-printf-parameter/145748)

<div class="topic-metadata">

**Author:** [@SolidSk](https://forums.unrealengine.com/u/SolidSk)\
**Replies:** 11\
**Last updated:** [January 20, 2025, 4:33pm UTC](https://forums.unrealengine.com/t/text-variable-as-fstring-printf-parameter/145748 "2025-01-20T16:33:24Z")

</div>

Hi! How could I use TEXT("") in a variable so I could use it as FString::Printf() parameter? I can’t understand what’s going on: // Error: auto Format = Total \< 100 ? TEXT("%02d/%02d") : TEXT("%03d/%03d"); // Error: F…

---

## [新規C＋＋クラスを作成ができない](https://forums.unrealengine.com/t/c/2284342)

<div class="topic-metadata">

**Author:** [@user\_27e1b0c8e20b2bd3e309230a998e786646431e6aecd8fa3cbc0ab7](https://forums.unrealengine.com/u/user_27e1b0c8e20b2bd3e309230a998e786646431e6aecd8fa3cbc0ab7)\
**Replies:** 3\
**Last updated:** [January 20, 2025, 1:44pm UTC](https://forums.unrealengine.com/t/c/2284342 "2025-01-20T13:44:47Z")

</div>

新規C＋＋クラスを作成しようとするとこのようになってしまいます。Visual Studio2022のインストーラで必要なものはインストール出来ていると思います。他にも記事を見て試しましたが解決できないです。どうかわかる方教えて頂きたいです。

---

## [Hand IK with different grips](https://forums.unrealengine.com/t/hand-ik-with-different-grips/1318018)

<div class="topic-metadata">

**Author:** [@Awesomeplayer895](https://forums.unrealengine.com/u/Awesomeplayer895)\
**Replies:** 15\
**Last updated:** [January 20, 2025, 8:46am UTC](https://forums.unrealengine.com/t/hand-ik-with-different-grips/1318018 "2025-01-20T08:46:18Z")

</div>

Hello all, I have been doing some investigation into left hand bone IK so that I can adjust the left hand of my character to fit different weapons. However I have noticed that many of the tutorials online work, but only…

---

## [Visual Studio Error](https://forums.unrealengine.com/t/visual-studio-error/2292725)

<div class="topic-metadata">

**Author:** [@Doctor\_Kannon](https://forums.unrealengine.com/u/Doctor_Kannon)\
**Replies:** 0\
**Last updated:** [January 20, 2025, 7:53am UTC](https://forums.unrealengine.com/t/visual-studio-error/2292725 "2025-01-20T07:53:46Z")

</div>

Tried to open my project in VS. Got this error: An error occurred in 'Miscellaneous Files' while attempting to open 'Microsoft.PackageDependencyResolution.targets' The document cannot be opened. It has been renamed, del…

---

## [Getting Error while creating a 3rd person project C++](https://forums.unrealengine.com/t/getting-error-while-creating-a-3rd-person-project-c/2290355)

<div class="topic-metadata">

**Author:** [@itsECLIPSExD](https://forums.unrealengine.com/u/itsECLIPSExD)\
**Replies:** 1\
**Last updated:** [January 19, 2025, 11:03pm UTC](https://forums.unrealengine.com/t/getting-error-while-creating-a-3rd-person-project-c/2290355 "2025-01-19T23:03:03Z")

</div>

Running C:/Program Files/Epic Games/UE\_5.0/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.exe Development Win64 -Project=“C:/UEDev/MenuSystem/MenuSystem.uproject” -TargetType=Editor -Progress -NoEngineChanges -No…

---

## [What does mean "use the classes from a module publicly" in modules dependencies?](https://forums.unrealengine.com/t/what-does-mean-use-the-classes-from-a-module-publicly-in-modules-dependencies/2288436)

<div class="topic-metadata">

**Author:** [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Replies:** 3\
**Last updated:** [January 19, 2025, 9:39pm UTC](https://forums.unrealengine.com/t/what-does-mean-use-the-classes-from-a-module-publicly-in-modules-dependencies/2288436 "2025-01-19T21:39:16Z")

</div>

Hi! I’m reading this: “Unreal Engine Modules | Unreal Engine 5.5 Documentation | Epic Developer Community”. Where I read the following in the section Private and public dependencies: You should use the PublicDependen…

---

## [Use libcurl in Unreal Engine](https://forums.unrealengine.com/t/use-libcurl-in-unreal-engine/134528)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_c7e9bf141](https://forums.unrealengine.com/u/anonymous_user_c7e9bf141)\
**Replies:** 5\
**Last updated:** [January 19, 2025, 6:37pm UTC](https://forums.unrealengine.com/t/use-libcurl-in-unreal-engine/134528 "2025-01-19T18:37:12Z")

</div>

Guys how i can include libcurl in my Unreal Engine project? i need to use it in game…

---

## [Timer Is Always Returns False When Debugging In Delegate???](https://forums.unrealengine.com/t/timer-is-always-returns-false-when-debugging-in-delegate/2287620)

<div class="topic-metadata">

**Author:** [@fefer1](https://forums.unrealengine.com/u/fefer1)\
**Replies:** 1\
**Last updated:** [January 19, 2025, 7:21am UTC](https://forums.unrealengine.com/t/timer-is-always-returns-false-when-debugging-in-delegate/2287620 "2025-01-19T07:21:35Z")

</div>

Hi everyone, When I code timer like this, debug message always returns “Timer Not Exists” but when I put the debugging lines out of delegate and after “SetTimer” func, it works fine and debug message shows “Timer Exists…

---

## [UE5.5 Global Shader : SvPositionToTranslatedWorld not work](https://forums.unrealengine.com/t/ue5-5-global-shader-svpositiontotranslatedworld-not-work/2279877)

<div class="topic-metadata">

**Author:** [@IAmNoBody2we](https://forums.unrealengine.com/u/IAmNoBody2we)\
**Replies:** 1\
**Last updated:** [January 18, 2025, 7:49am UTC](https://forums.unrealengine.com/t/ue5-5-global-shader-svpositiontotranslatedworld-not-work/2279877 "2025-01-18T07:49:14Z")

</div>

Unreal Engine Version 5.5 I am developing a global shader injected into the beginning of PostProcess phase in rendering pipeline. In /Engine/Shaders/Common.usf, there are three methods SvPositionToScreenPosition S…

---

## [新規C＋＋クラスを作成出来ない、パッケージ化が出来ない](https://forums.unrealengine.com/t/c/2284332)

<div class="topic-metadata">

**Author:** [@user\_27e1b0c8e20b2bd3e309230a998e786646431e6aecd8fa3cbc0ab7](https://forums.unrealengine.com/u/user_27e1b0c8e20b2bd3e309230a998e786646431e6aecd8fa3cbc0ab7)\
**Replies:** 0\
**Last updated:** [January 18, 2025, 7:10am UTC](https://forums.unrealengine.com/t/c/2284332 "2025-01-18T07:10:36Z")

</div>

新規C＋＋クラスを作成しようとするとこのようになってしまいます。Visual Studio2022のインストーラで必要なものはインストール出来ていると思います。他にも記事を見て試しましたが解決できないです。どうかわかる方教えて頂きたいです。 Uploading: スクリーンショット 2025-01-18 154948.png… Uploading: スクリーンショット 2025-01-18 155006.png… Uploadi…

---

## [Correct way to get the value of a Property?](https://forums.unrealengine.com/t/correct-way-to-get-the-value-of-a-property/551897)

<div class="topic-metadata">

**Author:** [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Replies:** 3\
**Last updated:** [November 10, 2022, 1:27am UTC](https://forums.unrealengine.com/t/correct-way-to-get-the-value-of-a-property/551897 "2022-11-10T01:27:13Z")

</div>

Since the TProperty iterator uses a class as input, the Property still has to be pointed to an address to get its value from. Confusing design? Question: How to get the value address properly, or how to directly iterate…

---

## [\[UE5.1\]How to reparent an editor utility widget to C++ base class?](https://forums.unrealengine.com/t/ue5-1-how-to-reparent-an-editor-utility-widget-to-c-base-class/779134)

<div class="topic-metadata">

**Author:** [@AlienRenders](https://forums.unrealengine.com/u/AlienRenders)\
**Replies:** 5\
**Last updated:** [January 17, 2025, 10:22pm UTC](https://forums.unrealengine.com/t/ue5-1-how-to-reparent-an-editor-utility-widget-to-c-base-class/779134 "2025-01-17T22:22:25Z")

</div>

I’ve tried using Reparent Blueprint, but my C++ class doesn’t show up. If I create a new blueprint from my C++ class, the widget editor isn’t available. Anyone know how to create an editor widget derived from a C++ class…

---

## [\[SOLVED\]Making Blueprint of UGameInstanceSubsystem](https://forums.unrealengine.com/t/solved-making-blueprint-of-ugameinstancesubsystem/211421)

<div class="topic-metadata">

**Author:** [@FinalRockstar](https://forums.unrealengine.com/u/FinalRockstar)\
**Replies:** 7\
**Last updated:** [January 17, 2025, 9:26pm UTC](https://forums.unrealengine.com/t/solved-making-blueprint-of-ugameinstancesubsystem/211421 "2025-01-17T21:26:33Z")

</div>

How Can I create a blueprint of UGameInstanceSubsystem and make sure that only the blueprint one is initialized? Currently, on making the blueprint both are getting initialized. Issue - I need to expose a Tmap for the g…

---

## [possible bug with dynamic multicast delegates](https://forums.unrealengine.com/t/possible-bug-with-dynamic-multicast-delegates/760111)

<div class="topic-metadata">

**Author:** [@jr557](https://forums.unrealengine.com/u/jr557)\
**Replies:** 9\
**Last updated:** [January 17, 2025, 7:14pm UTC](https://forums.unrealengine.com/t/possible-bug-with-dynamic-multicast-delegates/760111 "2025-01-17T19:14:42Z")

</div>

I’ve noticed an issue when using dynamic multicast delegates in Unreal (5.1.0). Basically the issue comes into play when moving an AddDynamic() delegate binding from BeginPlay() to PostInitProperties() in the C++ source …

---

## [cannot create c++ widget class ue 5.4.4](https://forums.unrealengine.com/t/cannot-create-c-widget-class-ue-5-4-4/2111023)

<div class="topic-metadata">

**Author:** [@eyeonass1](https://forums.unrealengine.com/u/eyeonass1)\
**Replies:** 2\
**Last updated:** [January 17, 2025, 7:10pm UTC](https://forums.unrealengine.com/t/cannot-create-c-widget-class-ue-5-4-4/2111023 "2025-01-17T19:10:01Z")

</div>

hello, everyone! can anyone help me please? i’m trying to create a new c++ class inherited from UEditorUtilityWidget (i don’t have any problems with classes inherited from UAssetActionUtility for example) , but it’s cr…

---

## [How do I modify an Actor Blueprint CDO's Component properties from C++?](https://forums.unrealengine.com/t/how-do-i-modify-an-actor-blueprint-cdos-component-properties-from-c/2280011)

<div class="topic-metadata">

**Author:** [@SamEngageSoft](https://forums.unrealengine.com/u/SamEngageSoft)\
**Replies:** 6\
**Last updated:** [January 17, 2025, 5:43pm UTC](https://forums.unrealengine.com/t/how-do-i-modify-an-actor-blueprint-cdos-component-properties-from-c/2280011 "2025-01-17T17:43:56Z")

</div>

I want to be able to access and modify the properties on the Components of an Actor Blueprint CDO. I can modify properties on the Actor in the CDO perfectly well, but I can’t seem to access the components (specifically …

---

## [How to implement a getter to return a TMap, but not allowing modification and not doing any copy of it](https://forums.unrealengine.com/t/how-to-implement-a-getter-to-return-a-tmap-but-not-allowing-modification-and-not-doing-any-copy-of-it/2282795)

<div class="topic-metadata">

**Author:** [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Replies:** 1\
**Last updated:** [January 17, 2025, 6:48pm UTC](https://forums.unrealengine.com/t/how-to-implement-a-getter-to-return-a-tmap-but-not-allowing-modification-and-not-doing-any-copy-of-it/2282795 "2025-01-17T18:48:03Z")

</div>

Hi! This is part of Game Instance Subsystem class declaration: TMap\<int32, TSharedRef\<FMyStruct\>\> GetMyData(); private: TMap\<int32, TSharedRef\<FMyStruct\>\> MyData; I want to allow read the variable MyData, but wi…

---

## [UE 5 Truly Asynchronous Actor Spawning With C++](https://forums.unrealengine.com/t/ue-5-truly-asynchronous-actor-spawning-with-c/2282481)

<div class="topic-metadata">

**Author:** [@WaterLord7788](https://forums.unrealengine.com/u/WaterLord7788)\
**Replies:** 3\
**Last updated:** [January 17, 2025, 6:03pm UTC](https://forums.unrealengine.com/t/ue-5-truly-asynchronous-actor-spawning-with-c/2282481 "2025-01-17T18:03:01Z")

</div>

I am new to Unreal Engine 5 and I am in the process of writing a specific Blueprint code into C++, to achieve asynchronous spawning. So far, I’ve written the node to take a custom array, example below, and spawn the acto…

---

## [Referencing a content inside c++ without specify path](https://forums.unrealengine.com/t/referencing-a-content-inside-c-without-specify-path/2278817)

<div class="topic-metadata">

**Author:** [@XimerGUD](https://forums.unrealengine.com/u/XimerGUD)\
**Replies:** 4\
**Last updated:** [January 17, 2025, 4:49pm UTC](https://forums.unrealengine.com/t/referencing-a-content-inside-c-without-specify-path/2278817 "2025-01-17T16:49:49Z")

</div>

What is the best way to reference an asset inside content in c++? I need to reference a blueprint widget to instantiate it inside my c++ code. Actual I’m using a “FSoftClassPath” but I would like to remove the path from …

---

## [How to get the instance in the game in PlayerController?](https://forums.unrealengine.com/t/how-to-get-the-instance-in-the-game-in-playercontroller/2267803)

<div class="topic-metadata">

**Author:** [@StevenX](https://forums.unrealengine.com/u/StevenX)\
**Replies:** 3\
**Last updated:** [January 17, 2025, 4:11pm UTC](https://forums.unrealengine.com/t/how-to-get-the-instance-in-the-game-in-playercontroller/2267803 "2025-01-17T16:11:30Z")

</div>

I am working on the logic for an elevator, and I want the player to press the ‘E’ key after entering a specific area, which will make the elevator move up or down. To achieve this, I want to call the elevator class logic…

---

## [What must i do in my event query generator to show statistics? C++](https://forums.unrealengine.com/t/what-must-i-do-in-my-event-query-generator-to-show-statistics-c/2279780)

<div class="topic-metadata">

**Author:** [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Replies:** 6\
**Last updated:** [January 17, 2025, 10:23am UTC](https://forums.unrealengine.com/t/what-must-i-do-in-my-event-query-generator-to-show-statistics-c/2279780 "2025-01-17T10:23:05Z")

</div>

My custom generators doesn’t show performance statistics (they are derived from UEnvQueryGenerator) I Was reading the class → UEnvQueryGenerator\_ActorsOfClass ← that does show statistics. But I don’t see any special…

---

## [PCG C++ setting Bounds / Volume](https://forums.unrealengine.com/t/pcg-c-setting-bounds-volume/2280769)

<div class="topic-metadata">

**Author:** [@Johny1744](https://forums.unrealengine.com/u/Johny1744)\
**Replies:** 1\
**Last updated:** [January 17, 2025, 10:19am UTC](https://forums.unrealengine.com/t/pcg-c-setting-bounds-volume/2280769 "2025-01-17T10:19:15Z")

</div>

Hi Everyone, Does anyone know how to assign bounds to a PCG component through C++? I’ve been looking through the documentation and existing files, but can’t crack it. For a bit of background - I am creating a fresh Act…

---

## [Assign Delegate in Class Defaults](https://forums.unrealengine.com/t/assign-delegate-in-class-defaults/2280853)

<div class="topic-metadata">

**Author:** [@Mark\_Barunovas](https://forums.unrealengine.com/u/Mark_Barunovas)\
**Replies:** 0\
**Last updated:** [January 16, 2025, 5:46pm UTC](https://forums.unrealengine.com/t/assign-delegate-in-class-defaults/2280853 "2025-01-16T17:46:15Z")

</div>

Version - 4.22 (this is still not implemented in 5.5, so please do not advise me to switch to 5.5). This function is already implemented in the engine, but only for components. Are there people who are well versed in th…

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

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