# C++

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

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

**Page:** 86

---

## [Beginner c++ question with libraries](https://forums.unrealengine.com/t/beginner-c-question-with-libraries/1997148)

<div class="topic-metadata">

**Author:** [@Xvixicho](https://forums.unrealengine.com/u/Xvixicho)\
**Replies:** 1\
**Last updated:** [August 29, 2024, 5:55pm UTC](https://forums.unrealengine.com/t/beginner-c-question-with-libraries/1997148 "2024-08-29T17:55:29Z")

</div>

So I just started learning the C++ part of UE and decided to learn how to do some threading. Tutorials and chat GPT codes I came across all use HAL libraries, but when I add “HAL” to the public dependency module names a…

---

## [Chaos Tank Gun Shaking Problem](https://forums.unrealengine.com/t/chaos-tank-gun-shaking-problem/1996657)

<div class="topic-metadata">

**Author:** [@mehmetdagli](https://forums.unrealengine.com/u/mehmetdagli)\
**Replies:** 0\
**Last updated:** [August 29, 2024, 11:17am UTC](https://forums.unrealengine.com/t/chaos-tank-gun-shaking-problem/1996657 "2024-08-29T11:17:23Z")

</div>

I am performing tank barrel stabilization in a multiplayer system. In other words, the tank is turning to the left and I am giving the barrel a right turn value equal to the tank rotation multiplied by the mi…

---

## [When would you use AllowPrivateAccess?](https://forums.unrealengine.com/t/when-would-you-use-allowprivateaccess/1996390)

<div class="topic-metadata">

**Author:** [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Replies:** 2\
**Last updated:** [August 29, 2024, 8:15am UTC](https://forums.unrealengine.com/t/when-would-you-use-allowprivateaccess/1996390 "2024-08-29T08:15:17Z")

</div>

Hi! When would you use AllowPrivateAccess? Can you give me an example? I know the theory about AllowPrivateAccess, but I can’t imagine a situation to use it. Thanks!

---

## [How to convert .jpg to .uasset](https://forums.unrealengine.com/t/how-to-convert-jpg-to-uasset/423712)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_0997b2bf](https://forums.unrealengine.com/u/anonymous_user_0997b2bf)\
**Replies:** 2\
**Last updated:** [August 29, 2024, 8:11am UTC](https://forums.unrealengine.com/t/how-to-convert-jpg-to-uasset/423712 "2024-08-29T08:11:54Z")

</div>

How to convert .jpg to .uasset

---

## [How can I stop a looping Timer?](https://forums.unrealengine.com/t/how-can-i-stop-a-looping-timer/309348)

<div class="topic-metadata">

**Author:** [@MSD](https://forums.unrealengine.com/u/MSD)\
**Replies:** 6\
**Last updated:** [August 29, 2024, 6:33am UTC](https://forums.unrealengine.com/t/how-can-i-stop-a-looping-timer/309348 "2024-08-29T06:33:47Z")

</div>

Hi; In C++ , I have a timer and I set it’s looping value to true : ... GetWorldTimerManager().SetTimer(FTimerDelegate::CreateUObject(this, &AES\_ScorBot::ObstacleTimerHandler), 5.0f, true); .... void AES\_ScorBot::Ob…

---

## [Is any way register reflection(Property System) without UHT?](https://forums.unrealengine.com/t/is-any-way-register-reflection-property-system-without-uht/1996236)

<div class="topic-metadata">

**Author:** [@Yazhuo](https://forums.unrealengine.com/u/Yazhuo)\
**Replies:** 0\
**Last updated:** [August 29, 2024, 3:18am UTC](https://forums.unrealengine.com/t/is-any-way-register-reflection-property-system-without-uht/1996236 "2024-08-29T03:18:54Z")

</div>

For some reason, I need create some new struct by template，and use macor to make it can be wildcard and can be used for blueprint. I try to find solution from it. But,it is still unable to complete by the traditional me…

---

## [How do you remove an element from a TOctree?](https://forums.unrealengine.com/t/how-do-you-remove-an-element-from-a-toctree/444816)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_285507d81](https://forums.unrealengine.com/u/anonymous_user_285507d81)\
**Replies:** 5\
**Last updated:** [March 25, 2021, 10:30pm UTC](https://forums.unrealengine.com/t/how-do-you-remove-an-element-from-a-toctree/444816 "2021-03-25T22:30:45Z")

</div>

I have figured out how to use the TOctree, and successfully implemented it. However I cannot seem to remove elements once they have been added. The function RemoveElement(FOctreeElementId ElementId); requires an Element…

---

## [When is it advisable to use AllowPrivateAccess?](https://forums.unrealengine.com/t/when-is-it-advisable-to-use-allowprivateaccess/1995427)

<div class="topic-metadata">

**Author:** [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Replies:** 3\
**Last updated:** [August 28, 2024, 6:08pm UTC](https://forums.unrealengine.com/t/when-is-it-advisable-to-use-allowprivateaccess/1995427 "2024-08-28T18:08:07Z")

</div>

Hi! I’m using Unreal Engine 5.4.3 and I have a question about AllowPrivateAccess. I know that AllowPrivateAccess allows a BP access a private variable. But, I can set that C++ variable public instead of private. So, I…

---

## [Point in polygon problem: Ray casting algorithm or Winding number algorithm](https://forums.unrealengine.com/t/point-in-polygon-problem-ray-casting-algorithm-or-winding-number-algorithm/1919552)

<div class="topic-metadata">

**Author:** [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Replies:** 1\
**Last updated:** [August 28, 2024, 5:04pm UTC](https://forums.unrealengine.com/t/point-in-polygon-problem-ray-casting-algorithm-or-winding-number-algorithm/1919552 "2024-08-28T17:04:10Z")

</div>

Hi! Do you know if there is something similar to point in polygon algorithm in Unreal? I have a set of 2D points, and I need to know if another different point is inside the polygon defined by that set of points. Than…

---

## [Cannot compile plugin in UE 5.3 (Unresolved Externals)](https://forums.unrealengine.com/t/cannot-compile-plugin-in-ue-5-3-unresolved-externals/1470124)

<div class="topic-metadata">

**Author:** [@obi.xyz](https://forums.unrealengine.com/u/obi.xyz)\
**Replies:** 4\
**Last updated:** [August 28, 2024, 5:01pm UTC](https://forums.unrealengine.com/t/cannot-compile-plugin-in-ue-5-3-unresolved-externals/1470124 "2024-08-28T17:01:05Z")

</div>

Hello. I have a plugin I made back in 5.1. For 5.2 it compiled fine but when I went to compile it for 5.3 I got (Editor) compiler errors. Runtime compiles fine. I think it has something to do with removal of “IsAvailab…

---

## [i am making a scene in ue 5.3 and it has niagara fx as steam and no matter what i try it does not have motion blur and i am using movie render queue to render it, everything has motion blur except niagara fx](https://forums.unrealengine.com/t/i-am-making-a-scene-in-ue-5-3-and-it-has-niagara-fx-as-steam-and-no-matter-what-i-try-it-does-not-have-motion-blur-and-i-am-using-movie-render-queue-to-render-it-everything-has-motion-blur-except-niagara-fx/1995416)

<div class="topic-metadata">

**Author:** [@xx\_Aakib\_xx](https://forums.unrealengine.com/u/xx_Aakib_xx)\
**Replies:** 0\
**Last updated:** [August 28, 2024, 2:51pm UTC](https://forums.unrealengine.com/t/i-am-making-a-scene-in-ue-5-3-and-it-has-niagara-fx-as-steam-and-no-matter-what-i-try-it-does-not-have-motion-blur-and-i-am-using-movie-render-queue-to-render-it-everything-has-motion-blur-except-niagara-fx/1995416 "2024-08-28T14:51:23Z")

</div>

---

## [SoftObjectPtr gets garbage collected, Best ways to keep alive](https://forums.unrealengine.com/t/softobjectptr-gets-garbage-collected-best-ways-to-keep-alive/1991913)

<div class="topic-metadata">

**Author:** [@illYay](https://forums.unrealengine.com/u/illYay)\
**Replies:** 5\
**Last updated:** [August 28, 2024, 1:56pm UTC](https://forums.unrealengine.com/t/softobjectptr-gets-garbage-collected-best-ways-to-keep-alive/1991913 "2024-08-28T13:56:33Z")

</div>

SoftObjectPtrs are backed by a weak pointer, so if you load it, it can get unloaded any time by the garbage collector. I wish there was some kind of LazyObjectPtr that automatically stays as a hard reference instead onc…

---

## [Error : Missing '{' in 'Enum'](https://forums.unrealengine.com/t/error-missing-in-enum/274513)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_23fd56db](https://forums.unrealengine.com/u/anonymous_user_23fd56db)\
**Replies:** 7\
**Last updated:** [August 28, 2024, 1:13pm UTC](https://forums.unrealengine.com/t/error-missing-in-enum/274513 "2024-08-28T13:13:05Z")

</div>

Hi. I have an enum to expose for use in other modules. I use UE 4.27 with C++. (no blueprint) My code is as follows: UENUM() enum class CIVILCOMPUTER\_API EParallelDeviationQuality : uint8 { GOOD, POOR, FAIL, }; I…

---

## [How to set a Controller dead zone Enhanced Input](https://forums.unrealengine.com/t/how-to-set-a-controller-dead-zone-enhanced-input/1960513)

<div class="topic-metadata">

**Author:** [@Jeywun](https://forums.unrealengine.com/u/Jeywun)\
**Replies:** 3\
**Last updated:** [August 28, 2024, 12:46pm UTC](https://forums.unrealengine.com/t/how-to-set-a-controller-dead-zone-enhanced-input/1960513 "2024-08-28T12:46:13Z")

</div>

I am trying to recreate the strafing movement in Spartan Assault. But I can’t get the character to go back to it’s idle pose when the character is not aiming because my controller right thumbstick does not reset to zero.…

---

## [I can't call my Events from my C++ component in Blueprints](https://forums.unrealengine.com/t/i-cant-call-my-events-from-my-c-component-in-blueprints/752465)

<div class="topic-metadata">

**Author:** [@MataLaCucaracha](https://forums.unrealengine.com/u/MataLaCucaracha)\
**Replies:** 8\
**Last updated:** [August 28, 2024, 3:25am UTC](https://forums.unrealengine.com/t/i-cant-call-my-events-from-my-c-component-in-blueprints/752465 "2024-08-28T03:25:43Z")

</div>

I’m trying to create an actor component in C++ where it’ll have a function that is ‘BlueprintImplementableEvent’ making such a function an event. But when I attach the component to an actor and try searching for the even…

---

## [Data Table Row Editor - Can’t Edit Rows When Category specifier added](https://forums.unrealengine.com/t/data-table-row-editor-can-t-edit-rows-when-category-specifier-added/1994671)

<div class="topic-metadata">

**Author:** [@DachsYin1](https://forums.unrealengine.com/u/DachsYin1)\
**Replies:** 0\
**Last updated:** [August 28, 2024, 1:26am UTC](https://forums.unrealengine.com/t/data-table-row-editor-can-t-edit-rows-when-category-specifier-added/1994671 "2024-08-28T01:26:50Z")

</div>

USTRUCT marco with Category specifier makes an ustruct member variable invisible in Row Editor Tab, Data Table asset window. USTRUCT(BlueprintType, Category = "FileOp|JSON") struct FSomeJSONStuff : public FTableRowBase …

---

## [UE-5.4.2 | PIE separated server process crashing after use LiveCoding](https://forums.unrealengine.com/t/ue-5-4-2-pie-separated-server-process-crashing-after-use-livecoding/1994341)

<div class="topic-metadata">

**Author:** [@wanecque](https://forums.unrealengine.com/u/wanecque)\
**Replies:** 1\
**Last updated:** [August 28, 2024, 12:38am UTC](https://forums.unrealengine.com/t/ue-5-4-2-pie-separated-server-process-crashing-after-use-livecoding/1994341 "2024-08-28T00:38:55Z")

</div>

When debugging in PIE mode with ‘Run Under One Process’ disabled, the server crashes systematically. This does not happen with ‘Run Under One Process’ enabled.

---

## [The first things done in the engine](https://forums.unrealengine.com/t/the-first-things-done-in-the-engine/1992206)

<div class="topic-metadata">

**Author:** [@Elites94](https://forums.unrealengine.com/u/Elites94)\
**Replies:** 9\
**Last updated:** [August 27, 2024, 9:37am UTC](https://forums.unrealengine.com/t/the-first-things-done-in-the-engine/1992206 "2024-08-27T09:37:53Z")

</div>

Hi everyone ! I have a question about the engine source code. I am looking for the first peace of code that is executed. I mean, the first function, or the first thing the engine do to initialize. I would like to exec…

---

## [UE-199993 SkeletalMeshComponent in dedicated server causes memory leak](https://forums.unrealengine.com/t/ue-199993-skeletalmeshcomponent-in-dedicated-server-causes-memory-leak/1992020)

<div class="topic-metadata">

**Author:** [@MIkasa1009](https://forums.unrealengine.com/u/MIkasa1009)\
**Replies:** 2\
**Last updated:** [August 27, 2024, 7:52am UTC](https://forums.unrealengine.com/t/ue-199993-skeletalmeshcomponent-in-dedicated-server-causes-memory-leak/1992020 "2024-08-27T07:52:25Z")

</div>

USkinnedMeshComponent::BoneTransformUpdateMethodQueue array keeps growing and never clear. https://issues.unrealengine.com/issue/UE-199993 I keep running the DS server, and the array USkinnedMeshComponent::BoneTrans…

---

## [有什么办法解决由Commandlet启动的蓝图编译程序崩溃](https://forums.unrealengine.com/t/commandlet/1992503)

<div class="topic-metadata">

**Author:** [@user\_5a296cfecce01763d5621087a0400a4509600597eaf4e191c20d83](https://forums.unrealengine.com/u/user_5a296cfecce01763d5621087a0400a4509600597eaf4e191c20d83)\
**Replies:** 0\
**Last updated:** [August 26, 2024, 2:16pm UTC](https://forums.unrealengine.com/t/commandlet/1992503 "2024-08-26T14:16:19Z")

</div>

我尝试使用COmmandlet运行一份蓝图冒烟，以下是我的程序，当我有大量的蓝图需要冒烟编译时，他会在Commandlet退出时崩溃，这让我的自动化流程有一些困扰，TSharedPtr ArtCheckLibrary::CheckAllBluePirnt() { double LastGCTime = FPlatformTime::Seconds(); TArray\<FAssetData\> AssetDataList = GetA…

---

## [How do I fix a blueprint compiler started from the command line crashing on exit](https://forums.unrealengine.com/t/how-do-i-fix-a-blueprint-compiler-started-from-the-command-line-crashing-on-exit/1992504)

<div class="topic-metadata">

**Author:** [@user\_5a296cfecce01763d5621087a0400a4509600597eaf4e191c20d83](https://forums.unrealengine.com/u/user_5a296cfecce01763d5621087a0400a4509600597eaf4e191c20d83)\
**Replies:** 2\
**Last updated:** [August 27, 2024, 6:51am UTC](https://forums.unrealengine.com/t/how-do-i-fix-a-blueprint-compiler-started-from-the-command-line-crashing-on-exit/1992504 "2024-08-27T06:51:02Z")

</div>

This is My Code，When I use Commandlet to enable it, it will crash if I compile a large number of blueprints. In fact, I know that it may be because I compiled animation blueprints or UMGs that cause the world to appear, …

---

## [Ensure replication of variable on a client](https://forums.unrealengine.com/t/ensure-replication-of-variable-on-a-client/1987616)

<div class="topic-metadata">

**Author:** [@Suspensium](https://forums.unrealengine.com/u/Suspensium)\
**Replies:** 1\
**Last updated:** [August 26, 2024, 6:45pm UTC](https://forums.unrealengine.com/t/ensure-replication-of-variable-on-a-client/1987616 "2024-08-26T18:45:42Z")

</div>

I have a method that, on button input, checks value on PlayerState and, if check successful, sends RPC back: void UAbilityController::OnSpellUpgradeButtonClicked(USpellWidget\* SpellWidget) { ATBCPlayerState\* TBCPlayerS…

---

## [What the order for file BuildConfiguration.xml if there multi location](https://forums.unrealengine.com/t/what-the-order-for-file-buildconfiguration-xml-if-there-multi-location/1877197)

<div class="topic-metadata">

**Author:** [@PlayTimeUnreal](https://forums.unrealengine.com/u/PlayTimeUnreal)\
**Replies:** 1\
**Last updated:** [August 26, 2024, 3:55pm UTC](https://forums.unrealengine.com/t/what-the-order-for-file-buildconfiguration-xml-if-there-multi-location/1877197 "2024-08-26T15:55:54Z")

</div>

Hello, I’m new with Unreal, and when I learn using C++ in Unreal I get error same like this: The error message I get: Determining max actions to execute in parallel (6 physical cores, 6 logical cores) Executing up …

---

## [Callback Function Triggering On Binding (Unreal 5 C++)](https://forums.unrealengine.com/t/callback-function-triggering-on-binding-unreal-5-c/1992573)

<div class="topic-metadata">

**Author:** [@SCARBLAZ1](https://forums.unrealengine.com/u/SCARBLAZ1)\
**Replies:** 0\
**Last updated:** [August 26, 2024, 2:56pm UTC](https://forums.unrealengine.com/t/callback-function-triggering-on-binding-unreal-5-c/1992573 "2024-08-26T14:56:13Z")

</div>

//add schedule time to schedule list -- done //for loop the list in tick, if time == schedule time -\> broadcast the callback ScheduleData.ScheduleTime = FMath::Clamp(ScheduleData.ScheduleTime, 0.0f, 24.f); FOnTime…

---

## [How can I use MeshMergingTool code ?](https://forums.unrealengine.com/t/how-can-i-use-meshmergingtool-code/138640)

<div class="topic-metadata">

**Author:** [@Nazruden](https://forums.unrealengine.com/u/Nazruden)\
**Replies:** 1\
**Last updated:** [August 26, 2024, 9:29am UTC](https://forums.unrealengine.com/t/how-can-i-use-meshmergingtool-code/138640 "2024-08-26T09:29:54Z")

</div>

Hey everyone My problem is pretty simple. I have a map working as a grid, and I’m trying to automate the process of merging the grid cells’ meshes using the MeshMergingTool. I added the Module Dependency in my project …

---

## [Is there a delegate for open level?](https://forums.unrealengine.com/t/is-there-a-delegate-for-open-level/1987804)

<div class="topic-metadata">

**Author:** [@Uulamock](https://forums.unrealengine.com/u/Uulamock)\
**Replies:** 1\
**Last updated:** [August 22, 2024, 9:24pm UTC](https://forums.unrealengine.com/t/is-there-a-delegate-for-open-level/1987804 "2024-08-22T21:24:46Z")

</div>

Or more specifically, I want a game instance subsystem to bind to a delegate that fires when levels change so that we don’t have to manually call the subsystem’s method throughout the code. I’ve tried: FWorldDelegates:…

---

## [1v1 billd fights](https://forums.unrealengine.com/t/1v1-billd-fights/1991704)

<div class="topic-metadata">

**Author:** [@Paulnyathi](https://forums.unrealengine.com/u/Paulnyathi)\
**Replies:** 0\
**Last updated:** [August 25, 2024, 10:00pm UTC](https://forums.unrealengine.com/t/1v1-billd-fights/1991704 "2024-08-25T22:00:09Z")

</div>

use map code 3993-3492-4943

---

## [How to point epicgames launcher to unrealengine sources](https://forums.unrealengine.com/t/how-to-point-epicgames-launcher-to-unrealengine-sources/138212)

<div class="topic-metadata">

**Author:** [@necktwi](https://forums.unrealengine.com/u/necktwi)\
**Replies:** 6\
**Last updated:** [August 25, 2024, 1:12pm UTC](https://forums.unrealengine.com/t/how-to-point-epicgames-launcher-to-unrealengine-sources/138212 "2024-08-25T13:12:52Z")

</div>

I’ve git cloned unrealengine to I:\\workspace\\UnrealEngine. Epicgames launcher has a button to install unreal engine but i don’t want to download unrealengine again. Instead can i make epicgames launcher to use the cloned…

---

## [There is this function in the library, but it cannot be used](https://forums.unrealengine.com/t/there-is-this-function-in-the-library-but-it-cannot-be-used/1989995)

<div class="topic-metadata">

**Author:** [@weihongfei666](https://forums.unrealengine.com/u/weihongfei666)\
**Replies:** 2\
**Last updated:** [August 24, 2024, 7:57pm UTC](https://forums.unrealengine.com/t/there-is-this-function-in-the-library-but-it-cannot-be-used/1989995 "2024-08-24T19:57:25Z")

</div>

The corresponding header files have been included.

---

## [Problem with changing Win32 Runtime via RoInitialize(RO\_INIT\_MULTITHREADED)](https://forums.unrealengine.com/t/problem-with-changing-win32-runtime-via-roinitialize-ro-init-multithreaded/1986765)

<div class="topic-metadata">

**Author:** [@DatosLab](https://forums.unrealengine.com/u/DatosLab)\
**Replies:** 1\
**Last updated:** [August 24, 2024, 2:54pm UTC](https://forums.unrealengine.com/t/problem-with-changing-win32-runtime-via-roinitialize-ro-init-multithreaded/1986765 "2024-08-24T14:54:47Z")

</div>

Hi, I need to change Windows Runtime to multithread mode for several windows async functions. It appears that in 5.0.2 Hotfix release, an issue with ::RoInitialize(RO\_INIT\_MULTITHREADED) has been resolved - 5.0.2 Hotfi…

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

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