# C++

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

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

**Page:** 71

---

## [Snaptap / Custom Movement Implementation](https://forums.unrealengine.com/t/snaptap-custom-movement-implementation/2118430)

<div class="topic-metadata">

**Author:** [@Harkyie](https://forums.unrealengine.com/u/Harkyie)\
**Replies:** 0\
**Last updated:** [November 12, 2024, 6:12pm UTC](https://forums.unrealengine.com/t/snaptap-custom-movement-implementation/2118430 "2024-11-12T18:12:51Z")

</div>

I’m trying to implement some functionality to my game in UE5 that works like snaptap. Here’s the code i’m using as a base: void APlayerCharacter::Move(const FInputActionValue& Value) { FVector2D InputVector = Value.Ge…

---

## [Best way to temporarily Boost Chaos Vehicle Power](https://forums.unrealengine.com/t/best-way-to-temporarily-boost-chaos-vehicle-power/2037967)

<div class="topic-metadata">

**Author:** [@OOOllieML](https://forums.unrealengine.com/u/OOOllieML)\
**Replies:** 1\
**Last updated:** [November 12, 2024, 2:41pm UTC](https://forums.unrealengine.com/t/best-way-to-temporarily-boost-chaos-vehicle-power/2037967 "2024-11-12T14:41:34Z")

</div>

Hi, I am currently working on a feature to temporarily enable boost on a vehicle and wanted to know whats the best way to do this, is it simply to change the torque curve to be better?

---

## [webcam makes UE app crash](https://forums.unrealengine.com/t/webcam-makes-ue-app-crash/46097)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_8c5f3294](https://forums.unrealengine.com/u/anonymous_user_8c5f3294)\
**Replies:** 1\
**Last updated:** [November 12, 2024, 8:35am UTC](https://forums.unrealengine.com/t/webcam-makes-ue-app-crash/46097 "2024-11-12T08:35:26Z")

</div>

Hello, As you can see in this video: My app crashes when I activate the webcam This is an app I have created following the UE + OpenCV tutorial: Thank you for any hints

---

## [Different behaviour of FPreviewScene when play in "SelectedViewport"/"StandaloneGame"/...](https://forums.unrealengine.com/t/different-behaviour-of-fpreviewscene-when-play-in-selectedviewport-standalonegame/721057)

<div class="topic-metadata">

**Author:** [@DragonLiSoftware](https://forums.unrealengine.com/u/DragonLiSoftware)\
**Replies:** 2\
**Last updated:** [November 12, 2024, 8:01am UTC](https://forums.unrealengine.com/t/different-behaviour-of-fpreviewscene-when-play-in-selectedviewport-standalonegame/721057 "2024-11-12T08:01:56Z")

</div>

Hello, I am using FPreviewScene to create a preview world and render it to a widget. I am using UE4.27 and Genenrally I am following this serial videos (Create a Headshot Renderer 01 Setup the Preview Scene - YouTube). W…

---

## [LWC Type confusion](https://forums.unrealengine.com/t/lwc-type-confusion/2115706)

<div class="topic-metadata">

**Author:** [@Seto](https://forums.unrealengine.com/u/Seto)\
**Replies:** 1\
**Last updated:** [November 12, 2024, 7:46am UTC](https://forums.unrealengine.com/t/lwc-type-confusion/2115706 "2024-11-12T07:46:14Z")

</div>

According to the doc, it seems that the default type like FTranlationMatrix, FRotationMatrix is an alias of double variant. https://github.com/EpicGames/UnrealEngine/blob/40eea367040d50aadd9f030ed5909fc890c159c2/Engin…

---

## [How to get the player's position on the screen in PlayerCharacter::BeginPlay ?](https://forums.unrealengine.com/t/how-to-get-the-players-position-on-the-screen-in-playercharacter-beginplay/2116975)

<div class="topic-metadata">

**Author:** [@T0rgue](https://forums.unrealengine.com/u/T0rgue)\
**Replies:** 0\
**Last updated:** [November 12, 2024, 1:07am UTC](https://forums.unrealengine.com/t/how-to-get-the-players-position-on-the-screen-in-playercharacter-beginplay/2116975 "2024-11-12T01:07:13Z")

</div>

Hi, I am trying to get the player’s position on the viewport / screen in my player character’s BeginPlay function. But I am getting different results when running in viewport / new viewport window. First, here’s the cod…

---

## [TSharedPointer to Enum changes its pointed-to value by itself](https://forums.unrealengine.com/t/tsharedpointer-to-enum-changes-its-pointed-to-value-by-itself/2114879)

<div class="topic-metadata">

**Author:** [@Bluefire\_Ben](https://forums.unrealengine.com/u/Bluefire_Ben)\
**Replies:** 1\
**Last updated:** [November 11, 2024, 11:30pm UTC](https://forums.unrealengine.com/t/tsharedpointer-to-enum-changes-its-pointed-to-value-by-itself/2114879 "2024-11-11T23:30:21Z")

</div>

I am working on Slate Widget containing a Dropdown Menu to select between different Enum Values. Due to me not finding any native approach to display an Enum Selector (If anyone could provide an easy solution that would …

---

## [Dark and Darker crash because of unreal engiene.](https://forums.unrealengine.com/t/dark-and-darker-crash-because-of-unreal-engiene/2116575)

<div class="topic-metadata">

**Author:** [@MHD\_PLAYZZ](https://forums.unrealengine.com/u/MHD_PLAYZZ)\
**Replies:** 0\
**Last updated:** [November 11, 2024, 7:20pm UTC](https://forums.unrealengine.com/t/dark-and-darker-crash-because-of-unreal-engiene/2116575 "2024-11-11T19:20:08Z")

</div>

I know this is not the right forum but my dark and darker crashes and idk why. LoginId:897fb98941b328048b85cfa295dbafb6 EpicAccountId: GPU Crash dump Triggered DungeonCrawler DungeonCrawler DungeonCrawler DungeonC…

---

## [Coming from Godot: How to setup a centralized state machine for a Player Character](https://forums.unrealengine.com/t/coming-from-godot-how-to-setup-a-centralized-state-machine-for-a-player-character/2070368)

<div class="topic-metadata">

**Author:** [@ZenPyroo](https://forums.unrealengine.com/u/ZenPyroo)\
**Replies:** 23\
**Last updated:** [November 11, 2024, 6:09pm UTC](https://forums.unrealengine.com/t/coming-from-godot-how-to-setup-a-centralized-state-machine-for-a-player-character/2070368 "2024-11-11T18:09:55Z")

</div>

Hello Everyone! I am proud to say that I made the jump from Godot to Unreal Engine 5 (mainly from Godot’s current 3D limitations)! But I will say that there has been a harsh transition stage since Godot is an “Inheritanc…

---

## [Unwanted checkbox in conditional hiding of UPROPERTIES in the details panel](https://forums.unrealengine.com/t/unwanted-checkbox-in-conditional-hiding-of-uproperties-in-the-details-panel/1183251)

<div class="topic-metadata">

**Author:** [@YoshaVD](https://forums.unrealengine.com/u/YoshaVD)\
**Replies:** 4\
**Last updated:** [November 11, 2024, 5:09pm UTC](https://forums.unrealengine.com/t/unwanted-checkbox-in-conditional-hiding-of-uproperties-in-the-details-panel/1183251 "2024-11-11T17:09:56Z")

</div>

I have a class that encapsulates an array. The class itself offers the opportunity to overwrite certain variables of the elements in the array. When the overwrite bool is toggled on, I want to hide those variables in the…

---

## [Memory leak while reading UTextureRenderTarget2D pixel data](https://forums.unrealengine.com/t/memory-leak-while-reading-utexturerendertarget2d-pixel-data/2116141)

<div class="topic-metadata">

**Author:** [@e3delyptos](https://forums.unrealengine.com/u/e3delyptos)\
**Replies:** 0\
**Last updated:** [November 11, 2024, 3:07pm UTC](https://forums.unrealengine.com/t/memory-leak-while-reading-utexturerendertarget2d-pixel-data/2116141 "2024-11-11T15:07:30Z")

</div>

Hello everyone. In our project we are experiencing a severe memory leak. It seems to happen while reading the pixel data of a render target. We are doing this every frame after capturing the scene with a USceneCaptureCo…

---

## [\[Quick Tip\] Renaming C++ Classes without breaking your project](https://forums.unrealengine.com/t/quick-tip-renaming-c-classes-without-breaking-your-project/31178)

<div class="topic-metadata">

**Author:** [@ryanjon2040](https://forums.unrealengine.com/u/ryanjon2040)\
**Replies:** 17\
**Last updated:** [August 24, 2023, 6:07pm UTC](https://forums.unrealengine.com/t/quick-tip-renaming-c-classes-without-breaking-your-project/31178 "2023-08-24T18:07:11Z")

</div>

I just did a quick post on how to rename C++ classes without breaking your project. Hope you will find this information useful. :slight\_smile:

---

## [How to use multiple animation blueprints given an array of AnimInstances ?](https://forums.unrealengine.com/t/how-to-use-multiple-animation-blueprints-given-an-array-of-animinstances/2113989)

<div class="topic-metadata">

**Author:** [@mrm\_dev](https://forums.unrealengine.com/u/mrm_dev)\
**Replies:** 2\
**Last updated:** [November 11, 2024, 5:14am UTC](https://forums.unrealengine.com/t/how-to-use-multiple-animation-blueprints-given-an-array-of-animinstances/2113989 "2024-11-11T05:14:30Z")

</div>

My custom skeletal mesh component has a variable called “AnimClassArray” which takes an array of UAnimInstance / ABP Animation Blueprints: UPROPERTY(...) TArray\<TSubclassOf\<UAnimInstance\>\> AnimClassArray; I’m trying…

---

## [compile Lyra then show an error](https://forums.unrealengine.com/t/compile-lyra-then-show-an-error/2104502)

<div class="topic-metadata">

**Author:** [@XDGWHILE](https://forums.unrealengine.com/u/XDGWHILE)\
**Replies:** 2\
**Last updated:** [November 11, 2024, 6:40am UTC](https://forums.unrealengine.com/t/compile-lyra-then-show-an-error/2104502 "2024-11-11T06:40:39Z")

</div>

I created the Lyra project from Epic Games Launcher, and then generated the VS project file. After compilation with DebugGame Editor, it displayed Lyra\\Plugins\\GameFeatures\\ShooterTests\\Source\\ShooterTestsRuntime\\Priva…

---

## [Randome compiler error, when build project](https://forums.unrealengine.com/t/randome-compiler-error-when-build-project/2050365)

<div class="topic-metadata">

**Author:** [@JulioJerez](https://forums.unrealengine.com/u/JulioJerez)\
**Replies:** 4\
**Last updated:** [November 11, 2024, 6:09am UTC](https://forums.unrealengine.com/t/randome-compiler-error-when-build-project/2050365 "2024-11-11T06:09:30Z")

</div>

Thsi has being bothering me for some, time. I have search teh forum, and the internet, and all I have found is erroneous information. Spatially form those Google and Microsoft AI generate answer that could not be more…

---

## [Problems with Visual Studio when creating a project](https://forums.unrealengine.com/t/problems-with-visual-studio-when-creating-a-project/2102560)

<div class="topic-metadata">

**Author:** [@Pocquer](https://forums.unrealengine.com/u/Pocquer)\
**Replies:** 4\
**Last updated:** [November 11, 2024, 6:02am UTC](https://forums.unrealengine.com/t/problems-with-visual-studio-when-creating-a-project/2102560 "2024-11-11T06:02:49Z")

</div>

Every time I try to create a project this error appears, I’ve followed several different tutorials and I haven’t been able to make this error go away.

---

## [Disabling a specific log type](https://forums.unrealengine.com/t/disabling-a-specific-log-type/81063)

<div class="topic-metadata">

**Author:** [@MattG\_ZeroFill](https://forums.unrealengine.com/u/MattG_ZeroFill)\
**Replies:** 4\
**Last updated:** [November 10, 2024, 7:05pm UTC](https://forums.unrealengine.com/t/disabling-a-specific-log-type/81063 "2024-11-10T19:05:46Z")

</div>

I’m making heavy use of FInteractiveProcess to externally generate Json data, which is then passed back into the UE4 game via a delegate. This can be a giant wall of text and is creating some huge log files. Is there an…

---

## [Unreal class as input parameter in DataAssets](https://forums.unrealengine.com/t/unreal-class-as-input-parameter-in-dataassets/2114208)

<div class="topic-metadata">

**Author:** [@OMFGSAM](https://forums.unrealengine.com/u/OMFGSAM)\
**Replies:** 1\
**Last updated:** [November 10, 2024, 3:23pm UTC](https://forums.unrealengine.com/t/unreal-class-as-input-parameter-in-dataassets/2114208 "2024-11-10T15:23:56Z")

</div>

Hello all, I am trying to convert my blueprint DataAsset into C++. It has a function called DetermineShape and it accepts PaperTileMapComponent as input parameter. I am trying to create it in my C++ but I am having a ha…

---

## [Spawn BP Actor in C++ BlueprintLibrary?](https://forums.unrealengine.com/t/spawn-bp-actor-in-c-blueprintlibrary/2112319)

<div class="topic-metadata">

**Author:** [@Mactastik](https://forums.unrealengine.com/u/Mactastik)\
**Replies:** 6\
**Last updated:** [November 10, 2024, 4:21am UTC](https://forums.unrealengine.com/t/spawn-bp-actor-in-c-blueprintlibrary/2112319 "2024-11-10T04:21:02Z")

</div>

Ok. I’ve been going through tutorials and questions but I must be having a misunderstanding. For a project, one thing I want to try is to create a bunch of random location spheres that fly through the scene and I’m worki…

---

## [When MediaPlayer in UE plays video to the UI, SetRate freezes.](https://forums.unrealengine.com/t/when-mediaplayer-in-ue-plays-video-to-the-ui-setrate-freezes/1520086)

<div class="topic-metadata">

**Author:** [@coppx01](https://forums.unrealengine.com/u/coppx01)\
**Replies:** 1\
**Last updated:** [November 9, 2024, 8:19pm UTC](https://forums.unrealengine.com/t/when-mediaplayer-in-ue-plays-video-to-the-ui-setrate-freezes/1520086 "2024-11-09T20:19:28Z")

</div>

When the UMediaPlayer in UE4.27 plays a video to the UI, if I try to change the playback speed, the video will freeze. I use UMediaSoundComponent to output the sound. If I use SetRate(2) to change the playback speed, the…

---

## [How to mark delegate as deprecated?](https://forums.unrealengine.com/t/how-to-mark-delegate-as-deprecated/1186601)

<div class="topic-metadata">

**Author:** [@chillpert1](https://forums.unrealengine.com/u/chillpert1)\
**Replies:** 2\
**Last updated:** [November 9, 2024, 4:49pm UTC](https://forums.unrealengine.com/t/how-to-mark-delegate-as-deprecated/1186601 "2024-11-09T16:49:04Z")

</div>

Suppose I have a delegate declared as follows: DECLARE\_DYNAMIC\_MULTICAST\_DELEGATE\_OneParam(FAbilityActivateDelegate, UDEPRECATED\_Ability\*, Ability); As you can see I still need to pass an object of a deprecated class. …

---

## [Error on fortnite](https://forums.unrealengine.com/t/error-on-fortnite/2112328)

<div class="topic-metadata">

**Author:** [@imgoatedsignme](https://forums.unrealengine.com/u/imgoatedsignme)\
**Replies:** 0\
**Last updated:** [November 9, 2024, 5:31am UTC](https://forums.unrealengine.com/t/error-on-fortnite/2112328 "2024-11-09T05:31:49Z")

</div>

How do I fix a error esp dist001

---

## [How can i record players's actions and let another character repeat these actions by using c++?](https://forums.unrealengine.com/t/how-can-i-record-playerss-actions-and-let-another-character-repeat-these-actions-by-using-c/2079459)

<div class="topic-metadata">

**Author:** [@MuramasaRAIN](https://forums.unrealengine.com/u/MuramasaRAIN)\
**Replies:** 4\
**Last updated:** [November 8, 2024, 3:33pm UTC](https://forums.unrealengine.com/t/how-can-i-record-playerss-actions-and-let-another-character-repeat-these-actions-by-using-c/2079459 "2024-11-08T15:33:27Z")

</div>

First i want record my player’s actions ( I’m using the third person sample). And i want another character repeat these recorded actions, how can i do this.

---

## ["Move to" Behavior Tree Doesn't work](https://forums.unrealengine.com/t/move-to-behavior-tree-doesnt-work/2109442)

<div class="topic-metadata">

**Author:** [@Rav\_Maniti](https://forums.unrealengine.com/u/Rav_Maniti)\
**Replies:** 5\
**Last updated:** [November 8, 2024, 8:09am UTC](https://forums.unrealengine.com/t/move-to-behavior-tree-doesnt-work/2109442 "2024-11-08T08:09:01Z")

</div>

I’ve been stuck on my project for days because of this problem. The Monster is not moving at all. The player location works. It does not crash, and there’s a log about it. I don’t know what went wrong. Things I’ve…

---

## [UE4 Program error when set bCompileAgainstEngine = true](https://forums.unrealengine.com/t/ue4-program-error-when-set-bcompileagainstengine-true/444558)

<div class="topic-metadata">

**Author:** [@Joey\_Qiu](https://forums.unrealengine.com/u/Joey_Qiu)\
**Replies:** 10\
**Last updated:** [November 8, 2024, 5:38am UTC](https://forums.unrealengine.com/t/ue4-program-error-when-set-bcompileagainstengine-true/444558 "2024-11-08T05:38:35Z")

</div>

hello， I copy the BlankProgram code and rename it to CustomProgram, and change the following settings in .Target.cs file： bCompileAgainstEngine = true; bCompileAgainstCoreUObject = true; bCompileAgainstApplicationC…

---

## [How to stop case correction when converting from Struct to JSON in Packaged Build?](https://forums.unrealengine.com/t/how-to-stop-case-correction-when-converting-from-struct-to-json-in-packaged-build/450097)

<div class="topic-metadata">

**Author:** [@LastOfRamoria](https://forums.unrealengine.com/u/LastOfRamoria)\
**Replies:** 6\
**Last updated:** [November 7, 2024, 9:50pm UTC](https://forums.unrealengine.com/t/how-to-stop-case-correction-when-converting-from-struct-to-json-in-packaged-build/450097 "2024-11-07T21:50:36Z")

</div>

Have a custom struct I’m trying to convert to JSON. It successfully converts to JSON with the correct capitalization (matching the variable names of the struct) in the editor, but the capitalization on the variable names…

---

## [No generated header files in precompiled plugin](https://forums.unrealengine.com/t/no-generated-header-files-in-precompiled-plugin/2110251)

<div class="topic-metadata">

**Author:** [@BenWeno](https://forums.unrealengine.com/u/BenWeno)\
**Replies:** 0\
**Last updated:** [November 7, 2024, 8:54pm UTC](https://forums.unrealengine.com/t/no-generated-header-files-in-precompiled-plugin/2110251 "2024-11-07T20:54:39Z")

</div>

I’m trying to use code within a precompiled plugin module from a different module, but I get errors that the generated.h files don’t exist. Is there anyway to generate these for precompiled modules? If not, how can I use…

---

## [Deadlock in FGameplayMediaEncoder](https://forums.unrealengine.com/t/deadlock-in-fgameplaymediaencoder/2106412)

<div class="topic-metadata">

**Author:** [@RiotEpiphane](https://forums.unrealengine.com/u/RiotEpiphane)\
**Replies:** 1\
**Last updated:** [November 7, 2024, 6:00pm UTC](https://forums.unrealengine.com/t/deadlock-in-fgameplaymediaencoder/2106412 "2024-11-07T18:00:00Z")

</div>

Hi all, there appears to be a possibility of deadlock when restarting highlight recording, i.e. via FHighlightRecorder::Start specifically when there is not a dedicated audio thread. The two deadlocking threads are as fo…

---

## [Questions about setting up Perforce](https://forums.unrealengine.com/t/questions-about-setting-up-perforce/2109676)

<div class="topic-metadata">

**Author:** [@cglewis](https://forums.unrealengine.com/u/cglewis)\
**Replies:** 1\
**Last updated:** [November 7, 2024, 4:41pm UTC](https://forums.unrealengine.com/t/questions-about-setting-up-perforce/2109676 "2024-11-07T16:41:32Z")

</div>

Happy Thursday, everyone! I hope you’re all doing well. I have a few questions about setting up Perforce. I’m a small developer with a few people helping me out sporadically, and I’ve been wrestling with Perforce for a …

---

## [ActorComponent properties from C++ are not visible in inherited Blueprint Defaults.](https://forums.unrealengine.com/t/actorcomponent-properties-from-c-are-not-visible-in-inherited-blueprint-defaults/2109888)

<div class="topic-metadata">

**Author:** [@asatrain](https://forums.unrealengine.com/u/asatrain)\
**Replies:** 0\
**Last updated:** [November 7, 2024, 4:30pm UTC](https://forums.unrealengine.com/t/actorcomponent-properties-from-c-are-not-visible-in-inherited-blueprint-defaults/2109888 "2024-11-07T16:30:06Z")

</div>

Hello, can someone explain why the declared property in the C++ actor class is not displayed in the Details Panel of the inherited blueprint? This problem only occurs in the case of ActorComponents. I know that componen…

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

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