# C++

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

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

**Page:** 57

---

## [Raw Input config do nothing](https://forums.unrealengine.com/t/raw-input-config-do-nothing/468278)

<div class="topic-metadata">

**Author:** [@Galphimbl](https://forums.unrealengine.com/u/Galphimbl)\
**Replies:** 3\
**Last updated:** [January 27, 2025, 5:42pm UTC](https://forums.unrealengine.com/t/raw-input-config-do-nothing/468278 "2025-01-27T17:42:05Z")

</div>

I try to connect my ps4 controller to work in UE. find this awesome tutorial , but configs “inverted”, “offset”, “Gamepad Stick” do nothig. when i check/uncheck/change offset, i always have output for example with inpu…

---

## [Replication for GAS Target Data not working](https://forums.unrealengine.com/t/replication-for-gas-target-data-not-working/261261)

<div class="topic-metadata">

**Author:** [@ZQuan98](https://forums.unrealengine.com/u/ZQuan98)\
**Replies:** 6\
**Last updated:** [January 27, 2025, 4:33pm UTC](https://forums.unrealengine.com/t/replication-for-gas-target-data-not-working/261261 "2025-01-27T16:33:14Z")

</div>

Recently I started working on a personal project to flesh out some ideas, but I have hit some issue with multiplayer replication. I am using GAS (Gameplay Ability System), which is for the sake of multiple abilities acr…

---

## [Annoying bugs with UMG focus (with Is Focusable? on all widgets false)](https://forums.unrealengine.com/t/annoying-bugs-with-umg-focus-with-is-focusable-on-all-widgets-false/60280)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_73746a831](https://forums.unrealengine.com/u/anonymous_user_73746a831)\
**Replies:** 11\
**Last updated:** [January 27, 2025, 3:47pm UTC](https://forums.unrealengine.com/t/annoying-bugs-with-umg-focus-with-is-focusable-on-all-widgets-false/60280 "2025-01-27T15:47:20Z")

</div>

There are two annoying bugs I am having associated with UMG: Focusing TextEdit Input sometimes stops character movement When I press Enter, I focus my chat window TextEdit input control. If I am just moving with WASD,…

---

## [Editing base C++ classes?](https://forums.unrealengine.com/t/editing-base-c-classes/2305628)

<div class="topic-metadata">

**Author:** [@ScOrcher](https://forums.unrealengine.com/u/ScOrcher)\
**Replies:** 1\
**Last updated:** [January 27, 2025, 3:16pm UTC](https://forums.unrealengine.com/t/editing-base-c-classes/2305628 "2025-01-27T15:16:24Z")

</div>

How would I go about editing / extending functionality in base C++ classes (for example parent character class) then compiling that to use ingame for anything inheriting it? so far all documentation I stumbled upon only …

---

## [How and where to save id's of elements for Octree?](https://forums.unrealengine.com/t/how-and-where-to-save-ids-of-elements-for-octree/2305323)

<div class="topic-metadata">

**Author:** [@Zopich](https://forums.unrealengine.com/u/Zopich)\
**Replies:** 0\
**Last updated:** [January 27, 2025, 6:19am UTC](https://forums.unrealengine.com/t/how-and-where-to-save-ids-of-elements-for-octree/2305323 "2025-01-27T06:19:45Z")

</div>

Here The semantics (type traits) for Octree2 (second template parametr) element should define a SetElementId method, however I can’t call GetWorld from there to stick the id into my subsystem, from this it is uncle…

---

## [Add C++ files from Visual Studio](https://forums.unrealengine.com/t/add-c-files-from-visual-studio/371065)

<div class="topic-metadata">

**Author:** [@The\_Xismy](https://forums.unrealengine.com/u/The_Xismy)\
**Replies:** 5\
**Last updated:** [January 26, 2025, 10:17pm UTC](https://forums.unrealengine.com/t/add-c-files-from-visual-studio/371065 "2025-01-26T22:17:02Z")

</div>

I am trying to add a new C++ header to my game, but when I generate Visual Studio files it doesn’t generate the AnimNode\_weapon.generated.h file. The code of the file is: //AnimNode\_weapon.h #pragma once #i…

---

## [I can't set the Default Pawn Class](https://forums.unrealengine.com/t/i-cant-set-the-default-pawn-class/126855)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_dc2734c9](https://forums.unrealengine.com/u/anonymous_user_dc2734c9)\
**Replies:** 3\
**Last updated:** [January 26, 2025, 9:20pm UTC](https://forums.unrealengine.com/t/i-cant-set-the-default-pawn-class/126855 "2025-01-26T21:20:36Z")

</div>

In Project Settings -\> Project -\> Maps and Modes, I can’t set the Default Pawn Class to anything other than DefaultPawn. It is greyed out. Is there an edit button I need to click on somewhere?

---

## [Is it possible to render each particle to different TextureRenderTarget2D?](https://forums.unrealengine.com/t/is-it-possible-to-render-each-particle-to-different-texturerendertarget2d/2304770)

<div class="topic-metadata">

**Author:** [@Nechalon](https://forums.unrealengine.com/u/Nechalon)\
**Replies:** 1\
**Last updated:** [January 26, 2025, 9:10pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-render-each-particle-to-different-texturerendertarget2d/2304770 "2025-01-26T21:10:12Z")

</div>

So, I am working on creating floating damage numbers with a particle system. Each damage number would be written to the particle that was emitted. Since spawning actors and widgetComponents on each actor, is really ineff…

---

## [Line trace by multiple channels possible?](https://forums.unrealengine.com/t/line-trace-by-multiple-channels-possible/341610)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_c0687f281](https://forums.unrealengine.com/u/anonymous_user_c0687f281)\
**Replies:** 5\
**Last updated:** [January 25, 2025, 11:36pm UTC](https://forums.unrealengine.com/t/line-trace-by-multiple-channels-possible/341610 "2025-01-25T23:36:52Z")

</div>

Hi there, Is there any method to do a line trace by channel, but trace for more than one channel at once? In my case I would like to trace for the (custom) channels UIObject AND UsableObject. Any ideas? Thank you!

---

## [How to fix missing project modules?](https://forums.unrealengine.com/t/how-to-fix-missing-project-modules/133313)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_4d0eb8391](https://forums.unrealengine.com/u/anonymous_user_4d0eb8391)\
**Replies:** 17\
**Last updated:** [January 25, 2025, 11:35pm UTC](https://forums.unrealengine.com/t/how-to-fix-missing-project-modules/133313 "2025-01-25T23:35:33Z")

</div>

Recently I overexerted my PC a bit and had to close UE4 through the Task Manager since the shaders were for some reason eating all my ram and CPU, unlike with the previous version. Now every time I try to open my proj…

---

## [ACableActor undeclared](https://forums.unrealengine.com/t/acableactor-undeclared/290540)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_515625df](https://forums.unrealengine.com/u/anonymous_user_515625df)\
**Replies:** 5\
**Last updated:** [January 25, 2025, 11:10pm UTC](https://forums.unrealengine.com/t/acableactor-undeclared/290540 "2025-01-25T23:10:53Z")

</div>

Hello, I am trying to create cables with this code: ACableActor \*cable1 = TheWorld-\>SpawnActor\<ACableActor\>(Loc, Rot); UGameplayStatics::FinishSpawningActor(cable1, FTransform()); …

---

## [Having trouble getting instanced objects in viewport to execute blueprint code on updates.](https://forums.unrealengine.com/t/having-trouble-getting-instanced-objects-in-viewport-to-execute-blueprint-code-on-updates/2300069)

<div class="topic-metadata">

**Author:** [@andyvyking](https://forums.unrealengine.com/u/andyvyking)\
**Replies:** 4\
**Last updated:** [January 25, 2025, 6:32pm UTC](https://forums.unrealengine.com/t/having-trouble-getting-instanced-objects-in-viewport-to-execute-blueprint-code-on-updates/2300069 "2025-01-25T18:32:28Z")

</div>

I’m trying to get instanced objects in the editor viewport to execute Blueprint code when I modify their details. Specifically, I’m changing a Dynamic Material Instance at runtime, and would like the changes to appear in…

---

## [Can UE C++ use functions extended for Python scripts?](https://forums.unrealengine.com/t/can-ue-c-use-functions-extended-for-python-scripts/2273040)

<div class="topic-metadata">

**Author:** [@SimonForgot](https://forums.unrealengine.com/u/SimonForgot)\
**Replies:** 2\
**Last updated:** [January 25, 2025, 9:58am UTC](https://forums.unrealengine.com/t/can-ue-c-use-functions-extended-for-python-scripts/2273040 "2025-01-25T09:58:58Z")

</div>

I am writing a level sequence editor plugin using C++.And I found there are some useful functions in \\UnrealEngine\\Engine\\Plugins\\MovieScene\\SequencerScripting\\Source\\SequencerScripting\\Public\\ExtensionLibraries\\MovieSc…

---

## [Call C++ From UBlueprintFunctionLibrary](https://forums.unrealengine.com/t/call-c-from-ublueprintfunctionlibrary/134347)

<div class="topic-metadata">

**Author:** [@Naadril](https://forums.unrealengine.com/u/Naadril)\
**Replies:** 2\
**Last updated:** [January 24, 2025, 11:38pm UTC](https://forums.unrealengine.com/t/call-c-from-ublueprintfunctionlibrary/134347 "2025-01-24T23:38:35Z")

</div>

Hi, I use an UBlueprintFunctionLibrary to store my static functions about File Management. But I would like to call one of these functions from an antoher C++ class (also an UBlueprintFunctionLibrary). How can I archie…

---

## [How can I control the "Lock Actor Movement" in the scene outliner via C++?](https://forums.unrealengine.com/t/how-can-i-control-the-lock-actor-movement-in-the-scene-outliner-via-c/2300339)

<div class="topic-metadata">

**Author:** [@Kotaru\_1](https://forums.unrealengine.com/u/Kotaru_1)\
**Replies:** 2\
**Last updated:** [January 24, 2025, 11:02pm UTC](https://forums.unrealengine.com/t/how-can-i-control-the-lock-actor-movement-in-the-scene-outliner-via-c/2300339 "2025-01-24T23:02:26Z")

</div>

I’m trying to make a tool in the editor which requires locking some actors’ transforms, however doing this one by one is tedious so I would like to be able to do so via a script. (talking about this)

---

## [What is RF\_Transactional? in SetFlags](https://forums.unrealengine.com/t/what-is-rf_transactional-in-setflags/48241)

<div class="topic-metadata">

**Author:** [@zoombapup](https://forums.unrealengine.com/u/zoombapup)\
**Replies:** 5\
**Last updated:** [January 24, 2025, 2:54pm UTC](https://forums.unrealengine.com/t/what-is-rf_transactional-in-setflags/48241 "2025-01-24T14:54:07Z")

</div>

Hey all. I’m getting a crash when an object gets garbage collected. The object is set to RF\_Transactional in its flags. But I can’t find any salient documentation for what that flag actually means. For the record, this…

---

## [How to format convert int32 to FString?](https://forums.unrealengine.com/t/how-to-format-convert-int32-to-fstring/777075)

<div class="topic-metadata">

**Author:** [@TDK\_Arkham](https://forums.unrealengine.com/u/TDK_Arkham)\
**Replies:** 3\
**Last updated:** [January 24, 2025, 12:54pm UTC](https://forums.unrealengine.com/t/how-to-format-convert-int32-to-fstring/777075 "2025-01-24T12:54:42Z")

</div>

Like the title, say if I have a number “3”, the convert result should be “003”, if I have a number “33”, the convert result should be “033”, so on and so forth. Right now I have a simple implementation like below FText…

---

## [Setting Skeletal Mesh through C++](https://forums.unrealengine.com/t/setting-skeletal-mesh-through-c/31585)

<div class="topic-metadata">

**Author:** [@cridia](https://forums.unrealengine.com/u/cridia)\
**Replies:** 6\
**Last updated:** [January 24, 2025, 11:24am UTC](https://forums.unrealengine.com/t/setting-skeletal-mesh-through-c/31585 "2025-01-24T11:24:48Z")

</div>

Partly for practice and partly because I feel that for the current character I am coding it would be beneficial to have it set through code rather than through blueprint, I am trying to set the skeletalmesh and other par…

---

## [UE4 for non-realtime simulation?](https://forums.unrealengine.com/t/ue4-for-non-realtime-simulation/36325)

<div class="topic-metadata">

**Author:** [@dgsharp](https://forums.unrealengine.com/u/dgsharp)\
**Replies:** 3\
**Last updated:** [January 24, 2025, 9:53am UTC](https://forums.unrealengine.com/t/ue4-for-non-realtime-simulation/36325 "2025-01-24T09:53:37Z")

</div>

Sorry if this isn’t the right forum, I had trouble deciding where to ask it. UE4 has a lot of things I like but I’m trying to determine which of my needs it can meet. I’m wondering if there is a way to force UE4 to run …

---

## [Box trace not working when shape's Z value is above 95 units](https://forums.unrealengine.com/t/box-trace-not-working-when-shapes-z-value-is-above-95-units/2300144)

<div class="topic-metadata">

**Author:** [@CassetteFuture](https://forums.unrealengine.com/u/CassetteFuture)\
**Replies:** 0\
**Last updated:** [January 23, 2025, 11:10pm UTC](https://forums.unrealengine.com/t/box-trace-not-working-when-shapes-z-value-is-above-95-units/2300144 "2025-01-23T23:10:24Z")

</div>

Not sure if this is a bug, my own code, or me just not understanding how box traces work, but when I try to do a box trace (I’m trying to do a very tall one) it’s not registering any hits when the Z value is greater than…

---

## [Questions regarding primitive movement and Engine/Physx collision](https://forums.unrealengine.com/t/questions-regarding-primitive-movement-and-engine-physx-collision/153283)

<div class="topic-metadata">

**Author:** [@StaticJPL](https://forums.unrealengine.com/u/StaticJPL)\
**Replies:** 0\
**Last updated:** [November 7, 2020, 4:20am UTC](https://forums.unrealengine.com/t/questions-regarding-primitive-movement-and-engine-physx-collision/153283 "2020-11-07T04:20:52Z")

</div>

Hello all, I have a question regarding how collision sweeps are handled for a moving root primitive component with Physx Sim on versus Physx Sim Off with child primitive colliders moving with the root component. Backgr…

---

## [Where do Character sweeps happen in code?](https://forums.unrealengine.com/t/where-do-character-sweeps-happen-in-code/2299867)

<div class="topic-metadata">

**Author:** [@chuck3201](https://forums.unrealengine.com/u/chuck3201)\
**Replies:** 2\
**Last updated:** [January 23, 2025, 9:10pm UTC](https://forums.unrealengine.com/t/where-do-character-sweeps-happen-in-code/2299867 "2025-01-23T21:10:48Z")

</div>

I would like to know where to find the sweep logic done for the character’s root capsule component in the engine code. USceneComponent::MoveComponentImpl() takes in a param bSweep and does not appear to use it. I’m using…

---

## [Bug or Feature? Heightmap values do not match imported values on last index and SetHeightMap not setting values correclty](https://forums.unrealengine.com/t/bug-or-feature-heightmap-values-do-not-match-imported-values-on-last-index-and-setheightmap-not-setting-values-correclty/2299875)

<div class="topic-metadata">

**Author:** [@BuTi67](https://forums.unrealengine.com/u/BuTi67)\
**Replies:** 0\
**Last updated:** [January 23, 2025, 8:03pm UTC](https://forums.unrealengine.com/t/bug-or-feature-heightmap-values-do-not-match-imported-values-on-last-index-and-setheightmap-not-setting-values-correclty/2299875 "2025-01-23T20:03:29Z")

</div>

Not sure if bug or feature so, here are two questions: After importing a landscape with 2033x2033 (from PNG), the landscape correctly shows in the outliner the correct number of verts. When calling ALandscape-\>GetLand…

---

## [why FVector's default constructor function did not set X,Y,Z to zero. it may cause uncentain problem](https://forums.unrealengine.com/t/why-fvectors-default-constructor-function-did-not-set-x-y-z-to-zero-it-may-cause-uncentain-problem/2265589)

<div class="topic-metadata">

**Author:** [@xjawaker](https://forums.unrealengine.com/u/xjawaker)\
**Replies:** 6\
**Last updated:** [January 22, 2025, 9:51pm UTC](https://forums.unrealengine.com/t/why-fvectors-default-constructor-function-did-not-set-x-y-z-to-zero-it-may-cause-uncentain-problem/2265589 "2025-01-22T21:51:27Z")

</div>

why FVector’s default constructor function did not set X,Y,Z to zero. it may cause uncentain problem 。

---

## [X API Streaming Chat Integration in UE5](https://forums.unrealengine.com/t/x-api-streaming-chat-integration-in-ue5/2297849)

<div class="topic-metadata">

**Author:** [@tomhalpin8](https://forums.unrealengine.com/u/tomhalpin8)\
**Replies:** 0\
**Last updated:** [January 22, 2025, 6:35pm UTC](https://forums.unrealengine.com/t/x-api-streaming-chat-integration-in-ue5/2297849 "2025-01-22T18:35:30Z")

</div>

Is there an X API Plugin available anywhere? One where Unreal can get commands or get comments from a Live Stream Chat.

---

## [UE Cpp documentation is very limited](https://forums.unrealengine.com/t/ue-cpp-documentation-is-very-limited/777830)

<div class="topic-metadata">

**Author:** [@fiddy](https://forums.unrealengine.com/u/fiddy)\
**Replies:** 9\
**Last updated:** [January 22, 2025, 4:20pm UTC](https://forums.unrealengine.com/t/ue-cpp-documentation-is-very-limited/777830 "2025-01-22T16:20:54Z")

</div>

Hello all, I have gone through a few tutorials on UE4/5 with YT/Udemy/GameDevTV. I want to improve my UE C++ skills, but I’m finding the documentation very limited. Much more limited than if you were to look up a built …

---

## [OnComponentBeginOverlap AddDynamic not working](https://forums.unrealengine.com/t/oncomponentbeginoverlap-adddynamic-not-working/2297276)

<div class="topic-metadata">

**Author:** [@miguline](https://forums.unrealengine.com/u/miguline)\
**Replies:** 4\
**Last updated:** [January 22, 2025, 3:14pm UTC](https://forums.unrealengine.com/t/oncomponentbeginoverlap-adddynamic-not-working/2297276 "2025-01-22T15:14:10Z")

</div>

So, the same code is working on some assets, collisions are working, cos in blueprint the overlap works, te code on the cpp is: UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = “Box Collision”) BoxComponentToGrab…

---

## [Steam achievements in C++?](https://forums.unrealengine.com/t/steam-achievements-in-c/2297174)

<div class="topic-metadata">

**Author:** [@MatthewSoedesco](https://forums.unrealengine.com/u/MatthewSoedesco)\
**Replies:** 1\
**Last updated:** [January 22, 2025, 1:54pm UTC](https://forums.unrealengine.com/t/steam-achievements-in-c/2297174 "2025-01-22T13:54:23Z")

</div>

Does anyone have a good tutorial or explanation for how to implement Steam Achievements into your game with C++. I see some Blueprint ones online but i never see one done in c++

---

## [Add some randomness to the velocity when a ball bounces using UProjectiile Movement Component](https://forums.unrealengine.com/t/add-some-randomness-to-the-velocity-when-a-ball-bounces-using-uprojectiile-movement-component/248089)

<div class="topic-metadata">

**Author:** [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Replies:** 9\
**Last updated:** [January 22, 2025, 3:37am UTC](https://forums.unrealengine.com/t/add-some-randomness-to-the-velocity-when-a-ball-bounces-using-uprojectiile-movement-component/248089 "2025-01-22T03:37:11Z")

</div>

I’m developing a clone of Arkanoid and I’m using UProjectile Movement Component to move the ball. When the ball hit something it always bounces to the same direction. I’ve been checking UProjectileMovementComponent::Com…

---

## [\[Feature Request\] Https request failed, libcurl error: 60 (SSL peer certificate or SSH remote key was not OK)](https://forums.unrealengine.com/t/feature-request-https-request-failed-libcurl-error-60-ssl-peer-certificate-or-ssh-remote-key-was-not-ok/2289233)

<div class="topic-metadata">

**Author:** [@TheSubZer0](https://forums.unrealengine.com/u/TheSubZer0)\
**Replies:** 5\
**Last updated:** [January 21, 2025, 11:10pm UTC](https://forums.unrealengine.com/t/feature-request-https-request-failed-libcurl-error-60-ssl-peer-certificate-or-ssh-remote-key-was-not-ok/2289233 "2025-01-21T23:10:19Z")

</div>

HTTP request: How to bypass bad certificate blocking in the request? LogHttp: Warning: 000008B851392300: request failed, libcurl error: 60 (SSL peer certificate or SSH remote key was not OK) \[2025.01.19-14.01.23:359\]\[5…

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

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