# C++

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

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

**Page:** 73

---

## [OnOverlapbeginComponentEvent only triggers for one of two pickup classes](https://forums.unrealengine.com/t/onoverlapbegincomponentevent-only-triggers-for-one-of-two-pickup-classes/2101174)

<div class="topic-metadata">

**Author:** [@Ramirojos](https://forums.unrealengine.com/u/Ramirojos)\
**Replies:** 0\
**Last updated:** [November 2, 2024, 6:32pm UTC](https://forums.unrealengine.com/t/onoverlapbegincomponentevent-only-triggers-for-one-of-two-pickup-classes/2101174 "2024-11-02T18:32:06Z")

</div>

Hi! I’m running into a weird issue. I have two different pickups, a HealtPickup and a PointsPickup. Both have the same OnBeginComponentOverlapEvent, but only the Points Pickup is being triggered. I don’t know why it’s…

---

## [SimpleMoveToLocation can not move to target accuractly](https://forums.unrealengine.com/t/simplemovetolocation-can-not-move-to-target-accuractly/386222)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_99ad6a471](https://forums.unrealengine.com/u/anonymous_user_99ad6a471)\
**Replies:** 1\
**Last updated:** [November 1, 2024, 10:31pm UTC](https://forums.unrealengine.com/t/simplemovetolocation-can-not-move-to-target-accuractly/386222 "2024-11-01T22:31:25Z")

</div>

Hi, I’ve got a problem with UNavigationSystem::SimpleMoveToLocation(GetController(), destination); I have produced a target point FVector destination, and used SimpleMoveToLocation(GetController(), destination) to move …

---

## [Dedicated Server crash](https://forums.unrealengine.com/t/dedicated-server-crash/2099580)

<div class="topic-metadata">

**Author:** [@xDennis0811](https://forums.unrealengine.com/u/xDennis0811)\
**Replies:** 0\
**Last updated:** [November 1, 2024, 7:16pm UTC](https://forums.unrealengine.com/t/dedicated-server-crash/2099580 "2024-11-01T19:16:28Z")

</div>

Hello! I’m having the issue when building a dedicated Server that it crashes because of no active Graphics Context. I’m using a UE5.4 source build and created the targets for Client and Server but the Server just crashe…

---

## [SphereComponent Not Appearing in Components Tab When Added via ActorComponent](https://forums.unrealengine.com/t/spherecomponent-not-appearing-in-components-tab-when-added-via-actorcomponent/2098464)

<div class="topic-metadata">

**Author:** [@ExistUnreal](https://forums.unrealengine.com/u/ExistUnreal)\
**Replies:** 2\
**Last updated:** [November 1, 2024, 3:50pm UTC](https://forums.unrealengine.com/t/spherecomponent-not-appearing-in-components-tab-when-added-via-actorcomponent/2098464 "2024-11-01T15:50:02Z")

</div>

Hi everyone, I’ve been working on a project in Unreal Engine and ran into an issue when trying to add a SphereComponent via an ActorComponent. While the SphereComponent is visible in the viewport, it doesn’t appear in t…

---

## [Is \`APlayerController::ClientTravel\` bugged in UE 5.4?](https://forums.unrealengine.com/t/is-aplayercontroller-clienttravel-bugged-in-ue-5-4/2099304)

<div class="topic-metadata">

**Author:** [@Guitarleader](https://forums.unrealengine.com/u/Guitarleader)\
**Replies:** 1\
**Last updated:** [November 1, 2024, 3:40pm UTC](https://forums.unrealengine.com/t/is-aplayercontroller-clienttravel-bugged-in-ue-5-4/2099304 "2024-11-01T15:40:19Z")

</div>

I feel like I’m going crazy trying to figure this out. I originally made my own plugin for multiplayer sessions in UE 5.2 (cause I wanted to integrate Easy Anti Cheat) and it worked completely fine in 5.2 on both Steam a…

---

## [Unable to find class FSubsystemCollectionBase](https://forums.unrealengine.com/t/unable-to-find-class-fsubsystemcollectionbase/2099057)

<div class="topic-metadata">

**Author:** [@HofstadterK1](https://forums.unrealengine.com/u/HofstadterK1)\
**Replies:** 1\
**Last updated:** [November 1, 2024, 1:16pm UTC](https://forums.unrealengine.com/t/unable-to-find-class-fsubsystemcollectionbase/2099057 "2024-11-01T13:16:55Z")

</div>

Hey everyone! Either got a really weird issue here or I am really dumb. I am using UE 5.4.4. I derived a class from UEngineSubsystem: #include "CoreMinimal.h" #include "Subsystems/EngineSubsystem.h" #include "UniverseS…

---

## [How to get my DataAsset in C++?](https://forums.unrealengine.com/t/how-to-get-my-dataasset-in-c/144472)

<div class="topic-metadata">

**Author:** [@torano111](https://forums.unrealengine.com/u/torano111)\
**Replies:** 14\
**Last updated:** [November 1, 2024, 11:43am UTC](https://forums.unrealengine.com/t/how-to-get-my-dataasset-in-c/144472 "2024-11-01T11:43:48Z")

</div>

Hi guys. I am new to Unreal Engine and struggling with accessing to my DataAssets in C++. I made a simple game that Player has to pick up items which are spawned per 2-5 seconds, to recover his health. After completing …

---

## [Google Auth for mobile game](https://forums.unrealengine.com/t/google-auth-for-mobile-game/1317595)

<div class="topic-metadata">

**Author:** [@grisha666](https://forums.unrealengine.com/u/grisha666)\
**Replies:** 3\
**Last updated:** [November 1, 2024, 10:13am UTC](https://forums.unrealengine.com/t/google-auth-for-mobile-game/1317595 "2024-11-01T10:13:59Z")

</div>

Hello, I got backend with already working setup, and I wrote a frontend to get the code from google OAuth2 and my backend change this code to token that I use for auth. The question is how to make OAuth2 authentication …

---

## [Combining "Animation Root Motion" with other "Root Motion Sources"](https://forums.unrealengine.com/t/combining-animation-root-motion-with-other-root-motion-sources/115517)

<div class="topic-metadata">

**Author:** [@thoughton](https://forums.unrealengine.com/u/thoughton)\
**Replies:** 2\
**Last updated:** [November 1, 2024, 4:42am UTC](https://forums.unrealengine.com/t/combining-animation-root-motion-with-other-root-motion-sources/115517 "2024-11-01T04:42:03Z")

</div>

Hi, I’ve recently been reading through some of the Engine code regarding RootMotionSources and CharacterMovementComponents. However I have found some code (and comments) in each that seems to be quite contracdictory, i…

---

## [Has anyone Used UCameraMode and UCameraModeTrasnsition?](https://forums.unrealengine.com/t/has-anyone-used-ucameramode-and-ucameramodetrasnsition/2098244)

<div class="topic-metadata">

**Author:** [@Raja.Haris](https://forums.unrealengine.com/u/Raja.Haris)\
**Replies:** 0\
**Last updated:** [October 31, 2024, 11:43pm UTC](https://forums.unrealengine.com/t/has-anyone-used-ucameramode-and-ucameramodetrasnsition/2098244 "2024-10-31T23:43:49Z")

</div>

Hi, I noticed that There are 2 classes which are CameraMode and CameraModeTransition I was wondering if anyone has used them in their project and what were the pros and cons. I can’t seem to find any example code regard…

---

## [How to use Clang and VScode for UE?](https://forums.unrealengine.com/t/how-to-use-clang-and-vscode-for-ue/2098106)

<div class="topic-metadata">

**Author:** [@A\_Hogwarts\_PhD](https://forums.unrealengine.com/u/A_Hogwarts_PhD)\
**Replies:** 1\
**Last updated:** [October 31, 2024, 10:36pm UTC](https://forums.unrealengine.com/t/how-to-use-clang-and-vscode-for-ue/2098106 "2024-10-31T22:36:35Z")

</div>

Hi everyone, i am a new beginer for UE, i am using UE 5.2.1 now. I hope that i can use Clang to compile C++ scripts instead installing VS2022. I have installed Clang in my windows system, and added the path to my envir…

---

## [Using Open Weather API in unreal Engine 4.18](https://forums.unrealengine.com/t/using-open-weather-api-in-unreal-engine-4-18/416597)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_8b3a8d32](https://forums.unrealengine.com/u/anonymous_user_8b3a8d32)\
**Replies:** 3\
**Last updated:** [October 31, 2024, 4:57pm UTC](https://forums.unrealengine.com/t/using-open-weather-api-in-unreal-engine-4-18/416597 "2024-10-31T16:57:47Z")

</div>

Hi all. I’m new to unreal engine and i’m looking to use open weather in the game and i’m not sure how to approach this. Thanks for any Help.

---

## [Where to find tutorial for a 2d platformer in c++](https://forums.unrealengine.com/t/where-to-find-tutorial-for-a-2d-platformer-in-c/2094064)

<div class="topic-metadata">

**Author:** [@t0botron](https://forums.unrealengine.com/u/t0botron)\
**Replies:** 1\
**Last updated:** [October 31, 2024, 4:12pm UTC](https://forums.unrealengine.com/t/where-to-find-tutorial-for-a-2d-platformer-in-c/2094064 "2024-10-31T16:12:26Z")

</div>

Hey I was just wondering if anyone knew of a free course/video/text tutorial for making a simple platformer in unreal using C++ instead of blueprints

---

## [Is it possible to start a timer without passing an FTimerHandle argument to GetWorld()-\>GetTimerManager().SetTimer?](https://forums.unrealengine.com/t/is-it-possible-to-start-a-timer-without-passing-an-ftimerhandle-argument-to-getworld-gettimermanager-settimer/2097202)

<div class="topic-metadata">

**Author:** [@ppffpp](https://forums.unrealengine.com/u/ppffpp)\
**Replies:** 1\
**Last updated:** [October 31, 2024, 10:10am UTC](https://forums.unrealengine.com/t/is-it-possible-to-start-a-timer-without-passing-an-ftimerhandle-argument-to-getworld-gettimermanager-settimer/2097202 "2024-10-31T10:10:15Z")

</div>

I want to fire and forget about it and don’t want to pollute my class with unused timer handles.

---

## [Some Soft Pointer Asset Invalid](https://forums.unrealengine.com/t/some-soft-pointer-asset-invalid/2093488)

<div class="topic-metadata">

**Author:** [@ImAGoodSpoon1](https://forums.unrealengine.com/u/ImAGoodSpoon1)\
**Replies:** 2\
**Last updated:** [October 31, 2024, 3:43am UTC](https://forums.unrealengine.com/t/some-soft-pointer-asset-invalid/2093488 "2024-10-31T03:43:59Z")

</div>

Hello there, I have a problem where my Soft Pointer is invalid. However, this isn’t happening to all of the assets. There are some assets that invalid if I check the validity of the Soft Pointer: if (!WeaponTrailTemplat…

---

## [Pure Virtual Not Implemented](https://forums.unrealengine.com/t/pure-virtual-not-implemented/479099)

<div class="topic-metadata">

**Author:** [@doggonomous](https://forums.unrealengine.com/u/doggonomous)\
**Replies:** 4\
**Last updated:** [October 31, 2024, 3:41am UTC](https://forums.unrealengine.com/t/pure-virtual-not-implemented/479099 "2024-10-31T03:41:49Z")

</div>

Hi, I’m getting this error with the PURE\_VIRTUAL Macro. I declared this FireWeapon() Pure Virtual function in SWeapon.h and called it defined/implemented it in SWeaponInstance.cpp which is derived from SWeapon class. Bu…

---

## [My event dispatcher doesn't work](https://forums.unrealengine.com/t/my-event-dispatcher-doesnt-work/2096317)

<div class="topic-metadata">

**Author:** [@celian45](https://forums.unrealengine.com/u/celian45)\
**Replies:** 9\
**Last updated:** [October 31, 2024, 1:19am UTC](https://forums.unrealengine.com/t/my-event-dispatcher-doesnt-work/2096317 "2024-10-31T01:19:21Z")

</div>

Hi everyone ! In my project, I’m trying to use an Event Dispatcher to trigger a custom event when an object is destroyed, but my custom event isn’t working as expected. Here’s the setup: First Screenshot (Level Blue…

---

## [Is there an update for FSlateBrush operator?](https://forums.unrealengine.com/t/is-there-an-update-for-fslatebrush-operator/2096583)

<div class="topic-metadata">

**Author:** [@WheelletBurger](https://forums.unrealengine.com/u/WheelletBurger)\
**Replies:** 0\
**Last updated:** [October 30, 2024, 11:10pm UTC](https://forums.unrealengine.com/t/is-there-an-update-for-fslatebrush-operator/2096583 "2024-10-30T23:10:28Z")

</div>

I’m using version 5.3.2 of Unreal Engine. UE\_DEPRECATED(5.2, “Direct access to Brush is deprecated. Please use the getter or setter.”) I tried to reset the outlinesetting with getters and setters because of the instruc…

---

## [APKs won't be signed | java.lang.OutOfMemoryError | Requested array size exceeds VM limit | Unable to find AAB](https://forums.unrealengine.com/t/apks-wont-be-signed-java-lang-outofmemoryerror-requested-array-size-exceeds-vm-limit-unable-to-find-aab/1206544)

<div class="topic-metadata">

**Author:** [@Mantovictor](https://forums.unrealengine.com/u/Mantovictor)\
**Replies:** 3\
**Last updated:** [October 30, 2024, 7:02pm UTC](https://forums.unrealengine.com/t/apks-wont-be-signed-java-lang-outofmemoryerror-requested-array-size-exceeds-vm-limit-unable-to-find-aab/1206544 "2024-10-30T19:02:40Z")

</div>

Hi all, I’m facing terrible errors that are driving me crazy! I have a VR project on UE 5.2, it’s runing fine, but I can’t compile! I compiled once, everything went well, I changed the starting map and now I can’t com…

---

## [undefined struct 'FVector', undefined type 'FVector'](https://forums.unrealengine.com/t/undefined-struct-fvector-undefined-type-fvector/2092572)

<div class="topic-metadata">

**Author:** [@goatprescion](https://forums.unrealengine.com/u/goatprescion)\
**Replies:** 7\
**Last updated:** [October 30, 2024, 12:25pm UTC](https://forums.unrealengine.com/t/undefined-struct-fvector-undefined-type-fvector/2092572 "2024-10-30T12:25:40Z")

</div>

(Beginner at C++), I’m currently updating a project from UE4.27 to UE5.2 and I get many (99+) FVector and FRotator errors when trying to build my project. SpringArmComponent.h(29): Error C2079 : ‘USpringArmComponent::So…

---

## [Request-\>OnProcessRequestComplete() gets called only on first play session](https://forums.unrealengine.com/t/request-onprocessrequestcomplete-gets-called-only-on-first-play-session/2080155)

<div class="topic-metadata">

**Author:** [@Quantum\_GO](https://forums.unrealengine.com/u/Quantum_GO)\
**Replies:** 7\
**Last updated:** [October 30, 2024, 12:44pm UTC](https://forums.unrealengine.com/t/request-onprocessrequestcomplete-gets-called-only-on-first-play-session/2080155 "2024-10-30T12:44:34Z")

</div>

I have been trying to fix this for a while, but to no success, which is why I have come to here to hopefully get an answer to what is going wrong. I am writing a little tool so our team can submit bugs to Trello through …

---

## [Is there a way to use VariantSets with Loaded Level Actor](https://forums.unrealengine.com/t/is-there-a-way-to-use-variantsets-with-loaded-level-actor/2094510)

<div class="topic-metadata">

**Author:** [@ilbeyataberkcan](https://forums.unrealengine.com/u/ilbeyataberkcan)\
**Replies:** 0\
**Last updated:** [October 29, 2024, 6:09pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-use-variantsets-with-loaded-level-actor/2094510 "2024-10-29T18:09:59Z")

</div>

Hi. I’ve created Variant Sets in a level that I’m planning to load into a main level at runtime. But the variant Manager system only uses the persistent level. They even leave a comment in the source code for that. They…

---

## [Parse JSON File with Array of Objects without converting to USTRUCT](https://forums.unrealengine.com/t/parse-json-file-with-array-of-objects-without-converting-to-ustruct/650839)

<div class="topic-metadata">

**Author:** [@UsaidPro](https://forums.unrealengine.com/u/UsaidPro)\
**Replies:** 6\
**Last updated:** [October 29, 2024, 4:26pm UTC](https://forums.unrealengine.com/t/parse-json-file-with-array-of-objects-without-converting-to-ustruct/650839 "2024-10-29T16:26:12Z")

</div>

Hello, I have multiple JSON files as follows. I am trying to create an all-purpose plugin to handle some JSON object-array files given to me. // Multiple files like this: \[ { // JSON Object }, { …

---

## [How change OrthoNearClip on PlayerCameraManager](https://forums.unrealengine.com/t/how-change-orthonearclip-on-playercameramanager/2094090)

<div class="topic-metadata">

**Author:** [@NSediq](https://forums.unrealengine.com/u/NSediq)\
**Replies:** 0\
**Last updated:** [October 29, 2024, 1:26pm UTC](https://forums.unrealengine.com/t/how-change-orthonearclip-on-playercameramanager/2094090 "2024-10-29T13:26:19Z")

</div>

I use a PlayerCameraManager without any camera on my scene and wotk with TargetView and an actor to render my scene, my game is ortho and i some character pos it seems that my camera clip the building, i check OrthoNearC…

---

## [i can not build c++ folder in unreal engine](https://forums.unrealengine.com/t/i-can-not-build-c-folder-in-unreal-engine/2094039)

<div class="topic-metadata">

**Author:** [@monalisaso](https://forums.unrealengine.com/u/monalisaso)\
**Replies:** 0\
**Last updated:** [October 29, 2024, 1:01pm UTC](https://forums.unrealengine.com/t/i-can-not-build-c-folder-in-unreal-engine/2094039 "2024-10-29T13:01:55Z")

</div>

when i try to build my unreal engine base on c++ it can not build the new file. It Always build failed and my old project also missing.

---

## [Get Color From textue](https://forums.unrealengine.com/t/get-color-from-textue/2093897)

<div class="topic-metadata">

**Author:** [@Ahmed\_S\_Nassar](https://forums.unrealengine.com/u/Ahmed_S_Nassar)\
**Replies:** 0\
**Last updated:** [October 29, 2024, 10:57am UTC](https://forums.unrealengine.com/t/get-color-from-textue/2093897 "2024-10-29T10:57:28Z")

</div>

Hello there! I have a problem I have a line trace and I need to get the texture color at the hit point I tried to retrieve the color using this Function FColor AFullStaticLidar::GetColorFromTexture(UTexture2D\* Texture…

---

## [How do you reference & modify TArray pointers as out parameters?](https://forums.unrealengine.com/t/how-do-you-reference-modify-tarray-pointers-as-out-parameters/2087041)

<div class="topic-metadata">

**Author:** [@Paddles](https://forums.unrealengine.com/u/Paddles)\
**Replies:** 2\
**Last updated:** [October 29, 2024, 10:28am UTC](https://forums.unrealengine.com/t/how-do-you-reference-modify-tarray-pointers-as-out-parameters/2087041 "2024-10-29T10:28:43Z")

</div>

A few times a year, I run into this issue and never find a solution online. Here’s the latest use case: I have an interface function that returns an array of other interfaces as an out parameter pointer (the use case is…

---

## [How to create multiple headless clients to test server performance？](https://forums.unrealengine.com/t/how-to-create-multiple-headless-clients-to-test-server-performance/2093359)

<div class="topic-metadata">

**Author:** [@MIkasa1009](https://forums.unrealengine.com/u/MIkasa1009)\
**Replies:** 1\
**Last updated:** [October 29, 2024, 9:34am UTC](https://forums.unrealengine.com/t/how-to-create-multiple-headless-clients-to-test-server-performance/2093359 "2024-10-29T09:34:20Z")

</div>

Hello everyone, I have recently been learning the new network framework Iris launched by Epic. May I ask how I can create multiple headless clients to observe the performance optimization of Iris on the network? I have c…

---

## [How to declare Log category that can be accessed by all classes (like LogTemp)?](https://forums.unrealengine.com/t/how-to-declare-log-category-that-can-be-accessed-by-all-classes-like-logtemp/482317)

<div class="topic-metadata">

**Author:** [@k\_a\_s\_s\_k\_a\_s\_s](https://forums.unrealengine.com/u/k_a_s_s_k_a_s_s)\
**Replies:** 3\
**Last updated:** [October 29, 2024, 8:56am UTC](https://forums.unrealengine.com/t/how-to-declare-log-category-that-can-be-accessed-by-all-classes-like-logtemp/482317 "2024-10-29T08:56:54Z")

</div>

What is the process of declaring a log category that can be accessed with the UE\_LOG macro, without having to manually include some file in any class that needs to use this log category? I have tried including it in the…

---

## [Setting Image Visibility based on player input - C++](https://forums.unrealengine.com/t/setting-image-visibility-based-on-player-input-c/2093173)

<div class="topic-metadata">

**Author:** [@kally\_space](https://forums.unrealengine.com/u/kally_space)\
**Replies:** 0\
**Last updated:** [October 28, 2024, 10:22pm UTC](https://forums.unrealengine.com/t/setting-image-visibility-based-on-player-input-c/2093173 "2024-10-28T22:22:54Z")

</div>

Hey! So, I have two classes I want to interact with each other for this; I’m using the outdated input system, I will admit, but this shouldn’t be a problem? Either way, I’ve created the binding in code (images below), an…

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

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