# C++

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

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

**Page:** 42

---

## [(Linux)Game file required to initialize the global shader library are missing from content](https://forums.unrealengine.com/t/linux-game-file-required-to-initialize-the-global-shader-library-are-missing-from-content/2459640)

<div class="topic-metadata">

**Author:** [@Finderspire](https://forums.unrealengine.com/u/Finderspire)\
**Replies:** 0\
**Last updated:** [April 16, 2025, 1:42pm UTC](https://forums.unrealengine.com/t/linux-game-file-required-to-initialize-the-global-shader-library-are-missing-from-content/2459640 "2025-04-16T13:42:40Z")

</div>

I have successfully packaged my project to Linux. However, it shows “Game file required to initialize the global shader library are missing from content” once I try to run the .sh file. Everything works fine in windows p…

---

## [Unable to clamp PCG Graph points on Cesium Tileset using SampleHeightMostDetailed function ](https://forums.unrealengine.com/t/unable-to-clamp-pcg-graph-points-on-cesium-tileset-using-sampleheightmostdetailed-function/2459568)

<div class="topic-metadata">

**Author:** [@unityafise](https://forums.unrealengine.com/u/unityafise)\
**Replies:** 0\
**Last updated:** [April 16, 2025, 1:03pm UTC](https://forums.unrealengine.com/t/unable-to-clamp-pcg-graph-points-on-cesium-tileset-using-sampleheightmostdetailed-function/2459568 "2025-04-16T13:03:16Z")

</div>

I want to clamp PCG graph points to cesium terrain in UE5.4. I have created a custom node in pcg graph to achieve this functionality. This node was meant update the points position using SampleHeightMostDetailedFunction…

---

## [UWorld::GetLocalURL does not return port information](https://forums.unrealengine.com/t/uworld-getlocalurl-does-not-return-port-information/423149)

<div class="topic-metadata">

**Author:** [@MajinSephiroth](https://forums.unrealengine.com/u/MajinSephiroth)\
**Replies:** 2\
**Last updated:** [April 16, 2025, 11:21am UTC](https://forums.unrealengine.com/t/uworld-getlocalurl-does-not-return-port-information/423149 "2025-04-16T11:21:32Z")

</div>

If you spin up multiple headless servers each with their own maps, by default the server will automatically get the next available port starting with 7777. I try returning this value on the server, but using GetWorld()-\>…

---

## [C++ UPROPERTY actor component variable being set to null](https://forums.unrealengine.com/t/c-uproperty-actor-component-variable-being-set-to-null/413170)

<div class="topic-metadata">

**Author:** [@Acds](https://forums.unrealengine.com/u/Acds)\
**Replies:** 14\
**Last updated:** [April 16, 2025, 1:58am UTC](https://forums.unrealengine.com/t/c-uproperty-actor-component-variable-being-set-to-null/413170 "2025-04-16T01:58:54Z")

</div>

I posted another question here https://answers.unrealengine.com/questions/737973/reference-being-added-to-defaults-container.html which is likely related and sharing the same root cause. In short, I have a custom UActor…

---

## [(GAS) Ability System Component returning none?](https://forums.unrealengine.com/t/gas-ability-system-component-returning-none/637241)

<div class="topic-metadata">

**Author:** [@GKoch](https://forums.unrealengine.com/u/GKoch)\
**Replies:** 4\
**Last updated:** [April 16, 2025, 1:57am UTC](https://forums.unrealengine.com/t/gas-ability-system-component-returning-none/637241 "2025-04-16T01:57:55Z")

</div>

as the title says, my ability system component is returning null. Here’s how i have it set up in cpp and where i try to call it on blueprints.

---

## [How would I prevent my character from going into a wall while prone?](https://forums.unrealengine.com/t/how-would-i-prevent-my-character-from-going-into-a-wall-while-prone/630680)

<div class="topic-metadata">

**Author:** [@RCE\_WillPimentel](https://forums.unrealengine.com/u/RCE_WillPimentel)\
**Replies:** 6\
**Last updated:** [April 15, 2025, 12:56pm UTC](https://forums.unrealengine.com/t/how-would-i-prevent-my-character-from-going-into-a-wall-while-prone/630680 "2025-04-15T12:56:59Z")

</div>

Hello, As the title says, I have a problem with my existing prone system. Basically, while my character is prone, the character mesh can go through a wall. I know and expected this to happen because of how Unreal’s coll…

---

## [BeginPlay() for UObject](https://forums.unrealengine.com/t/beginplay-for-uobject/2454223)

<div class="topic-metadata">

**Author:** [@mrm\_dev](https://forums.unrealengine.com/u/mrm_dev)\
**Replies:** 9\
**Last updated:** [April 15, 2025, 5:00am UTC](https://forums.unrealengine.com/t/beginplay-for-uobject/2454223 "2025-04-15T05:00:53Z")

</div>

I have a custom object which needs to be automatically initialised before it’s owning Actor invokes BeginPlay(), Here’s what I’ve tried so far based on this question: MyActor: AMyActor::AMyActor() { MyObj = CreateD…

---

## [AGameModeBase::Logout doesn't seem to work in UE 4.26](https://forums.unrealengine.com/t/agamemodebase-logout-doesnt-seem-to-work-in-ue-4-26/156568)

<div class="topic-metadata">

**Author:** [@Greacy](https://forums.unrealengine.com/u/Greacy)\
**Replies:** 9\
**Last updated:** [April 15, 2025, 2:33am UTC](https://forums.unrealengine.com/t/agamemodebase-logout-doesnt-seem-to-work-in-ue-4-26/156568 "2025-04-15T02:33:18Z")

</div>

Hello everyone. I’m making a multiplayer game using UE4.26. I have a GameMode class that extends GameModeBase, where on PostLogin, I assign team index to connected PlayerControllers. PostLogin works as expected. When a…

---

## [TSoftClassPtr Not Loading](https://forums.unrealengine.com/t/tsoftclassptr-not-loading/2453484)

<div class="topic-metadata">

**Author:** [@0x6c6565](https://forums.unrealengine.com/u/0x6c6565)\
**Replies:** 3\
**Last updated:** [April 15, 2025, 1:26am UTC](https://forums.unrealengine.com/t/tsoftclassptr-not-loading/2453484 "2025-04-15T01:26:32Z")

</div>

Inside of a UActorComponent… I’ve got a UPROPERTY: UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, meta = (AllowPrivateAccess = "true")) TSoftClassPtr\<UMyObject\> Initial; And on BeginPlay() I’m trying to: UClass\* Init…

---

## [KismetTraceUtils unresolved external symbol in custom plugin](https://forums.unrealengine.com/t/kismettraceutils-unresolved-external-symbol-in-custom-plugin/2452900)

<div class="topic-metadata">

**Author:** [@atomic\_jungle](https://forums.unrealengine.com/u/atomic_jungle)\
**Replies:** 2\
**Last updated:** [April 14, 2025, 5:57pm UTC](https://forums.unrealengine.com/t/kismettraceutils-unresolved-external-symbol-in-custom-plugin/2452900 "2025-04-14T17:57:41Z")

</div>

Hello. For a couple of weeks i have a proplem with compiling a plugin with kismet functions. I need to create custom blueptint node with some trace functions. I\`ve created a blank project and added a c++ Blueprint Libr…

---

## [🛰️ How to create a "Search & Fly to Location" feature in Cesium for Unreal (C++) ](https://forums.unrealengine.com/t/how-to-create-a-search-fly-to-location-feature-in-cesium-for-unreal-c/2456356)

<div class="topic-metadata">

**Author:** [@GreateMercy](https://forums.unrealengine.com/u/GreateMercy)\
**Replies:** 0\
**Last updated:** [April 14, 2025, 1:28pm UTC](https://forums.unrealengine.com/t/how-to-create-a-search-fly-to-location-feature-in-cesium-for-unreal-c/2456356 "2025-04-14T13:28:43Z")

</div>

Hi everyone! I’m new to Unreal Engine and Cesium, and I’m working on a project similar to Google Earth. I want to create a feature where the user can type a place name like “Eiffel Tower” or “New York”, and the camera au…

---

## [Spawned actors begin play + tick functions not calling](https://forums.unrealengine.com/t/spawned-actors-begin-play-tick-functions-not-calling/245537)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_46dc83731](https://forums.unrealengine.com/u/anonymous_user_46dc83731)\
**Replies:** 6\
**Last updated:** [April 14, 2025, 2:16am UTC](https://forums.unrealengine.com/t/spawned-actors-begin-play-tick-functions-not-calling/245537 "2025-04-14T02:16:13Z")

</div>

Hey so I’m spawning an actor from the game instance class which when I play in the editor works perfectly fine and returns true and the constructor, begin play + tick functions of the actor all call accordingly. But whe…

---

## [How do I get the MassStationaryVisualizationTrait to work?](https://forums.unrealengine.com/t/how-do-i-get-the-massstationaryvisualizationtrait-to-work/1608174)

<div class="topic-metadata">

**Author:** [@SeriousPapa](https://forums.unrealengine.com/u/SeriousPapa)\
**Replies:** 1\
**Last updated:** [April 13, 2025, 8:49pm UTC](https://forums.unrealengine.com/t/how-do-i-get-the-massstationaryvisualizationtrait-to-work/1608174 "2025-04-13T20:49:35Z")

</div>

For visual entities that should be stationary (e.g., not expected to move), it seemed logical to apply the MassStationaryVisualizationTrait using the MassRepresentation system. However, trying every trick in the book, I …

---

## [Missing UnrealBuildTool.exe after build](https://forums.unrealengine.com/t/missing-unrealbuildtool-exe-after-build/242198)

<div class="topic-metadata">

**Author:** [@GambitFPS](https://forums.unrealengine.com/u/GambitFPS)\
**Replies:** 9\
**Last updated:** [April 13, 2025, 4:58pm UTC](https://forums.unrealengine.com/t/missing-unrealbuildtool-exe-after-build/242198 "2025-04-13T16:58:39Z")

</div>

cant GenerateProjectFiles

---

## [UHT can't parse default TSubclassOf\<\> function parameter](https://forums.unrealengine.com/t/uht-cant-parse-default-tsubclassof-function-parameter/1528505)

<div class="topic-metadata">

**Author:** [@illYay](https://forums.unrealengine.com/u/illYay)\
**Replies:** 1\
**Last updated:** [April 12, 2025, 8:03pm UTC](https://forums.unrealengine.com/t/uht-cant-parse-default-tsubclassof-function-parameter/1528505 "2025-04-12T20:03:43Z")

</div>

I’ve run into this issue with UHT before and had workarounds. Like if I have an integeter parameter, UHT can’t parse constants. #define THIS\_WONT\_WORK 5 // This won't compile UFUNCTION(BlueprintCallable, Category = "T…

---

## [newly created C++ blueprint not showing up when adding blueprint](https://forums.unrealengine.com/t/newly-created-c-blueprint-not-showing-up-when-adding-blueprint/2451626)

<div class="topic-metadata">

**Author:** [@susyimposterohio](https://forums.unrealengine.com/u/susyimposterohio)\
**Replies:** 2\
**Last updated:** [April 12, 2025, 7:20pm UTC](https://forums.unrealengine.com/t/newly-created-c-blueprint-not-showing-up-when-adding-blueprint/2451626 "2025-04-12T19:20:15Z")

</div>

hi so im kinda new to all this and im watching a tutorial and when i go to add the C++ blueprint it doesnt seem to show up does anyone know why this is?

---

## [Any automation on UPROPERTY and other UHT-related code?](https://forums.unrealengine.com/t/any-automation-on-uproperty-and-other-uht-related-code/150205)

<div class="topic-metadata">

**Author:** [@GribUser](https://forums.unrealengine.com/u/GribUser)\
**Replies:** 5\
**Last updated:** [April 11, 2025, 1:58pm UTC](https://forums.unrealengine.com/t/any-automation-on-uproperty-and-other-uht-related-code/150205 "2025-04-11T13:58:06Z")

</div>

At some point (already at two points, in my case) you start to realize you want to create UPROPERTY-s and other UHT-related stuff from macro/template/etc. The problem is UHT happens before C++ preprocessing, so you can’t…

---

## [TMap\<TObjectPtr\<\>\> Conversion Problem](https://forums.unrealengine.com/t/tmap-tobjectptr-conversion-problem/1858604)

<div class="topic-metadata">

**Author:** [@SaltyLimes](https://forums.unrealengine.com/u/SaltyLimes)\
**Replies:** 6\
**Last updated:** [April 11, 2025, 1:56pm UTC](https://forums.unrealengine.com/t/tmap-tobjectptr-conversion-problem/1858604 "2025-04-11T13:56:37Z")

</div>

I’m in the process of updating all UPROPERTY() pointer references to use TObjectPtr\<\> and I’ve ran into a seemingly simple issue I’m not quiet sure how to resolve. I have the following UFUNCTION: UFUNCTION() TSet\<UDisp…

---

## [Generate Variables Dynamically UHT For Macro](https://forums.unrealengine.com/t/generate-variables-dynamically-uht-for-macro/1879219)

<div class="topic-metadata">

**Author:** [@heronero06](https://forums.unrealengine.com/u/heronero06)\
**Replies:** 1\
**Last updated:** [April 11, 2025, 12:33pm UTC](https://forums.unrealengine.com/t/generate-variables-dynamically-uht-for-macro/1879219 "2025-04-11T12:33:32Z")

</div>

Hi, I’m using the gas system here, and I’m trying to write a macro to dynamically generate attributes within gas. My main goal is to consolidate everything needed for attribute generation into a single macro. However, I’…

---

## [(UDynamicMesh / Geometry Script): DynamicMesh not connecting properly](https://forums.unrealengine.com/t/udynamicmesh-geometry-script-dynamicmesh-not-connecting-properly/2450908)

<div class="topic-metadata">

**Author:** [@MariusPVI](https://forums.unrealengine.com/u/MariusPVI)\
**Replies:** 0\
**Last updated:** [April 11, 2025, 9:07am UTC](https://forums.unrealengine.com/t/udynamicmesh-geometry-script-dynamicmesh-not-connecting-properly/2450908 "2025-04-11T09:07:08Z")

</div>

Hi all, I’m currently working with several surface meshes in UE5 (via UDynamicMeshComponent) that are almost connected, and my goal is to merge them into a single watertight mesh. I started by creating a UDynamicMeshCo…

---

## [I want AI to move when I press the start button](https://forums.unrealengine.com/t/i-want-ai-to-move-when-i-press-the-start-button/2446232)

<div class="topic-metadata">

**Author:** [@sehwa](https://forums.unrealengine.com/u/sehwa)\
**Replies:** 9\
**Last updated:** [April 11, 2025, 5:11am UTC](https://forums.unrealengine.com/t/i-want-ai-to-move-when-i-press-the-start-button/2446232 "2025-04-11T05:11:11Z")

</div>

Hello, I don’t know if I should post here, but I’ll write it down for now. I don’t know if I should go to UI or which category I should go to. I want AI to move when I press the game start button on the main screen now. …

---

## [100 build errors on an empty project](https://forums.unrealengine.com/t/100-build-errors-on-an-empty-project/2449986)

<div class="topic-metadata">

**Author:** [@dilpo](https://forums.unrealengine.com/u/dilpo)\
**Replies:** 1\
**Last updated:** [April 10, 2025, 5:39pm UTC](https://forums.unrealengine.com/t/100-build-errors-on-an-empty-project/2449986 "2025-04-10T17:39:00Z")

</div>

I’m working on my first c++ project and noticed a long list of system file errors so I restarted a fresh project to see if it was my code and the errors come after I hit rebuild. I have tried generating visual studio…

---

## [UAbilityTask\_PlayMontageAndWait never ends](https://forums.unrealengine.com/t/uabilitytask-playmontageandwait-never-ends/2111567)

<div class="topic-metadata">

**Author:** [@nickwinters](https://forums.unrealengine.com/u/nickwinters)\
**Replies:** 1\
**Last updated:** [April 10, 2025, 4:35pm UTC](https://forums.unrealengine.com/t/uabilitytask-playmontageandwait-never-ends/2111567 "2025-04-10T16:35:16Z")

</div>

I have an Ability that kicks off a montage using UAbilityTask\_PlayMontageAndWait. In ActivateAbility, I have the following code. if (MontageToPlay != nullptr && AnimInstance != nullptr && AnimInstance-\>GetActiveMontag…

---

## [import cpp class](https://forums.unrealengine.com/t/import-cpp-class/108894)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_5be014f9](https://forums.unrealengine.com/u/anonymous_user_5be014f9)\
**Replies:** 10\
**Last updated:** [April 10, 2025, 3:46pm UTC](https://forums.unrealengine.com/t/import-cpp-class/108894 "2025-04-10T15:46:33Z")

</div>

Hey, I am trying to create a new project using my existing cpp files. I have succeed to create and copy and source file to the project, but in the “C++ Classes” folder I cannot see my cpp files although they are in Sour…

---

## [AttributeSet build in PlayerState Constract but being nullptr outside ](https://forums.unrealengine.com/t/attributeset-build-in-playerstate-constract-but-being-nullptr-outside/2448134)

<div class="topic-metadata">

**Author:** [@3183284a7e224197a1a9975af990e8d7](https://forums.unrealengine.com/u/3183284a7e224197a1a9975af990e8d7)\
**Replies:** 2\
**Last updated:** [April 10, 2025, 7:09am UTC](https://forums.unrealengine.com/t/attributeset-build-in-playerstate-constract-but-being-nullptr-outside/2448134 "2025-04-10T07:09:52Z")

</div>

ue5.3 and ue5.5 both failed

---

## [对函数输入变量的指针赋值但是为空](https://forums.unrealengine.com/t/topic/2449135)

<div class="topic-metadata">

**Author:** [@798208](https://forums.unrealengine.com/u/798208)\
**Replies:** 0\
**Last updated:** [April 10, 2025, 5:39am UTC](https://forums.unrealengine.com/t/topic/2449135 "2025-04-10T05:39:18Z")

</div>

I’m using it here to assign a value to the CurrentNode pointer I’m calling it in this picture’s function, and I’m calling it with a SelectedNode This SelectedNode is right here, and I’m calling this function whe…

---

## [BindWidget Null when using Create Widget](https://forums.unrealengine.com/t/bindwidget-null-when-using-create-widget/1246603)

<div class="topic-metadata">

**Author:** [@user\_00bdada99a4e2ca5478923e68f67e862b2ec3c23d08c5cf89805c5](https://forums.unrealengine.com/u/user_00bdada99a4e2ca5478923e68f67e862b2ec3c23d08c5cf89805c5)\
**Replies:** 17\
**Last updated:** [April 9, 2025, 7:14pm UTC](https://forums.unrealengine.com/t/bindwidget-null-when-using-create-widget/1246603 "2025-04-09T19:14:33Z")

</div>

I have a widget class with pointers to components like buttons and textblocks with UPROPERTY bindwidget. When I call Create Widget from a different widget class, the pointers are null pointers. Is there something I have …

---

## [Need help with visual studio for Unreal Enginer 5.3](https://forums.unrealengine.com/t/need-help-with-visual-studio-for-unreal-enginer-5-3/2448337)

<div class="topic-metadata">

**Author:** [@Blackforcedragon](https://forums.unrealengine.com/u/Blackforcedragon)\
**Replies:** 3\
**Last updated:** [April 9, 2025, 5:17pm UTC](https://forums.unrealengine.com/t/need-help-with-visual-studio-for-unreal-enginer-5-3/2448337 "2025-04-09T17:17:28Z")

</div>

I’m trying to code with C++Using Unreal Engine 5.3 , but Visual Studio 2022 won’t build/ compile my codes, but Live code will compile my codes. If I create a new c++ project, and try to build (no edit or add any code) …

---

## [Missing precompiled manifest for 'DirectoryWatcher'. How to fix it?](https://forums.unrealengine.com/t/missing-precompiled-manifest-for-directorywatcher-how-to-fix-it/148639)

<div class="topic-metadata">

**Author:** [@Shark\_vil](https://forums.unrealengine.com/u/Shark_vil)\
**Replies:** 1\
**Last updated:** [April 9, 2025, 4:27pm UTC](https://forums.unrealengine.com/t/missing-precompiled-manifest-for-directorywatcher-how-to-fix-it/148639 "2025-04-09T16:27:45Z")

</div>

Hello. There was such a problem. Initially, I could not compile the project because the compiler could not find the header files. I solved this problem, it is described here: https://answers.unrealengine.com/ans…5415/vi…

---

## [Why can't my line trace get the Physics Material?](https://forums.unrealengine.com/t/why-cant-my-line-trace-get-the-physics-material/786558)

<div class="topic-metadata">

**Author:** [@TDK\_Arkham](https://forums.unrealengine.com/u/TDK_Arkham)\
**Replies:** 3\
**Last updated:** [April 9, 2025, 1:17pm UTC](https://forums.unrealengine.com/t/why-cant-my-line-trace-get-the-physics-material/786558 "2025-04-09T13:17:41Z")

</div>

I’m learning to make a weapon system. There is a feature in that system which is the damage applied to the character should be different when hitting different part of the character. I tried to implement this function by…

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

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