# C++

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

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

**Page:** 98

---

## [Adding a new UhtPropertyType](https://forums.unrealengine.com/t/adding-a-new-uhtpropertytype/1925721)

<div class="topic-metadata">

**Author:** [@fgagnon\_ms](https://forums.unrealengine.com/u/fgagnon_ms)\
**Replies:** 0\
**Last updated:** [July 3, 2024, 8:54pm UTC](https://forums.unrealengine.com/t/adding-a-new-uhtpropertytype/1925721 "2024-07-03T20:54:18Z")

</div>

I would like to extend UHT to support a new property type (to support the UPROPERTY() and the reference management). That new type behaves pretty much like a TInstancedStruct and wraps a structure. I even got it working …

---

## [Help spawning player pawn without the UE server](https://forums.unrealengine.com/t/help-spawning-player-pawn-without-the-ue-server/1926517)

<div class="topic-metadata">

**Author:** [@Neelerak](https://forums.unrealengine.com/u/Neelerak)\
**Replies:** 0\
**Last updated:** [July 4, 2024, 2:26pm UTC](https://forums.unrealengine.com/t/help-spawning-player-pawn-without-the-ue-server/1926517 "2024-07-04T14:26:47Z")

</div>

Trying to spawn a player without UE5 server setup. I am making my own custom net code and need to be able to spawn players on client screens so you can see the other players. I keep getting an error and can not figure …

---

## [Issue with AddMovementInput Not Functioning](https://forums.unrealengine.com/t/issue-with-addmovementinput-not-functioning/1926464)

<div class="topic-metadata">

**Author:** [@Irstarr](https://forums.unrealengine.com/u/Irstarr)\
**Replies:** 0\
**Last updated:** [July 4, 2024, 1:37pm UTC](https://forums.unrealengine.com/t/issue-with-addmovementinput-not-functioning/1926464 "2024-07-04T13:37:58Z")

</div>

I was trying to implement an Enhanced Input System for my Pawn C++ class. I have a base class (ABasePawn), that includes diferent components and a child class (ATank), where i am implementing input system. Here is code f…

---

## [Having trouble with MoveToLocation()](https://forums.unrealengine.com/t/having-trouble-with-movetolocation/1925385)

<div class="topic-metadata">

**Author:** [@IdrisKhan](https://forums.unrealengine.com/u/IdrisKhan)\
**Replies:** 2\
**Last updated:** [July 4, 2024, 8:11am UTC](https://forums.unrealengine.com/t/having-trouble-with-movetolocation/1925385 "2024-07-04T08:11:26Z")

</div>

Hello everyone, I’m having an issue with my AI in Unreal Engine where the AI doesn’t navigate around obstacles properly. While using the MoveToLocation function, If the target location is on the other side of an obstacl…

---

## [in ue5 c++ should I store data of all objects in a single file? How should I store them?](https://forums.unrealengine.com/t/in-ue5-c-should-i-store-data-of-all-objects-in-a-single-file-how-should-i-store-them/1924324)

<div class="topic-metadata">

**Author:** [@Kart\_54](https://forums.unrealengine.com/u/Kart_54)\
**Replies:** 3\
**Last updated:** [July 3, 2024, 6:53am UTC](https://forums.unrealengine.com/t/in-ue5-c-should-i-store-data-of-all-objects-in-a-single-file-how-should-i-store-them/1924324 "2024-07-03T06:53:24Z")

</div>

Hey there, rookie c++ leaner here, I am currently starting off making a game, with large amounts of things that can be attached the player character, split into a small number of categories (think like in Legend of Zelda…

---

## [ULineBatchComponent::DrawLine is flickering with UE5.1.1](https://forums.unrealengine.com/t/ulinebatchcomponent-drawline-is-flickering-with-ue5-1-1/1924870)

<div class="topic-metadata">

**Author:** [@Anonymous\_c4f32135cac005d7f905b7504f9b2df1](https://forums.unrealengine.com/u/Anonymous_c4f32135cac005d7f905b7504f9b2df1)\
**Replies:** 0\
**Last updated:** [July 3, 2024, 5:39am UTC](https://forums.unrealengine.com/t/ulinebatchcomponent-drawline-is-flickering-with-ue5-1-1/1924870 "2024-07-03T05:39:42Z")

</div>

ULineBatchComponent : TranslucencySortPriority = 99999; TArray lines; lines.Add(FBatchedLine(LineStart, LineEnd, Color, 0, 50, SDPG\_Foreground)); DrawLines(lines); Material settings for the StaticMesh: Why…

---

## [Source code ue5 function blueprint](https://forums.unrealengine.com/t/source-code-ue5-function-blueprint/1924411)

<div class="topic-metadata">

**Author:** [@Evan\_Choquene\_76](https://forums.unrealengine.com/u/Evan_Choquene_76)\
**Replies:** 0\
**Last updated:** [July 2, 2024, 6:47pm UTC](https://forums.unrealengine.com/t/source-code-ue5-function-blueprint/1924411 "2024-07-02T18:47:02Z")

</div>

I would like to find in the ue5 source code, the function of the Set Timer by Event blueprint which is on the official Epic Games Github. Can you find it please?

---

## [How to properly include a header file](https://forums.unrealengine.com/t/how-to-properly-include-a-header-file/1919796)

<div class="topic-metadata">

**Author:** [@zTenam](https://forums.unrealengine.com/u/zTenam)\
**Replies:** 1\
**Last updated:** [July 2, 2024, 1:38pm UTC](https://forums.unrealengine.com/t/how-to-properly-include-a-header-file/1919796 "2024-07-02T13:38:30Z")

</div>

Let me start by telling you that I followed the standard procedure of adding all my headers, static libraries and runtime libraries within a thirdparty folder. I also indexed these folders in the build.cs file. As a matt…

---

## [How to not remove infinite GE prematurely in c++](https://forums.unrealengine.com/t/how-to-not-remove-infinite-ge-prematurely-in-c/1924068)

<div class="topic-metadata">

**Author:** [@Dreamhacy\_ATian](https://forums.unrealengine.com/u/Dreamhacy_ATian)\
**Replies:** 0\
**Last updated:** [July 2, 2024, 1:34pm UTC](https://forums.unrealengine.com/t/how-to-not-remove-infinite-ge-prematurely-in-c/1924068 "2024-07-02T13:34:03Z")

</div>

I want to remove all active gameplay effect in c++, but when I ues AbilitySystemComponent-\>RemoveActiveEffects(FGameplayEffectQuery()) it well call InternalRemoveActiveGameplayEffect(idx, StacksToRemove, bPrematureRemova…

---

## [Unreal's macros are preventing inclusion of a third-party library](https://forums.unrealengine.com/t/unreals-macros-are-preventing-inclusion-of-a-third-party-library/1918696)

<div class="topic-metadata">

**Author:** [@dwicks-st11](https://forums.unrealengine.com/u/dwicks-st11)\
**Replies:** 7\
**Last updated:** [July 2, 2024, 1:24pm UTC](https://forums.unrealengine.com/t/unreals-macros-are-preventing-inclusion-of-a-third-party-library/1918696 "2024-07-02T13:24:44Z")

</div>

I am wrapping the cpr http request library as an external module and running into compilation issues due to Unreal’s macros rewriting the word “verify” in one of the library’s header files. I include the library in an U…

---

## [How can I make a 'release' build of Unreal Engine source for team distribution?](https://forums.unrealengine.com/t/how-can-i-make-a-release-build-of-unreal-engine-source-for-team-distribution/81141)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_1dffe9f3](https://forums.unrealengine.com/u/anonymous_user_1dffe9f3)\
**Replies:** 8\
**Last updated:** [July 2, 2024, 8:19am UTC](https://forums.unrealengine.com/t/how-can-i-make-a-release-build-of-unreal-engine-source-for-team-distribution/81141 "2024-07-02T08:19:41Z")

</div>

I know that this question has been asked before, however as far as I know the methods before 4.13 are now deprecated and the information post 4.13 seems to be vague, I’m trying to build a precompiled version of the engin…

---

## [How to implement InputTouch in c++ using enhanced input?](https://forums.unrealengine.com/t/how-to-implement-inputtouch-in-c-using-enhanced-input/1923471)

<div class="topic-metadata">

**Author:** [@isaac4096](https://forums.unrealengine.com/u/isaac4096)\
**Replies:** 0\
**Last updated:** [July 2, 2024, 2:34am UTC](https://forums.unrealengine.com/t/how-to-implement-inputtouch-in-c-using-enhanced-input/1923471 "2024-07-02T02:34:42Z")

</div>

anyone knows how to implement this using the new enhanced input system?

---

## [Editor Widget trouble to get the InstancedStaticMesh component of a blueprint](https://forums.unrealengine.com/t/editor-widget-trouble-to-get-the-instancedstaticmesh-component-of-a-blueprint/1923320)

<div class="topic-metadata">

**Author:** [@MrBroccolino1](https://forums.unrealengine.com/u/MrBroccolino1)\
**Replies:** 0\
**Last updated:** [July 1, 2024, 11:19pm UTC](https://forums.unrealengine.com/t/editor-widget-trouble-to-get-the-instancedstaticmesh-component-of-a-blueprint/1923320 "2024-07-01T23:19:38Z")

</div>

Hello. I have some troubles about an Editor script I’m working on. Basically I’d like to check if a selected Asset in the content browser is an Actor Blueprint which has a InstancedMeshComponent. I’m pretty new in Unreal…

---

## [Hiring few UE5 Developers for my project](https://forums.unrealengine.com/t/hiring-few-ue5-developers-for-my-project/1922365)

<div class="topic-metadata">

**Author:** [@Third\_eye\_3](https://forums.unrealengine.com/u/Third_eye_3)\
**Replies:** 3\
**Last updated:** [July 1, 2024, 10:21pm UTC](https://forums.unrealengine.com/t/hiring-few-ue5-developers-for-my-project/1922365 "2024-07-01T22:21:33Z")

</div>

Is there any platform where I can hire few professional UE developers for my project, Please let me know. Thanks in advance

---

## [Enhanced Input with Setting "Is Player Mappable" Option](https://forums.unrealengine.com/t/enhanced-input-with-setting-is-player-mappable-option/1923214)

<div class="topic-metadata">

**Author:** [@ackyshacky](https://forums.unrealengine.com/u/ackyshacky)\
**Replies:** 0\
**Last updated:** [July 1, 2024, 8:58pm UTC](https://forums.unrealengine.com/t/enhanced-input-with-setting-is-player-mappable-option/1923214 "2024-07-01T20:58:04Z")

</div>

Hi, I am setting a new key for an input, and I want to set the “Is Player Mappable” option on for that key. Below is an image of how I’m doing this. But the new mapped key in the context file is not being updated; “Is P…

---

## [Check if "Simulate in Editor"?](https://forums.unrealengine.com/t/check-if-simulate-in-editor/119342)

<div class="topic-metadata">

**Author:** [@CamperDude3000](https://forums.unrealengine.com/u/CamperDude3000)\
**Replies:** 7\
**Last updated:** [July 1, 2024, 6:22pm UTC](https://forums.unrealengine.com/t/check-if-simulate-in-editor/119342 "2024-07-01T18:22:16Z")

</div>

Hi! I want to detect in my code if the play mode is set to “Play” (Selected Viewport) or “Simulate in Editor”. I know I can get information about the world type through “GetWorld()-\>WorldType” but it returns “PIE” for bo…

---

## [How can I expose Brush property of the UImage? (Widget Component)(C++)](https://forums.unrealengine.com/t/how-can-i-expose-brush-property-of-the-uimage-widget-component-c/1922814)

<div class="topic-metadata">

**Author:** [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Replies:** 0\
**Last updated:** [July 1, 2024, 2:33pm UTC](https://forums.unrealengine.com/t/how-can-i-expose-brush-property-of-the-uimage-widget-component-c/1922814 "2024-07-01T14:33:24Z")

</div>

I want to change the images of a component I want to see this: But I only see this This is my code: UPROPERTY(EditAnywhere, meta = (BindWidget), Category="Header") class UImage \*Foreground = nullptr; UPROPERT…

---

## [i make child process GEngine-\>ShutdownWorldNetDriver() when waitAndFork recive signal then child process 100% cpu occupy](https://forums.unrealengine.com/t/i-make-child-process-gengine-shutdownworldnetdriver-when-waitandfork-recive-signal-then-child-process-100-cpu-occupy/1922522)

<div class="topic-metadata">

**Author:** [@DJkarlHarris](https://forums.unrealengine.com/u/DJkarlHarris)\
**Replies:** 0\
**Last updated:** [July 1, 2024, 8:40am UTC](https://forums.unrealengine.com/t/i-make-child-process-gengine-shutdownworldnetdriver-when-waitandfork-recive-signal-then-child-process-100-cpu-occupy/1922522 "2024-07-01T08:40:59Z")

</div>

I am very confused and hope someone can answer me. Thank you very much

---

## [Registered PrimaryAssetId for asset does not match object's real id of!](https://forums.unrealengine.com/t/registered-primaryassetid-for-asset-does-not-match-objects-real-id-of/486533)

<div class="topic-metadata">

**Author:** [@SonoNekuro](https://forums.unrealengine.com/u/SonoNekuro)\
**Replies:** 2\
**Last updated:** [July 1, 2024, 4:55am UTC](https://forums.unrealengine.com/t/registered-primaryassetid-for-asset-does-not-match-objects-real-id-of/486533 "2024-07-01T04:55:30Z")

</div>

I made my own UObject class called UItem and i register it using Asset Manager. Whenever i try to package project with it, it gives me this error LogAssetManager: Error: Registered PrimaryAssetId Item:ItemFireBomb for a…

---

## [Linear Color Interpolate](https://forums.unrealengine.com/t/linear-color-interpolate/29045)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_d4447896](https://forums.unrealengine.com/u/anonymous_user_d4447896)\
**Replies:** 4\
**Last updated:** [June 30, 2024, 11:56pm UTC](https://forums.unrealengine.com/t/linear-color-interpolate/29045 "2024-06-30T23:56:47Z")

</div>

How would I go about interpolating between 2 colours in c++ ? I tried using LinearColorLerp() in my code but it says it’s undefined. I have included #include “Kismet/KismetMathLibrary.h” but to no avail. I know I’m doing…

---

## [Visual Studio does not find library #include "MovieSceneBindingExtensions.h"](https://forums.unrealengine.com/t/visual-studio-does-not-find-library-include-moviescenebindingextensions-h/1921774)

<div class="topic-metadata">

**Author:** [@vincenzocas](https://forums.unrealengine.com/u/vincenzocas)\
**Replies:** 1\
**Last updated:** [June 30, 2024, 6:47pm UTC](https://forums.unrealengine.com/t/visual-studio-does-not-find-library-include-moviescenebindingextensions-h/1921774 "2024-06-30T18:47:15Z")

</div>

I’m trying to use that library ut visual studio doesn’t find it but I can find it in the project explorer: I’ve even tried with the entire path: but nothing changed. Help me please.

---

## [UPROPERY Object set to null by the engine during startup](https://forums.unrealengine.com/t/upropery-object-set-to-null-by-the-engine-during-startup/1920906)

<div class="topic-metadata">

**Author:** [@asbe](https://forums.unrealengine.com/u/asbe)\
**Replies:** 6\
**Last updated:** [June 29, 2024, 8:49pm UTC](https://forums.unrealengine.com/t/upropery-object-set-to-null-by-the-engine-during-startup/1920906 "2024-06-29T20:49:55Z")

</div>

Hi, I have a custom UClass Object Component being used as UPROPERTY. UPROPERTY(Replicated, BlueprintReadOnly). The containing class is APlayer which has a blueprint parent. The Component property does not show up or is…

---

## [Visual Studio MSB3073 Error on Build (Updating project from 5.3 to 5.4). "-WaitMutex -FromMsBuild Microsoft.MakeFile.Targets"](https://forums.unrealengine.com/t/visual-studio-msb3073-error-on-build-updating-project-from-5-3-to-5-4-waitmutex-frommsbuild-microsoft-makefile-targets/1920145)

<div class="topic-metadata">

**Author:** [@Rhadley](https://forums.unrealengine.com/u/Rhadley)\
**Replies:** 9\
**Last updated:** [June 29, 2024, 5:38pm UTC](https://forums.unrealengine.com/t/visual-studio-msb3073-error-on-build-updating-project-from-5-3-to-5-4-waitmutex-frommsbuild-microsoft-makefile-targets/1920145 "2024-06-29T17:38:39Z")

</div>

Having a rough issue updating an Unreal 5.3 project to 5.4, when trying to build source. Build Error: |Error|MSB3073| The command D:\\Applications\\UE\_5.4\\Engine\\Build\\BatchFiles\\Build.bat TheProjectEditor Win64 Developm…

---

## [What data type should I use to instantiate materials/textures? (C++)](https://forums.unrealengine.com/t/what-data-type-should-i-use-to-instantiate-materials-textures-c/1920741)

<div class="topic-metadata">

**Author:** [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Replies:** 4\
**Last updated:** [June 29, 2024, 2:34pm UTC](https://forums.unrealengine.com/t/what-data-type-should-i-use-to-instantiate-materials-textures-c/1920741 "2024-06-29T14:34:28Z")

</div>

How do they do here to be able to load materials or textures? I was looking in the class hierarchy but I only see this parent i can use (UObject). I think it’s too generic… Is there some type of data or interface…

---

## [Artists have to rebuild c++ project everytime they pull from GIT](https://forums.unrealengine.com/t/artists-have-to-rebuild-c-project-everytime-they-pull-from-git/1919998)

<div class="topic-metadata">

**Author:** [@M411](https://forums.unrealengine.com/u/M411)\
**Replies:** 5\
**Last updated:** [June 28, 2024, 11:44pm UTC](https://forums.unrealengine.com/t/artists-have-to-rebuild-c-project-everytime-they-pull-from-git/1919998 "2024-06-28T23:44:15Z")

</div>

Hello, currently working on team project where we have members of the team who don’t have any c++ profile (like artists and testers), but every time the pull from our Git repo, when they try to open the project it asks t…

---

## [Dynamic Multicast delegate: How to bind lambda?](https://forums.unrealengine.com/t/dynamic-multicast-delegate-how-to-bind-lambda/140046)

<div class="topic-metadata">

**Author:** [@Dominik\_Peacock](https://forums.unrealengine.com/u/Dominik_Peacock)\
**Replies:** 17\
**Last updated:** [June 29, 2024, 11:39am UTC](https://forums.unrealengine.com/t/dynamic-multicast-delegate-how-to-bind-lambda/140046 "2024-06-29T11:39:12Z")

</div>

Hello. Suppose you have a delegate defined as follows: DECLARE\_DYNAMIC\_MULTICAST\_DELEGATE\_OneParam(FMyDelegate, FMyData, eventData); You can subscribe to events as follows: FMyDelegate delegate; delegate.AddDynami…

---

## [better way to convert FProperty list into Json?](https://forums.unrealengine.com/t/better-way-to-convert-fproperty-list-into-json/1920456)

<div class="topic-metadata">

**Author:** [@spacebares](https://forums.unrealengine.com/u/spacebares)\
**Replies:** 0\
**Last updated:** [June 29, 2024, 6:59am UTC](https://forums.unrealengine.com/t/better-way-to-convert-fproperty-list-into-json/1920456 "2024-06-29T06:59:18Z")

</div>

I have a large number of properties that span 3 classes (1 parent 2 child) and these need to get saved to Json so i cant just lump them all in a struct and use struct2json… I tagged properties that need to be saved with …

---

## [how to import an obj file during run time?](https://forums.unrealengine.com/t/how-to-import-an-obj-file-during-run-time/790193)

<div class="topic-metadata">

**Author:** [@Toxic\_Corona\_19](https://forums.unrealengine.com/u/Toxic_Corona_19)\
**Replies:** 3\
**Last updated:** [June 29, 2024, 5:57am UTC](https://forums.unrealengine.com/t/how-to-import-an-obj-file-during-run-time/790193 "2024-06-29T05:57:29Z")

</div>

I’m trying to load an OBJ file as a UStaticMesh at runtime in Unreal Engine using C++. How can I achieve this? I have a C++ class RenderObject that starts a process and generates an OBJ file. I want to import that OBJ f…

---

## [Upgrading to 5.4 from 5.3 and it can't find FMathf](https://forums.unrealengine.com/t/upgrading-to-5-4-from-5-3-and-it-cant-find-fmathf/1920231)

<div class="topic-metadata">

**Author:** [@JPrecache](https://forums.unrealengine.com/u/JPrecache)\
**Replies:** 1\
**Last updated:** [June 29, 2024, 1:07am UTC](https://forums.unrealengine.com/t/upgrading-to-5-4-from-5-3-and-it-cant-find-fmathf/1920231 "2024-06-29T01:07:14Z")

</div>

I’ve just started converting a project from 5.3.2 to 5.4.2 and now I’m seeing tons of these: ‘FMathf’: is not a class or namespace name Is there some new file I need to include, or some using namespace? Is there a lis…

---

## [Project won't compile after reinstalling windows](https://forums.unrealengine.com/t/project-wont-compile-after-reinstalling-windows/1920176)

<div class="topic-metadata">

**Author:** [@JPrecache](https://forums.unrealengine.com/u/JPrecache)\
**Replies:** 1\
**Last updated:** [June 29, 2024, 12:25am UTC](https://forums.unrealengine.com/t/project-wont-compile-after-reinstalling-windows/1920176 "2024-06-29T00:25:27Z")

</div>

I had to reinstall windows, and after copying my old project, it will not longer compile. It’s an unreal 5.3.2 project and I’m using VS2022. I’ve since made new c++ projects and they compile fine, so I’m pretty sure I …

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

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