# C++

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

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

**Page:** 84

---

## [Is adding my CA's certificate to "cacert.pem" enough to set it in the TLS configuration?](https://forums.unrealengine.com/t/is-adding-my-cas-certificate-to-cacert-pem-enough-to-set-it-in-the-tls-configuration/547316)

<div class="topic-metadata">

**Author:** [@jgalaz](https://forums.unrealengine.com/u/jgalaz)\
**Replies:** 1\
**Last updated:** [September 7, 2024, 8:49pm UTC](https://forums.unrealengine.com/t/is-adding-my-cas-certificate-to-cacert-pem-enough-to-set-it-in-the-tls-configuration/547316 "2024-09-07T20:49:24Z")

</div>

I saw in the source code of the engine that the SSL manager parses a bunch of certificates from common CAs (SolutionDir/UnrealEngine/Engine/Content/Certificates/ThirdParty/cacert.pem) and I suppose it adds them in the TL…

---

## [MoveComponentTo and PhysicsConstraints in C++](https://forums.unrealengine.com/t/movecomponentto-and-physicsconstraints-in-c/2010476)

<div class="topic-metadata">

**Author:** [@sunyata](https://forums.unrealengine.com/u/sunyata)\
**Replies:** 0\
**Last updated:** [September 7, 2024, 7:07pm UTC](https://forums.unrealengine.com/t/movecomponentto-and-physicsconstraints-in-c/2010476 "2024-09-07T19:07:07Z")

</div>

Hello everyone. I have a problem with the C++ code. When trying to drag an object using MoveComponentTo and PhysicsConstraints , the object moves away from the character. Moreover, the same logic on blueprints works corr…

---

## [How would i fix my custom cmc movement code?](https://forums.unrealengine.com/t/how-would-i-fix-my-custom-cmc-movement-code/2010127)

<div class="topic-metadata">

**Author:** [@IKrazedKat](https://forums.unrealengine.com/u/IKrazedKat)\
**Replies:** 1\
**Last updated:** [September 7, 2024, 5:25pm UTC](https://forums.unrealengine.com/t/how-would-i-fix-my-custom-cmc-movement-code/2010127 "2024-09-07T17:25:04Z")

</div>

\#include "CoreMinimal.h" #include "GameFramework/CharacterMovementComponent.h" #include "VelocityCharacterMovementComponent.generated.h" UCLASS() class VELOCITYX\_API UVelocityCharacterMovementComponent : public UCharac…

---

## [Blueprint "event begin play" called before C++ parent's "event begin play"?](https://forums.unrealengine.com/t/blueprint-event-begin-play-called-before-c-parents-event-begin-play/301901)

<div class="topic-metadata">

**Author:** [@VSZ](https://forums.unrealengine.com/u/VSZ)\
**Replies:** 22\
**Last updated:** [September 7, 2024, 3:54pm UTC](https://forums.unrealengine.com/t/blueprint-event-begin-play-called-before-c-parents-event-begin-play/301901 "2024-09-07T15:54:57Z")

</div>

Create a custom game mode class in C++ (derive from AGameMode) Implement Begin Play for this class and print a test string Create a blueprint subclassing the C++, set this as the default game mode for your map. In the b…

---

## [How to determine client or server in VS debugger](https://forums.unrealengine.com/t/how-to-determine-client-or-server-in-vs-debugger/150136)

<div class="topic-metadata">

**Author:** [@Den\_Commander](https://forums.unrealengine.com/u/Den_Commander)\
**Replies:** 5\
**Last updated:** [September 7, 2024, 1:20pm UTC](https://forums.unrealengine.com/t/how-to-determine-client-or-server-in-vs-debugger/150136 "2024-09-07T13:20:16Z")

</div>

how to determine if a breakpoint was triggered on the server or on the client? In VS debugger without modifying code?

---

## [Error C2039 packaging plugin with USlateThemeManager](https://forums.unrealengine.com/t/error-c2039-packaging-plugin-with-uslatethememanager/1810836)

<div class="topic-metadata">

**Author:** [@GlowlineStd](https://forums.unrealengine.com/u/GlowlineStd)\
**Replies:** 2\
**Last updated:** [September 7, 2024, 11:00am UTC](https://forums.unrealengine.com/t/error-c2039-packaging-plugin-with-uslatethememanager/1810836 "2024-09-07T11:00:24Z")

</div>

Hello community, I’m trying to package a plugin I’m making to handle themes in unreal engine. The problem it is giving me is this: … error C2039: ‘GetUserThemeDir’: is not a member of ‘USlateThemeManager’ C:\\Program F…

---

## [How to Instantiate Slate SCompoundWidget Template class](https://forums.unrealengine.com/t/how-to-instantiate-slate-scompoundwidget-template-class/2000540)

<div class="topic-metadata">

**Author:** [@salah\_besbes](https://forums.unrealengine.com/u/salah_besbes)\
**Replies:** 1\
**Last updated:** [September 6, 2024, 8:06pm UTC](https://forums.unrealengine.com/t/how-to-instantiate-slate-scompoundwidget-template-class/2000540 "2024-09-06T20:06:24Z")

</div>

I want to instantiate some SWidget Class template , using SNew but all I Get is an error “Too few argument for class template SUAISlate” it uses to work with the same syntax before introducing to it the template feature…

---

## [Referencing SkeletalMeshComponents in another, non-related component in the same actor](https://forums.unrealengine.com/t/referencing-skeletalmeshcomponents-in-another-non-related-component-in-the-same-actor/2008363)

<div class="topic-metadata">

**Author:** [@mkloczko1](https://forums.unrealengine.com/u/mkloczko1)\
**Replies:** 0\
**Last updated:** [September 6, 2024, 2:24pm UTC](https://forums.unrealengine.com/t/referencing-skeletalmeshcomponents-in-another-non-related-component-in-the-same-actor/2008363 "2024-09-06T14:24:10Z")

</div>

Hi, I’ve got a small problem. I have a component that references owner’s other SkeletalMeshComponents. It seems that the SkeletalMeshComponents get destroyed from time to time, and I wonder what are the best practices (o…

---

## [QueryInstance.AddItemData\<UEnvQueryItemType\_Point\>() HELPPP!!](https://forums.unrealengine.com/t/queryinstance-additemdata-uenvqueryitemtype-point-helppp/2008302)

<div class="topic-metadata">

**Author:** [@bubaihuolong](https://forums.unrealengine.com/u/bubaihuolong)\
**Replies:** 0\
**Last updated:** [September 6, 2024, 1:53pm UTC](https://forums.unrealengine.com/t/queryinstance-additemdata-uenvqueryitemtype-point-helppp/2008302 "2024-09-06T13:53:14Z")

</div>

I want to create a custom EnvQueryGenerator\_BlueprintBase, But After I finished writing the code, I found that it crashed when it was running。 This Is My .h File #include "CoreMinimal.h" #include "EnvironmentQuery/Gene…

---

## [can i call a function on a constructed object inside a K2Node?](https://forums.unrealengine.com/t/can-i-call-a-function-on-a-constructed-object-inside-a-k2node/2004803)

<div class="topic-metadata">

**Author:** [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Replies:** 8\
**Last updated:** [September 6, 2024, 12:45pm UTC](https://forums.unrealengine.com/t/can-i-call-a-function-on-a-constructed-object-inside-a-k2node/2004803 "2024-09-06T12:45:37Z")

</div>

I’ve recreated ConstructObjectFromClass to create an object and set some variables/delegates, i’d like to call the equivalent of BeginPlay when the construction is complete, is this possible from the K2Node? if i use th…

---

## [UObject's CallInEditor function doesn't show up in Details panel when it is a sub-object within a scene component.](https://forums.unrealengine.com/t/uobjects-callineditor-function-doesnt-show-up-in-details-panel-when-it-is-a-sub-object-within-a-scene-component/780550)

<div class="topic-metadata">

**Author:** [@Sulleyyyyyy](https://forums.unrealengine.com/u/Sulleyyyyyy)\
**Replies:** 1\
**Last updated:** [September 6, 2024, 9:05am UTC](https://forums.unrealengine.com/t/uobjects-callineditor-function-doesnt-show-up-in-details-panel-when-it-is-a-sub-object-within-a-scene-component/780550 "2024-09-06T09:05:25Z")

</div>

Seemingly related question but remains unsolved: Getting CallInEditor UFUNCTIONs to appear in details panel Here is the question: I creat a scene component and it has an array property: UPROPERTY(Instanced, EditAnywhe…

---

## [Will UClass Object be GC?](https://forums.unrealengine.com/t/will-uclass-object-be-gc/2007922)

<div class="topic-metadata">

**Author:** [@user\_26c4c94f4bfc5ec2ad831c0e160b3abebd1aea0ce84dd247069373](https://forums.unrealengine.com/u/user_26c4c94f4bfc5ec2ad831c0e160b3abebd1aea0ce84dd247069373)\
**Replies:** 0\
**Last updated:** [September 6, 2024, 8:35am UTC](https://forums.unrealengine.com/t/will-uclass-object-be-gc/2007922 "2024-09-06T08:35:23Z")

</div>

I wrote a TMap\<UClass\*, int32\>. But the key could be pointing to a UClass that is defined in a dynamicly loaded module. So if that module got unloaded, will that UClass\* become a dangling pointer? Or I can expect that on…

---

## [error C2039](https://forums.unrealengine.com/t/error-c2039/2006827)

<div class="topic-metadata">

**Author:** [@TheRealPfloder](https://forums.unrealengine.com/u/TheRealPfloder)\
**Replies:** 2\
**Last updated:** [September 5, 2024, 5:47pm UTC](https://forums.unrealengine.com/t/error-c2039/2006827 "2024-09-05T17:47:26Z")

</div>

It gives me the error C2039 “BindDymamic” isn’t a member of “FOnTimelineFloat” if(CurveFloat) { FOnTimelineFloat TimelineProgress; TimelineProgress.BindDymamic(this, &ADoorActor::OpenDoor); Timeline.AddInte…

---

## [Finding and enabling the curve float for my blueprint(in the blueprint editor)](https://forums.unrealengine.com/t/finding-and-enabling-the-curve-float-for-my-blueprint-in-the-blueprint-editor/2006518)

<div class="topic-metadata">

**Author:** [@TheRealPfloder](https://forums.unrealengine.com/u/TheRealPfloder)\
**Replies:** 2\
**Last updated:** [September 5, 2024, 5:12pm UTC](https://forums.unrealengine.com/t/finding-and-enabling-the-curve-float-for-my-blueprint-in-the-blueprint-editor/2006518 "2024-09-05T17:12:01Z")

</div>

So I’m currently implementing doors into my Game with watching this tutorial: Unreal C++ Tutorial | How to make a Door - YouTube But my Door wont animate and ive searched for solutions(im at 9:10 minutes), in the descr…

---

## [How to Load Different Asset Groups in a Scene](https://forums.unrealengine.com/t/how-to-load-different-asset-groups-in-a-scene/2006511)

<div class="topic-metadata">

**Author:** [@zombatom](https://forums.unrealengine.com/u/zombatom)\
**Replies:** 0\
**Last updated:** [September 5, 2024, 2:21pm UTC](https://forums.unrealengine.com/t/how-to-load-different-asset-groups-in-a-scene/2006511 "2024-09-05T14:21:37Z")

</div>

Hello! I’m porting a racing game from Unity to Unreal and trying to figure out the best way to load different tracks into a level. In Unity, I used to load the main level scene and then the track scene separately. In Un…

---

## [Problem with nested components](https://forums.unrealengine.com/t/problem-with-nested-components/2005128)

<div class="topic-metadata">

**Author:** [@Jacek0282](https://forums.unrealengine.com/u/Jacek0282)\
**Replies:** 6\
**Last updated:** [September 5, 2024, 11:26am UTC](https://forums.unrealengine.com/t/problem-with-nested-components/2005128 "2024-09-05T11:26:45Z")

</div>

I have a problem with components which are constructed from other components constructor. My first compoenent (cockpit) derives from SceneCompoenent. From it’s constructor I create Cockpit Buttons, which derive from Sta…

---

## [Destructors in UE](https://forums.unrealengine.com/t/destructors-in-ue/2505)

<div class="topic-metadata">

**Author:** [@RoyiBernthal](https://forums.unrealengine.com/u/RoyiBernthal)\
**Replies:** 9\
**Last updated:** [September 5, 2024, 8:51am UTC](https://forums.unrealengine.com/t/destructors-in-ue/2505 "2024-09-05T08:51:52Z")

</div>

Do classes in UE need destructors? When I add new code via Unreal Editor it never has a destructor. If they’re not needed, why?

---

## [TextBlock's SetText() problem](https://forums.unrealengine.com/t/textblocks-settext-problem/1996872)

<div class="topic-metadata">

**Author:** [@BonBat](https://forums.unrealengine.com/u/BonBat)\
**Replies:** 4\
**Last updated:** [September 5, 2024, 8:28am UTC](https://forums.unrealengine.com/t/textblocks-settext-problem/1996872 "2024-09-05T08:28:11Z")

</div>

I have a problem when I use TextBlock’s SetText function. I thought that the problem was somewhere in my project so I created TPS template. I created UserWidget and HUD classes in C++ and derived them in blueprints (and …

---

## [Why enum, declared in c++ does not accessible to choose if BlackBoard?](https://forums.unrealengine.com/t/why-enum-declared-in-c-does-not-accessible-to-choose-if-blackboard/45884)

<div class="topic-metadata">

**Author:** [@Sashka](https://forums.unrealengine.com/u/Sashka)\
**Replies:** 5\
**Last updated:** [September 5, 2024, 3:38am UTC](https://forums.unrealengine.com/t/why-enum-declared-in-c-does-not-accessible-to-choose-if-blackboard/45884 "2024-09-05T03:38:30Z")

</div>

I’ve declared my enum in MyAiController.h: UENUM(BlueprintType) enum class EBotState : uint8 { BS\_IDLE = 0 UMETA(DisplayName = "BS\_Idle"), BS\_PURSUE UMETA(DisplayName = "BS\_Pursue"), BS\_ATACK …

---

## [What is meant by "Outer Object"?](https://forums.unrealengine.com/t/what-is-meant-by-outer-object/40985)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_a1d09d07](https://forums.unrealengine.com/u/anonymous_user_a1d09d07)\
**Replies:** 7\
**Last updated:** [September 5, 2024, 2:00am UTC](https://forums.unrealengine.com/t/what-is-meant-by-outer-object/40985 "2024-09-05T02:00:38Z")

</div>

I am looking at the documentation for creating UObject instances here: Creating Objects in Unreal Engine | Unreal Engine 5.2 Documentation It mentions that each method takes an optional “Outer Object” but I have no idea…

---

## [(SOLVED) Messaging System with FMessageEndpoint doesn't work in Shipping Build](https://forums.unrealengine.com/t/solved-messaging-system-with-fmessageendpoint-doesnt-work-in-shipping-build/143361)

<div class="topic-metadata">

**Author:** [@SolDirix](https://forums.unrealengine.com/u/SolDirix)\
**Replies:** 13\
**Last updated:** [September 4, 2024, 8:54pm UTC](https://forums.unrealengine.com/t/solved-messaging-system-with-fmessageendpoint-doesnt-work-in-shipping-build/143361 "2024-09-04T20:54:32Z")

</div>

I’m making a simple UE4 C++ project that tests UE4’s messaging system and it doesn’t work in the shipping build. It works on the developer build and the editor though. Some extra details: I tried this in both 4.24 and 4…

---

## [Rotation in x, y axises follow Right Hand Rule](https://forums.unrealengine.com/t/rotation-in-x-y-axises-follow-right-hand-rule/36284)

<div class="topic-metadata">

**Author:** [@Henry\_Read](https://forums.unrealengine.com/u/Henry_Read)\
**Replies:** 9\
**Last updated:** [September 4, 2024, 7:16pm UTC](https://forums.unrealengine.com/t/rotation-in-x-y-axises-follow-right-hand-rule/36284 "2024-09-04T19:16:11Z")

</div>

The UE4 Coordinate is Left Handed. (Let the Axis position direction facing you, so clockwise and counter-closewise are defined. Or use left hand thumb face axis positive direction and then other four fingers direction i…

---

## [\[FIX\] How to create subdirectories in Source folder for C++ files  without errors in UE5](https://forums.unrealengine.com/t/fix-how-to-create-subdirectories-in-source-folder-for-c-files-without-errors-in-ue5/755710)

<div class="topic-metadata">

**Author:** [@Porotoo](https://forums.unrealengine.com/u/Porotoo)\
**Replies:** 3\
**Last updated:** [September 4, 2024, 7:11pm UTC](https://forums.unrealengine.com/t/fix-how-to-create-subdirectories-in-source-folder-for-c-files-without-errors-in-ue5/755710 "2024-09-04T19:11:49Z")

</div>

Hi everyone! I am kinda new to Unreal, I been really struggling with the creation of subfolders inside the “Source” folder of Unreal C++ classes. So the main problem is this: I want to create new C++ class inside a subfo…

---

## [TSubclass of UPhysicalMaterial - Compilation error](https://forums.unrealengine.com/t/tsubclass-of-uphysicalmaterial-compilation-error/2005061)

<div class="topic-metadata">

**Author:** [@art\_lck](https://forums.unrealengine.com/u/art_lck)\
**Replies:** 1\
**Last updated:** [September 4, 2024, 4:04pm UTC](https://forums.unrealengine.com/t/tsubclass-of-uphysicalmaterial-compilation-error/2005061 "2024-09-04T16:04:12Z")

</div>

Hey, Idk if it’s a bug or not, but I receive a compile error when trying to do this: TSubclassOf\<class UPhysicalMaterial\> Material; Including PhysicalMaterial.h doesn’t resolve the issue. What the compiler says:

---

## [UE5 Chaos - UGeometryCollectionComponent not working](https://forums.unrealengine.com/t/ue5-chaos-ugeometrycollectioncomponent-not-working/572880)

<div class="topic-metadata">

**Author:** [@hhhhdf55](https://forums.unrealengine.com/u/hhhhdf55)\
**Replies:** 3\
**Last updated:** [September 4, 2024, 3:52pm UTC](https://forums.unrealengine.com/t/ue5-chaos-ugeometrycollectioncomponent-not-working/572880 "2024-09-04T15:52:58Z")

</div>

When I try to create a Geometry Collection component in C++, I keep receiving these errors. InteractionTrigger.h I added the include header: #include "GeometryCollection/GeometryCollectionComponent.h" and a UPROPER…

---

## [Use blackboard key selector as an editable property of a class](https://forums.unrealengine.com/t/use-blackboard-key-selector-as-an-editable-property-of-a-class/1905182)

<div class="topic-metadata">

**Author:** [@user\_26c4c94f4bfc5ec2ad831c0e160b3abebd1aea0ce84dd247069373](https://forums.unrealengine.com/u/user_26c4c94f4bfc5ec2ad831c0e160b3abebd1aea0ce84dd247069373)\
**Replies:** 2\
**Last updated:** [September 4, 2024, 7:56am UTC](https://forums.unrealengine.com/t/use-blackboard-key-selector-as-an-editable-property-of-a-class/1905182 "2024-09-04T07:56:01Z")

</div>

Because I have plenty of enemies with different types, I made a data driven enemy class which means there is only one enemy class for most enemy types and use different data assets to spawn different types of enemies. Bu…

---

## [Spawning blueprint actor from c++](https://forums.unrealengine.com/t/spawning-blueprint-actor-from-c/656641)

<div class="topic-metadata">

**Author:** [@Dependo](https://forums.unrealengine.com/u/Dependo)\
**Replies:** 8\
**Last updated:** [September 3, 2024, 6:16pm UTC](https://forums.unrealengine.com/t/spawning-blueprint-actor-from-c/656641 "2024-09-03T18:16:54Z")

</div>

When trying to spawn a blueprint actor from c++ I get the following error: Ensure condition failed: GetShadowIndex() == 0 The code used for spawning the actor static ConstructorHelpers::FObjectFinder\`\<UBlueprint\>\`blue…

---

## [Project with external library doesn't link: \_ITERATOR\_DEBUG\_LEVEL and MDd\_DynamicDebug errors](https://forums.unrealengine.com/t/project-with-external-library-doesnt-link-iterator-debug-level-and-mdd-dynamicdebug-errors/746254)

<div class="topic-metadata">

**Author:** [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Replies:** 2\
**Last updated:** [September 3, 2024, 5:48pm UTC](https://forums.unrealengine.com/t/project-with-external-library-doesnt-link-iterator-debug-level-and-mdd-dynamicdebug-errors/746254 "2024-09-03T17:48:23Z")

</div>

Hi! I’m using a external library into my game project. This is the Build.cs file: // Copyright Epic Games, Inc. All Rights Reserved. using UnrealBuildTool; public class MyGameProject : ModuleRules { public MyGamePro…

---

## [CreateDefaultSubobject Crashes the Engine when starting game](https://forums.unrealengine.com/t/createdefaultsubobject-crashes-the-engine-when-starting-game/2002137)

<div class="topic-metadata">

**Author:** [@Rocketfreund](https://forums.unrealengine.com/u/Rocketfreund)\
**Replies:** 1\
**Last updated:** [September 3, 2024, 2:58pm UTC](https://forums.unrealengine.com/t/createdefaultsubobject-crashes-the-engine-when-starting-game/2002137 "2024-09-03T14:58:56Z")

</div>

Hi, I wanted to do my BaseClass only in c++, so I also had to do the Components in it. Now my Problem is that if I have more than one Component (or my Pickup component isn’t the RootComponent, I’m unsure) declared with…

---

## [What is Headless Chaos (Specifically Test Vehicles)](https://forums.unrealengine.com/t/what-is-headless-chaos-specifically-test-vehicles/787273)

<div class="topic-metadata">

**Author:** [@Raptor\_Monkey\_202](https://forums.unrealengine.com/u/Raptor_Monkey_202)\
**Replies:** 1\
**Last updated:** [September 3, 2024, 1:05pm UTC](https://forums.unrealengine.com/t/what-is-headless-chaos-specifically-test-vehicles/787273 "2024-09-03T13:05:57Z")

</div>

So Im making a game using chaos vehicles and while working on modifications I happen to stumble upon Headless Chaos, what is this? (Engine\\Source\\Programs\\HeadlessChaos\\Private) I cant find any wiki for it and it seems t…

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

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