# C++

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

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

**Page:** 23

---

## [Template mismatch during attachment. Attaching instanced component to template component](https://forums.unrealengine.com/t/template-mismatch-during-attachment-attaching-instanced-component-to-template-component/641895)

<div class="topic-metadata">

**Author:** [@Ares9323](https://forums.unrealengine.com/u/Ares9323)\
**Replies:** 6\
**Last updated:** [October 16, 2025, 8:07pm UTC](https://forums.unrealengine.com/t/template-mismatch-during-attachment-attaching-instanced-component-to-template-component/641895 "2025-10-16T20:07:58Z")

</div>

Hi Everyone, it’s been a while since I’ve been trying to solve this issue. In my .h file: UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Room Components") USceneComponent \*Scene\_ProceduralComponents; UPROPER…

---

## [Why does a Controller inherit from an Actor?](https://forums.unrealengine.com/t/why-does-a-controller-inherit-from-an-actor/35174)

<div class="topic-metadata">

**Author:** [@maikklein](https://forums.unrealengine.com/u/maikklein)\
**Replies:** 2\
**Last updated:** [October 23, 2025, 1:37pm UTC](https://forums.unrealengine.com/t/why-does-a-controller-inherit-from-an-actor/35174 "2025-10-23T13:37:10Z")

</div>

I am a bit confused why Controllers are based on Actors. The docs state: I am asking because I need to do something similar. I am currently creating a Spell system which doesn’t need to be placed in the world but it…

---

## [PAK blacklist file deprecated in favor of DefaultPakFileRules.ini](https://forums.unrealengine.com/t/pak-blacklist-file-deprecated-in-favor-of-defaultpakfilerules-ini/153080)

<div class="topic-metadata">

**Author:** [@matahari](https://forums.unrealengine.com/u/matahari)\
**Replies:** 7\
**Last updated:** [October 14, 2025, 6:13pm UTC](https://forums.unrealengine.com/t/pak-blacklist-file-deprecated-in-favor-of-defaultpakfilerules-ini/153080 "2025-10-14T18:13:07Z")

</div>

Hello, I have been using PakBlacklist-Shipping.txt file for excluding folders during cooking, for some time. Today, I have noticed the following message during cooking. (Using Unreal Editor v4.25.4) Applying PAK blac…

---

## [How to reset physics object state?](https://forums.unrealengine.com/t/how-to-reset-physics-object-state/2665237)

<div class="topic-metadata">

**Author:** [@Justrenis](https://forums.unrealengine.com/u/Justrenis)\
**Replies:** 2\
**Last updated:** [October 14, 2025, 2:50pm UTC](https://forums.unrealengine.com/t/how-to-reset-physics-object-state/2665237 "2025-10-14T14:50:10Z")

</div>

I have pooling system and i reuse objects, it works with other objects, but with physics simulated ones it doesnt work. I have a static mesh, throwable object, when i throw at first it goes from hands socket correctly, t…

---

## [Overlapping players](https://forums.unrealengine.com/t/overlapping-players/2665006)

<div class="topic-metadata">

**Author:** [@Reicon](https://forums.unrealengine.com/u/Reicon)\
**Replies:** 0\
**Last updated:** [October 13, 2025, 10:09pm UTC](https://forums.unrealengine.com/t/overlapping-players/2665006 "2025-10-13T22:09:22Z")

</div>

I made a C++ (APlayer\_CPP) class with my methods and I extended it with a BP (APlayer\_BP). Now I have an actor and I need to find all players that this actor overlapp (I need to use the C++ methods for those players). M…

---

## [Loading audio from file in 5.6](https://forums.unrealengine.com/t/loading-audio-from-file-in-5-6/2664970)

<div class="topic-metadata">

**Author:** [@toomuchabstracti](https://forums.unrealengine.com/u/toomuchabstracti)\
**Replies:** 0\
**Last updated:** [October 13, 2025, 7:11pm UTC](https://forums.unrealengine.com/t/loading-audio-from-file-in-5-6/2664970 "2025-10-13T19:11:47Z")

</div>

I’m trying to load .wav files at runtime from files on disk, i.e. not packaged by the game. I was using this code, which worked in 5.3: USoundWave\* USoundManager::LoadSoundFromFile(const FString& path) { USoundWave\* sw…

---

## [Line trace by channel in c++ crashes my Unreal Engine when it hits an object, pls for the love of god help ](https://forums.unrealengine.com/t/line-trace-by-channel-in-c-crashes-my-unreal-engine-when-it-hits-an-object-pls-for-the-love-of-god-help/2664834)

<div class="topic-metadata">

**Author:** [@KassikGaming](https://forums.unrealengine.com/u/KassikGaming)\
**Replies:** 2\
**Last updated:** [October 13, 2025, 2:21pm UTC](https://forums.unrealengine.com/t/line-trace-by-channel-in-c-crashes-my-unreal-engine-when-it-hits-an-object-pls-for-the-love-of-god-help/2664834 "2025-10-13T14:21:52Z")

</div>

I have an issue when I use the line traces by channel function on my C++ project. When I use a line trace and it does not hit anything it runs the rest of my code like its supposed to. However when it does hit somethin…

---

## [Sort() errors - Sorting an array of AActors](https://forums.unrealengine.com/t/sort-errors-sorting-an-array-of-aactors/2664407)

<div class="topic-metadata">

**Author:** [@Phteven28](https://forums.unrealengine.com/u/Phteven28)\
**Replies:** 6\
**Last updated:** [October 12, 2025, 12:28pm UTC](https://forums.unrealengine.com/t/sort-errors-sorting-an-array-of-aactors/2664407 "2025-10-12T12:28:23Z")

</div>

Hey, I’m just adding the actors from a sphere trace to an array and then attempting to sort them by distance to the AI. This is my first time using the Sort() function and i swear this compiled previously. TArray\<AActor…

---

## [The project program is experiencing widespread errors!](https://forums.unrealengine.com/t/the-project-program-is-experiencing-widespread-errors/2664351)

<div class="topic-metadata">

**Author:** [@JogsLeech\_Boys](https://forums.unrealengine.com/u/JogsLeech_Boys)\
**Replies:** 0\
**Last updated:** [October 11, 2025, 9:05am UTC](https://forums.unrealengine.com/t/the-project-program-is-experiencing-widespread-errors/2664351 "2025-10-11T09:05:13Z")

</div>

The project program is experiencing widespread errors! I don’t know what caused it. Some projects encountered this issue before, and it was basically only solved by recreating the project. Does anyone know the reason? …

---

## [Manipulation of Additive transform weight value in Level Sequence at runtime using C++](https://forums.unrealengine.com/t/manipulation-of-additive-transform-weight-value-in-level-sequence-at-runtime-using-c/2663993)

<div class="topic-metadata">

**Author:** [@PaulHunter](https://forums.unrealengine.com/u/PaulHunter)\
**Replies:** 0\
**Last updated:** [October 10, 2025, 7:56am UTC](https://forums.unrealengine.com/t/manipulation-of-additive-transform-weight-value-in-level-sequence-at-runtime-using-c/2663993 "2025-10-10T07:56:15Z")

</div>

Hi all, I’m trying to manipulate the weight value’s of Transform3d tracks while a sequence is playing. These additive tracks are used to add ‘shake’ to camera movement. I’ve written code to, at runtime, set the weight …

---

## [Is it possible to edit the landscape in the shipping version?](https://forums.unrealengine.com/t/is-it-possible-to-edit-the-landscape-in-the-shipping-version/2663539)

<div class="topic-metadata">

**Author:** [@Zimaell](https://forums.unrealengine.com/u/Zimaell)\
**Replies:** 3\
**Last updated:** [October 9, 2025, 5:39pm UTC](https://forums.unrealengine.com/t/is-it-possible-to-edit-the-landscape-in-the-shipping-version/2663539 "2025-10-09T17:39:55Z")

</div>

I need to generate the landscape at game startup, set the heights and layers. I’ve tried many options, but only those that work in the editor work, and they don’t work in the shipping version; they don’t even compile. M…

---

## [Dear Unreal Engine Forum Moderators, ](https://forums.unrealengine.com/t/dear-unreal-engine-forum-moderators/2663165)

<div class="topic-metadata">

**Author:** [@HqwP899](https://forums.unrealengine.com/u/HqwP899)\
**Replies:** 0\
**Last updated:** [October 8, 2025, 3:18am UTC](https://forums.unrealengine.com/t/dear-unreal-engine-forum-moderators/2663165 "2025-10-08T03:18:58Z")

</div>

My name is HA QUY HUNG (account: HA QUY HUNG). I’m writing to kindly request that my post be unlocked or reviewed again. The post link is: https://forums.unrealengine.com/categories?tag=unreal-engine I completely unders…

---

## [Modifying the DefaultEngine.ini through a utility widget](https://forums.unrealengine.com/t/modifying-the-defaultengine-ini-through-a-utility-widget/482207)

<div class="topic-metadata">

**Author:** [@Yashinski](https://forums.unrealengine.com/u/Yashinski)\
**Replies:** 4\
**Last updated:** [October 7, 2025, 9:09pm UTC](https://forums.unrealengine.com/t/modifying-the-defaultengine-ini-through-a-utility-widget/482207 "2025-10-07T21:09:29Z")

</div>

Hello, I’m trying to save some time updating my project’s version through an editor utility widget . Currently I manually set the version through the editor’s project settings window and type whatever version I want in…

---

## [Play one track per event without sound overlap?](https://forums.unrealengine.com/t/play-one-track-per-event-without-sound-overlap/2662673)

<div class="topic-metadata">

**Author:** [@aweiglhseldec](https://forums.unrealengine.com/u/aweiglhseldec)\
**Replies:** 1\
**Last updated:** [October 7, 2025, 6:15pm UTC](https://forums.unrealengine.com/t/play-one-track-per-event-without-sound-overlap/2662673 "2025-10-07T18:15:57Z")

</div>

Hi all, Im trying to play specific sound when I call an event. but when I call the next event I want to stop whatever is playing and start new track. I build this BP it work but Im getting these errors. I tried to add is…

---

## [How to get smooth frame rate with limiting?](https://forums.unrealengine.com/t/how-to-get-smooth-frame-rate-with-limiting/2662949)

<div class="topic-metadata">

**Author:** [@volumetrix](https://forums.unrealengine.com/u/volumetrix)\
**Replies:** 0\
**Last updated:** [October 7, 2025, 11:31am UTC](https://forums.unrealengine.com/t/how-to-get-smooth-frame-rate-with-limiting/2662949 "2025-10-07T11:31:47Z")

</div>

Using a 100Hz monitor, when limiting the frame rate to 30 FPS or 60 FPS, the gameplay stutters. Using an external FPS overlay, it looks like the frame rate is not constant and varies between an upper and lower bound, onl…

---

## [Wait for a different Input Pressed in a Gameplay Ability](https://forums.unrealengine.com/t/wait-for-a-different-input-pressed-in-a-gameplay-ability/2662756)

<div class="topic-metadata">

**Author:** [@Portine](https://forums.unrealengine.com/u/Portine)\
**Replies:** 0\
**Last updated:** [October 6, 2025, 5:09pm UTC](https://forums.unrealengine.com/t/wait-for-a-different-input-pressed-in-a-gameplay-ability/2662756 "2025-10-06T17:09:54Z")

</div>

Hey! I’ve been wondering for some time now, is there a nice/decent way to listen for a separate input, other than the original Spec Activation Key (if I got that name right), in a Gameplay Ability, in a manner that’s rep…

---

## [Using PhysX Contact Modifiers](https://forums.unrealengine.com/t/using-physx-contact-modifiers/644695)

<div class="topic-metadata">

**Author:** [@blamethenewguy](https://forums.unrealengine.com/u/blamethenewguy)\
**Replies:** 4\
**Last updated:** [October 6, 2025, 1:25pm UTC](https://forums.unrealengine.com/t/using-physx-contact-modifiers/644695 "2025-10-06T13:25:02Z")

</div>

I’m having trouble understanding how to add a specific piece of code. The PhysX docs show that I can use a Callback to change the behavior of certain collision interactions, here, specifically Contact Modification. My …

---

## [Custom hit collision function](https://forums.unrealengine.com/t/custom-hit-collision-function/2662626)

<div class="topic-metadata">

**Author:** [@Supermatta321](https://forums.unrealengine.com/u/Supermatta321)\
**Replies:** 0\
**Last updated:** [October 6, 2025, 11:23am UTC](https://forums.unrealengine.com/t/custom-hit-collision-function/2662626 "2025-10-06T11:23:26Z")

</div>

Hi, im struggling with how to use queries and collision in my entirely custom physics system. Im moving actors by adding velocity to the world location/rotation on a fixed tick. However, getting correct collision is real…

---

## [C++ classes not registering on open, have to rebuild code and reload all code base assets ](https://forums.unrealengine.com/t/c-classes-not-registering-on-open-have-to-rebuild-code-and-reload-all-code-base-assets/2662441)

<div class="topic-metadata">

**Author:** [@Technical\_Studios](https://forums.unrealengine.com/u/Technical_Studios)\
**Replies:** 2\
**Last updated:** [October 5, 2025, 2:06pm UTC](https://forums.unrealengine.com/t/c-classes-not-registering-on-open-have-to-rebuild-code-and-reload-all-code-base-assets/2662441 "2025-10-05T14:06:32Z")

</div>

I’m relatively new to the C++ side on Unreal and I’m taking some classes on it, but I’ve been running into a problem that I’ve been dealing with but would like fixed. Regardless of how I open the project (opening from Ep…

---

## [按5.6文档的第一人称冒险游戏的设置和编译项目中从C++类派生出去的蓝图再重新打开编辑器时会变成无效类 ](https://forums.unrealengine.com/t/5-6-c/2662445)

<div class="topic-metadata">

**Author:** [@xmdzsdjc](https://forums.unrealengine.com/u/xmdzsdjc)\
**Replies:** 0\
**Last updated:** [October 5, 2025, 1:12pm UTC](https://forums.unrealengine.com/t/5-6-c/2662445 "2025-10-05T13:12:21Z")

</div>

我是一个初学者，衷心希望各位帮助一下我，我把AI和CSDN都问遍了也没有正确答案 我已经配置好了VS关于UE5的部分 我在自学官方文档编写第一人称冒险游戏的扩展C++类到蓝图的时候遇到了问题 我按教程创建了BP\_AdventureGameMode之后却在更改游戏模式的时候找不到我自己创建的蓝图，并且我发现连默认的游戏模式也是None，世界模式的游戏模式重载也同样找不到蓝图 在我关闭编辑器并重新打开后我的BP\_Adve…

---

## [Character navigation: Limit the maximum path length](https://forums.unrealengine.com/t/character-navigation-limit-the-maximum-path-length/2461001)

<div class="topic-metadata">

**Author:** [@acprog](https://forums.unrealengine.com/u/acprog)\
**Replies:** 1\
**Last updated:** [October 4, 2025, 1:39pm UTC](https://forums.unrealengine.com/t/character-navigation-limit-the-maximum-path-length/2461001 "2025-10-04T13:39:53Z")

</div>

Good afternoon! I have quite large levels in the game, and when building a path, I encounter the problem that Unreal cannot find a path longer than a certain length. It is clearly visible that there is a limit either i…

---

## [GAS ability with contextual text](https://forums.unrealengine.com/t/gas-ability-with-contextual-text/2662118)

<div class="topic-metadata">

**Author:** [@boolangery](https://forums.unrealengine.com/u/boolangery)\
**Replies:** 3\
**Last updated:** [October 4, 2025, 12:18pm UTC](https://forums.unrealengine.com/t/gas-ability-with-contextual-text/2662118 "2025-10-04T12:18:51Z")

</div>

Hello, I’m learning GAS and I’m creating a Toggle Openable ability to open/close things. Here is what I’ve come up with: ▶ code Is it a good approach? I’m now looking on how to provide user an interaction indicator te…

---

## [Open 2 Streams on same File (Read + Write)](https://forums.unrealengine.com/t/open-2-streams-on-same-file-read-write/2662125)

<div class="topic-metadata">

**Author:** [@HGEdrachen](https://forums.unrealengine.com/u/HGEdrachen)\
**Replies:** 1\
**Last updated:** [October 4, 2025, 12:30am UTC](https://forums.unrealengine.com/t/open-2-streams-on-same-file-read-write/2662125 "2025-10-04T00:30:20Z")

</div>

writerarchive = TUniquePtr\<FArchive\>(filemanager.CreateFileWriter(\*filepath, EFileWrite::FILEWRITE\_Append)); readerarchive = TUniquePtr\<FArchive\>(filemanager.CreateFileReader(\*filepath, EFileRead::FILEREAD\_Silent)); the…

---

## [How well does this code comply with the principle of single responsibility?](https://forums.unrealengine.com/t/how-well-does-this-code-comply-with-the-principle-of-single-responsibility/2662096)

<div class="topic-metadata">

**Author:** [@blAddddDe](https://forums.unrealengine.com/u/blAddddDe)\
**Replies:** 4\
**Last updated:** [October 3, 2025, 6:43pm UTC](https://forums.unrealengine.com/t/how-well-does-this-code-comply-with-the-principle-of-single-responsibility/2662096 "2025-10-03T18:43:06Z")

</div>

HI! void AInteractiveBuildingActorBase::OnInteract(AMainCharacter\* PlayerCharacter) { ... if (UMainGameInstance\* GameInstance = ODRPGUtils::GetGameInstance\<UMainGameInstance\>(this)) { GameInstance-\>GetWidgetSer…

---

## [Problem editing "Relevant Actors" in GameplayBehavior](https://forums.unrealengine.com/t/problem-editing-relevant-actors-in-gameplaybehavior/2661107)

<div class="topic-metadata">

**Author:** [@Deeroy08](https://forums.unrealengine.com/u/Deeroy08)\
**Replies:** 2\
**Last updated:** [October 3, 2025, 2:07pm UTC](https://forums.unrealengine.com/t/problem-editing-relevant-actors-in-gameplaybehavior/2661107 "2025-10-03T14:07:19Z")

</div>

Greetings, Currently making a GameplayBehavior in conjunction with SmartObjects, and wanted to use the “RelevantActors” array that is available. When trying to add an element unfortunately nothing happens. Tt does open …

---

## [EOS Voice Chat - Can only hear clients who joined before ](https://forums.unrealengine.com/t/eos-voice-chat-can-only-hear-clients-who-joined-before/2627886)

<div class="topic-metadata">

**Author:** [@theboostas](https://forums.unrealengine.com/u/theboostas)\
**Replies:** 3\
**Last updated:** [October 3, 2025, 9:29am UTC](https://forums.unrealengine.com/t/eos-voice-chat-can-only-hear-clients-who-joined-before/2627886 "2025-10-03T09:29:00Z")

</div>

Context: I have tried this both with EOS and EIK leading up to the same result. I can create a lobby, find, and join it. I am using two PCs to test with different account. Issue: When the host(A) creates a lobby, and…

---

## [How to migrate BlueprintLibrary from UE 5 to UE 4?](https://forums.unrealengine.com/t/how-to-migrate-blueprintlibrary-from-ue-5-to-ue-4/2661745)

<div class="topic-metadata">

**Author:** [@Efim\_Nabokih](https://forums.unrealengine.com/u/Efim_Nabokih)\
**Replies:** 1\
**Last updated:** [October 2, 2025, 8:36pm UTC](https://forums.unrealengine.com/t/how-to-migrate-blueprintlibrary-from-ue-5-to-ue-4/2661745 "2025-10-02T20:36:31Z")

</div>

Hi, please tell me if it’s possible and how I can transfer “ConstraintInstanceBlueprintLibrary” from UE 5.1 to UE 4.27? The thing is, I really need the “Get Constraint By Name” node from the mesh, which is available in U…

---

## [UE 5.4.4 Material Render Proxy changes - Safety with Deleted and GC? ](https://forums.unrealengine.com/t/ue-5-4-4-material-render-proxy-changes-safety-with-deleted-and-gc/2473027)

<div class="topic-metadata">

**Author:** [@s6-jlisco](https://forums.unrealengine.com/u/s6-jlisco)\
**Replies:** 2\
**Last updated:** [October 2, 2025, 6:31pm UTC](https://forums.unrealengine.com/t/ue-5-4-4-material-render-proxy-changes-safety-with-deleted-and-gc/2473027 "2025-10-02T18:31:18Z")

</div>

Hello, our team has been working to resolve some rendering crashes that have been plaguing us for a while, and we’re at 5.2 baseline with some cherry picked engine changes as we’re assessing when to jump forward beyond t…

---

## [Convert from 5.3 to 5.6 issue](https://forums.unrealengine.com/t/convert-from-5-3-to-5-6-issue/2661742)

<div class="topic-metadata">

**Author:** [@LordVolcan](https://forums.unrealengine.com/u/LordVolcan)\
**Replies:** 0\
**Last updated:** [October 2, 2025, 1:28pm UTC](https://forums.unrealengine.com/t/convert-from-5-3-to-5-6-issue/2661742 "2025-10-02T13:28:10Z")

</div>

I am not sure how to fix this issue, but I have been having problem converting to 5.6 the error is G:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\MSBuild\\Microsoft\\VC\\v170\\Microsoft.MakeFile.Targets(44,5): err…

---

## [Overhaul the movement functions to limit walking speed differently in different directions on the server](https://forums.unrealengine.com/t/overhaul-the-movement-functions-to-limit-walking-speed-differently-in-different-directions-on-the-server/2657319)

<div class="topic-metadata">

**Author:** [@Etyuhibosecyu](https://forums.unrealengine.com/u/Etyuhibosecyu)\
**Replies:** 3\
**Last updated:** [October 2, 2025, 9:05am UTC](https://forums.unrealengine.com/t/overhaul-the-movement-functions-to-limit-walking-speed-differently-in-different-directions-on-the-server/2657319 "2025-10-02T09:05:57Z")

</div>

I want the player in my game to not move backwards or sideways as fast as forward. It is easy to implement via clamping… in the single-player mode, but in the multiplayer the user can easily bypass this clamping via the …

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

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