# C++

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

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

**Page:** 92

---

## [Data race detected when try to Destroy ChaosCacheManager at Runtime](https://forums.unrealengine.com/t/data-race-detected-when-try-to-destroy-chaoscachemanager-at-runtime/1955499)

<div class="topic-metadata">

**Author:** [@TeryKnop](https://forums.unrealengine.com/u/TeryKnop)\
**Replies:** 2\
**Last updated:** [July 31, 2024, 6:35pm UTC](https://forums.unrealengine.com/t/data-race-detected-when-try-to-destroy-chaoscachemanager-at-runtime/1955499 "2024-07-31T18:35:38Z")

</div>

Hello folks, I needed to dynamicly create and destroy ChaosCacheActor’s in my game. I’ve implemented it and it’s working good. But from time to time I’m getting race detected error crache while destroying ChaosCacheMana…

---

## [public dependency modules with code sharing of a BP function library](https://forums.unrealengine.com/t/public-dependency-modules-with-code-sharing-of-a-bp-function-library/1957055)

<div class="topic-metadata">

**Author:** [@OrbitalZones](https://forums.unrealengine.com/u/OrbitalZones)\
**Replies:** 0\
**Last updated:** [July 31, 2024, 4:52pm UTC](https://forums.unrealengine.com/t/public-dependency-modules-with-code-sharing-of-a-bp-function-library/1957055 "2024-07-31T16:52:33Z")

</div>

I am working on a Blueprint function library in C++ that require a bunch of public dependency modules to make it work. Someday I’d like to share my library with the world, for fame and glory :slight\_smile: Now I’m wonde…

---

## [Should I use global static FString variables?](https://forums.unrealengine.com/t/should-i-use-global-static-fstring-variables/1954388)

<div class="topic-metadata">

**Author:** [@AdrienBrunelat](https://forums.unrealengine.com/u/AdrienBrunelat)\
**Replies:** 11\
**Last updated:** [July 31, 2024, 9:46am UTC](https://forums.unrealengine.com/t/should-i-use-global-static-fstring-variables/1954388 "2024-07-31T09:46:30Z")

</div>

Hello, In the project I’m working on, devs use global const FString variables like so: In the MyClass.h file: namespace FABCMyClassConstants { extern const FString HttpPostVerb; extern const FString ContentTypeHeade…

---

## [procedural mesh component UV mapping issue](https://forums.unrealengine.com/t/procedural-mesh-component-uv-mapping-issue/1954527)

<div class="topic-metadata">

**Author:** [@OrbitalZones](https://forums.unrealengine.com/u/OrbitalZones)\
**Replies:** 1\
**Last updated:** [July 31, 2024, 6:01am UTC](https://forums.unrealengine.com/t/procedural-mesh-component-uv-mapping-issue/1954527 "2024-07-31T06:01:09Z")

</div>

I created a tube by a procedural mesh component. The tube consists of 40 rings with 12 ring segments. Guess I am wrong here but I assumed that I just have to add the number of vertices for each ring and segment in the or…

---

## [TArrayView and FString](https://forums.unrealengine.com/t/tarrayview-and-fstring/1954109)

<div class="topic-metadata">

**Author:** [@lehuan5062](https://forums.unrealengine.com/u/lehuan5062)\
**Replies:** 2\
**Last updated:** [July 31, 2024, 4:58am UTC](https://forums.unrealengine.com/t/tarrayview-and-fstring/1954109 "2024-07-31T04:58:35Z")

</div>

Hello, Does anyone know how to properly use FString with TArrayView? If I try use an FString from this TArrayView static const TArrayView\<const FString\> heights { "srt", "med", "tal" }; I always get weird a value.…

---

## [How to delete class?](https://forums.unrealengine.com/t/how-to-delete-class/88521)

<div class="topic-metadata">

**Author:** [@R.Achmann](https://forums.unrealengine.com/u/R.Achmann)\
**Replies:** 9\
**Last updated:** [June 3, 2023, 1:13am UTC](https://forums.unrealengine.com/t/how-to-delete-class/88521 "2023-06-03T01:13:21Z")

</div>

UE 4.15.0 Wow, I feel dumb… I have just added a class derived from gamemodebase for my gamemode. Oops! UE4 already created one when I made the project, so I want to delete it… delete it… hmmm How do I delete it? It wil…

---

## [Party Beacon, Lobby Beacons, Oh My](https://forums.unrealengine.com/t/party-beacon-lobby-beacons-oh-my/75138)

<div class="topic-metadata">

**Author:** [@Whinis](https://forums.unrealengine.com/u/Whinis)\
**Replies:** 4\
**Last updated:** [July 31, 2024, 2:39am UTC](https://forums.unrealengine.com/t/party-beacon-lobby-beacons-oh-my/75138 "2024-07-31T02:39:26Z")

</div>

So I have spent the better part of a week now attempting to dissect the best way to make a rocket league/borderlands party system and came across lobby beacons first and then party beacons. As far as I can tell by search…

---

## [SHADER CAN'T BUILD PROJECT (COMPILER WORKER ERROR)](https://forums.unrealengine.com/t/shader-cant-build-project-compiler-worker-error/1952489)

<div class="topic-metadata">

**Author:** [@ArkCreator](https://forums.unrealengine.com/u/ArkCreator)\
**Replies:** 1\
**Last updated:** [July 31, 2024, 2:27am UTC](https://forums.unrealengine.com/t/shader-cant-build-project-compiler-worker-error/1952489 "2024-07-31T02:27:10Z")

</div>

|Error|MSB3073|The command D:\\UE5 Versions\\UE5.3 Source\\Engine\\Build\\BatchFiles\\Build.bat -Target=EnforcerBlitzEditor Win64 Development -Project=\\D:\\Unreal Projects\\EnforcerBlitz - Copy\\EnforcerBlitz.uproject\\ -Target=Sh…

---

## [How can i achieve this gun movement?](https://forums.unrealengine.com/t/how-can-i-achieve-this-gun-movement/1954270)

<div class="topic-metadata">

**Author:** [@danikcara](https://forums.unrealengine.com/u/danikcara)\
**Replies:** 1\
**Last updated:** [July 31, 2024, 2:20am UTC](https://forums.unrealengine.com/t/how-can-i-achieve-this-gun-movement/1954270 "2024-07-31T02:20:16Z")

</div>

How can i achieve this gun movement like Camera stand still a bit while moving the arm to the right or left. Can someone help me with that? Like in the video.

---

## [Is It Possible To Jump From One Step In Behavior Tree To Another&](https://forums.unrealengine.com/t/is-it-possible-to-jump-from-one-step-in-behavior-tree-to-another/1956167)

<div class="topic-metadata">

**Author:** [@sa1lim.RAM](https://forums.unrealengine.com/u/sa1lim.RAM)\
**Replies:** 0\
**Last updated:** [July 31, 2024, 12:27am UTC](https://forums.unrealengine.com/t/is-it-possible-to-jump-from-one-step-in-behavior-tree-to-another/1956167 "2024-07-31T00:27:01Z")

</div>

I wanna jump from a task back to the task b. isIt possible and how can i do this&

---

## [Nested Components ?](https://forums.unrealengine.com/t/nested-components/1955643)

<div class="topic-metadata">

**Author:** [@whilesocold](https://forums.unrealengine.com/u/whilesocold)\
**Replies:** 14\
**Last updated:** [July 30, 2024, 9:19pm UTC](https://forums.unrealengine.com/t/nested-components/1955643 "2024-07-30T21:19:03Z")

</div>

Hi guys, please help me understand nested components. I want to create a character (VRCharacter) with two components created in C++ for left and right hand, of the same type, let it be VRMotionControllerComponent. In t…

---

## [Apply Post process material directly to Render Target](https://forums.unrealengine.com/t/apply-post-process-material-directly-to-render-target/1955615)

<div class="topic-metadata">

**Author:** [@dubois0123](https://forums.unrealengine.com/u/dubois0123)\
**Replies:** 0\
**Last updated:** [July 30, 2024, 1:34pm UTC](https://forums.unrealengine.com/t/apply-post-process-material-directly-to-render-target/1955615 "2024-07-30T13:34:48Z")

</div>

I’m working on creating a segmentation dataset in Unreal Engine using Scene Capture Components and Render Targets. While I’ve successfully implemented the basic setup, I’m encountering a misalignment problem between the …

---

## [Modify Chaos Vehicle Component](https://forums.unrealengine.com/t/modify-chaos-vehicle-component/1954905)

<div class="topic-metadata">

**Author:** [@Grot13](https://forums.unrealengine.com/u/Grot13)\
**Replies:** 9\
**Last updated:** [July 30, 2024, 1:25pm UTC](https://forums.unrealengine.com/t/modify-chaos-vehicle-component/1954905 "2024-07-30T13:25:26Z")

</div>

Hi, I’m using Chaos vehicle to create a motorbike and I would like to make some modifications to suit my needs. First I have tried to access some variables in blueprint but almost nothing is exposed. For example the c…

---

## ["Generate Visual Studio Project Files" didn't show up](https://forums.unrealengine.com/t/generate-visual-studio-project-files-didnt-show-up/363653)

<div class="topic-metadata">

**Author:** [@JaydenJZ](https://forums.unrealengine.com/u/JaydenJZ)\
**Replies:** 3\
**Last updated:** [July 30, 2024, 8:55am UTC](https://forums.unrealengine.com/t/generate-visual-studio-project-files-didnt-show-up/363653 "2024-07-30T08:55:31Z")

</div>

Hi, All I’ve read some posts in the forum about the issue “Generate visual studio project files” option didn’t show up in the right click menu, however, it seems like some of the solutions are not up to date. For insta…

---

## [Generate Visual Studio Project option missing](https://forums.unrealengine.com/t/generate-visual-studio-project-option-missing/366072)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_87fc334a](https://forums.unrealengine.com/u/anonymous_user_87fc334a)\
**Replies:** 6\
**Last updated:** [July 30, 2024, 8:54am UTC](https://forums.unrealengine.com/t/generate-visual-studio-project-option-missing/366072 "2024-07-30T08:54:17Z")

</div>

After installing Visual Studio 2015 with Update 3 and Unreal 4.12.5 on a new computer with Windows 10, I’m unable to see the Generate Visual Studio Project option when right clicking on a .uproject file. I’ve tried crea…

---

## [C++ UTexture2D get null from GetPlatformData() after texture is initialized.](https://forums.unrealengine.com/t/c-utexture2d-get-null-from-getplatformdata-after-texture-is-initialized/1941994)

<div class="topic-metadata">

**Author:** [@DT1990PRO](https://forums.unrealengine.com/u/DT1990PRO)\
**Replies:** 2\
**Last updated:** [July 30, 2024, 7:53am UTC](https://forums.unrealengine.com/t/c-utexture2d-get-null-from-getplatformdata-after-texture-is-initialized/1941994 "2024-07-30T07:53:57Z")

</div>

Hi, I think I should address my question through C++ and BP, and the result. It will be helpful to understand the issue. I am using LYRA template and UE5.3.2 Thanks for your patience to read. Following is my code to c…

---

## [MemoryLeak detection does not work in UE 5.4.3](https://forums.unrealengine.com/t/memoryleak-detection-does-not-work-in-ue-5-4-3/1954641)

<div class="topic-metadata">

**Author:** [@dlorre](https://forums.unrealengine.com/u/dlorre)\
**Replies:** 0\
**Last updated:** [July 29, 2024, 6:05pm UTC](https://forums.unrealengine.com/t/memoryleak-detection-does-not-work-in-ue-5-4-3/1954641 "2024-07-29T18:05:01Z")

</div>

So, I have an UObject that I use in a heavy loop (over 1M iterations), this UObject has a pointer to a struct, lets call it FMyData \*myPointer. Every iteration this pointer is allocated with new. And I noticed that UE wa…

---

## [How get button as variable?](https://forums.unrealengine.com/t/how-get-button-as-variable/1952509)

<div class="topic-metadata">

**Author:** [@Inklipse08090](https://forums.unrealengine.com/u/Inklipse08090)\
**Replies:** 1\
**Last updated:** [July 29, 2024, 2:46am UTC](https://forums.unrealengine.com/t/how-get-button-as-variable/1952509 "2024-07-29T02:46:04Z")

</div>

I created a button and marked as a variable I created a button variable but this button is not passed to it How do I get this button as a variable?

---

## [Creating a new material custom output node](https://forums.unrealengine.com/t/creating-a-new-material-custom-output-node/1953805)

<div class="topic-metadata">

**Author:** [@Huiro03](https://forums.unrealengine.com/u/Huiro03)\
**Replies:** 0\
**Last updated:** [July 29, 2024, 1:24am UTC](https://forums.unrealengine.com/t/creating-a-new-material-custom-output-node/1953805 "2024-07-29T01:24:56Z")

</div>

Hello friends, I’m using this tutorial to create a Custom Toon Shading Model. But I failed to create a new material custom output node. I created the “MaterialExpressionCelshadingCustomOutput.h” file in VS, but is hav…

---

## [Motion Warping component in C++ !!!](https://forums.unrealengine.com/t/motion-warping-component-in-c/779126)

<div class="topic-metadata">

**Author:** [@UEMemo](https://forums.unrealengine.com/u/UEMemo)\
**Replies:** 7\
**Last updated:** [July 28, 2024, 3:00pm UTC](https://forums.unrealengine.com/t/motion-warping-component-in-c/779126 "2024-07-28T15:00:09Z")

</div>

I do not know how to make a Motion Warping component in C++ . If anyone knows, please let me know.

---

## [C++ replication using condition COND\_OwnerOnly not working cause of ownership issues](https://forums.unrealengine.com/t/c-replication-using-condition-cond-owneronly-not-working-cause-of-ownership-issues/1951412)

<div class="topic-metadata">

**Author:** [@kcinkcinkcinnick](https://forums.unrealengine.com/u/kcinkcinkcinnick)\
**Replies:** 10\
**Last updated:** [July 28, 2024, 1:23pm UTC](https://forums.unrealengine.com/t/c-replication-using-condition-cond-owneronly-not-working-cause-of-ownership-issues/1951412 "2024-07-28T13:23:30Z")

</div>

Hi all, I’m looking into working with a DOREPLIFETIME\_CONDITION DOREPLIFETIME\_CONDITION(APickup, bShowPickupName, COND\_OwnerOnly); I seem to have something wrong with ownership, since the OnRep of bShowPickupName is n…

---

## [Bitflags enum and K2Node pin](https://forums.unrealengine.com/t/bitflags-enum-and-k2node-pin/1952736)

<div class="topic-metadata">

**Author:** [@Laurent\_Menten](https://forums.unrealengine.com/u/Laurent_Menten)\
**Replies:** 2\
**Last updated:** [July 28, 2024, 2:15am UTC](https://forums.unrealengine.com/t/bitflags-enum-and-k2node-pin/1952736 "2024-07-28T02:15:49Z")

</div>

Hello everyone, I am currently developing custom K2 nodes and I need to have an input pin of type enum with the Bitflags meta. The PinCategory is set to PC\_Byte The PinSubCategoryObject is set to point to the StaticEn…

---

## [USceneCaptureComponent2D does not capture the same result as BackBuffer](https://forums.unrealengine.com/t/uscenecapturecomponent2d-does-not-capture-the-same-result-as-backbuffer/1952876)

<div class="topic-metadata">

**Author:** [@IAmNoBody2we](https://forums.unrealengine.com/u/IAmNoBody2we)\
**Replies:** 0\
**Last updated:** [July 28, 2024, 1:10am UTC](https://forums.unrealengine.com/t/uscenecapturecomponent2d-does-not-capture-the-same-result-as-backbuffer/1952876 "2024-07-28T01:10:16Z")

</div>

I have a USceneCaptureComponent2D \*SceneCapture capturing the scene. The result is darker than the BackBuffer. I tried the following code to keep the PostProcessSettings the same as SceneView-\>FinalPostProcessSettings,…

---

## [SQLite and Android in 5.1](https://forums.unrealengine.com/t/sqlite-and-android-in-5-1/1153067)

<div class="topic-metadata">

**Author:** [@DasUberbadger](https://forums.unrealengine.com/u/DasUberbadger)\
**Replies:** 2\
**Last updated:** [July 11, 2024, 8:14am UTC](https://forums.unrealengine.com/t/sqlite-and-android-in-5-1/1153067 "2024-07-11T08:14:59Z")

</div>

Hi, I’ve been trying for a while now to use an SQL database on Android (with 5.1) to cache downloaded data. Everything about my DB setup works perfectly on Win64, all creation, opening, writing, reading, queries, work pe…

---

## [how to make jumping and falling speeds different](https://forums.unrealengine.com/t/how-to-make-jumping-and-falling-speeds-different/1951419)

<div class="topic-metadata">

**Author:** [@TheoRat3](https://forums.unrealengine.com/u/TheoRat3)\
**Replies:** 2\
**Last updated:** [July 27, 2024, 11:22pm UTC](https://forums.unrealengine.com/t/how-to-make-jumping-and-falling-speeds-different/1951419 "2024-07-27T23:22:14Z")

</div>

I’m trying to create a jump for my character where they reach the apex of their jump quickly, but they fall slower

---

## [How does the Show Code Plugin work in editor? O.o](https://forums.unrealengine.com/t/how-does-the-show-code-plugin-work-in-editor-o-o/6587)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_4b1dc469](https://forums.unrealengine.com/u/anonymous_user_4b1dc469)\
**Replies:** 3\
**Last updated:** [July 27, 2024, 7:49pm UTC](https://forums.unrealengine.com/t/how-does-the-show-code-plugin-work-in-editor-o-o/6587 "2024-07-27T19:49:07Z")

</div>

hey guys, Saw the show code plugin in UE4 and was wondering how this actually works, because nothing seems to change when i check this box. any clues? Thanks

---

## [\[HELP\] I can't reopen my project anymore after creating a new C++ class.](https://forums.unrealengine.com/t/help-i-cant-reopen-my-project-anymore-after-creating-a-new-c-class/1952214)

<div class="topic-metadata">

**Author:** [@TDS-Androxus](https://forums.unrealengine.com/u/TDS-Androxus)\
**Replies:** 1\
**Last updated:** [July 27, 2024, 2:57pm UTC](https://forums.unrealengine.com/t/help-i-cant-reopen-my-project-anymore-after-creating-a-new-c-class/1952214 "2024-07-27T14:57:51Z")

</div>

Hello, I encountered a problem with my project. I tried to creat a new C++ class, wrote a little function into it and i tried to compile the code. VS tells me I have the following problems: "#include errors detected. Co…

---

## [Does Crowd avoidance work with Pawn?](https://forums.unrealengine.com/t/does-crowd-avoidance-work-with-pawn/1573191)

<div class="topic-metadata">

**Author:** [@cruzjunior](https://forums.unrealengine.com/u/cruzjunior)\
**Replies:** 1\
**Last updated:** [July 27, 2024, 11:24am UTC](https://forums.unrealengine.com/t/does-crowd-avoidance-work-with-pawn/1573191 "2024-07-27T11:24:58Z")

</div>

According to the documentation apparently it should work with any pawn but here is my problem: I am not using the character movement component, I made my own movement component that derives from pawn movement component.…

---

## [I get an error with building my first c++ gamemode](https://forums.unrealengine.com/t/i-get-an-error-with-building-my-first-c-gamemode/1951337)

<div class="topic-metadata">

**Author:** [@IKrazedKat](https://forums.unrealengine.com/u/IKrazedKat)\
**Replies:** 3\
**Last updated:** [July 27, 2024, 9:39am UTC](https://forums.unrealengine.com/t/i-get-an-error-with-building-my-first-c-gamemode/1951337 "2024-07-27T09:39:20Z")

</div>

CONSOLE: C:\\Program Files\\Epic Games\\UE\_5.3\\Engine\\Build\\BatchFiles\\Build.bat BREditor Win64 Development -Project="C:\\Users\\Maxi\\Documents\\Unreal Projects\\BR\\BR.uproject" -WaitMutex 0\>Using bundled DotNet SDK version…

---

## [Restarting or Reinitializing Engine Subsystems](https://forums.unrealengine.com/t/restarting-or-reinitializing-engine-subsystems/1924452)

<div class="topic-metadata">

**Author:** [@PotatoL0rd](https://forums.unrealengine.com/u/PotatoL0rd)\
**Replies:** 2\
**Last updated:** [July 27, 2024, 12:28am UTC](https://forums.unrealengine.com/t/restarting-or-reinitializing-engine-subsystems/1924452 "2024-07-27T00:28:09Z")

</div>

Hi folx, Is it possible to restart or reinitialize engine subsystems programmatically and without having to restart the editor? I want to create an editor button that resets and reinitializes all of my subsystems.

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

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