# C++

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

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

**Page:** 82

---

## [C++ int inverted value](https://forums.unrealengine.com/t/c-int-inverted-value/2027737)

<div class="topic-metadata">

**Author:** [@Lizzy\_Holz](https://forums.unrealengine.com/u/Lizzy_Holz)\
**Replies:** 2\
**Last updated:** [September 19, 2024, 10:21am UTC](https://forums.unrealengine.com/t/c-int-inverted-value/2027737 "2024-09-19T10:21:27Z")

</div>

Hello! do anyone know how to invert int value in C++? i want to make cvar1 be (1) Int and cvar4 to be (0) int something like flip/flop is it real to make? or i need to make another Void for Cvar4? (sorry for my very…

---

## [在虚幻5.4中如何调用C#的Dll动态链接库](https://forums.unrealengine.com/t/5-4-c-dll/2027329)

<div class="topic-metadata">

**Author:** [@user\_9376ad06de3ba58b3d96bf231369f2f78760d7bddef01482f6d061](https://forums.unrealengine.com/u/user_9376ad06de3ba58b3d96bf231369f2f78760d7bddef01482f6d061)\
**Replies:** 0\
**Last updated:** [September 19, 2024, 2:52am UTC](https://forums.unrealengine.com/t/5-4-c-dll/2027329 "2024-09-19T02:52:12Z")

</div>

如题~

---

## [Material Mask off camera](https://forums.unrealengine.com/t/material-mask-off-camera/2027212)

<div class="topic-metadata">

**Author:** [@JoeMullinss](https://forums.unrealengine.com/u/JoeMullinss)\
**Replies:** 0\
**Last updated:** [September 19, 2024, 1:10am UTC](https://forums.unrealengine.com/t/material-mask-off-camera/2027212 "2024-09-19T01:10:56Z")

</div>

I need a mask that is based on what is in the cameras view. Anything that isn’t seen needs to be masked. (yes I know, it sounds stupid. But this is the only way I can get a post processing effect to work correctly. Other…

---

## [Version Switch Issues](https://forums.unrealengine.com/t/version-switch-issues/2025481)

<div class="topic-metadata">

**Author:** [@CassimoLive](https://forums.unrealengine.com/u/CassimoLive)\
**Replies:** 2\
**Last updated:** [September 18, 2024, 3:02pm UTC](https://forums.unrealengine.com/t/version-switch-issues/2025481 "2024-09-18T15:02:22Z")

</div>

When I right click \> Switch Unreal Engine Version 5.4 in the Explorer on a uproject file. I get an Error “Failed to generate project files”. Precompiled rules assembly ‘C:\\Program Files\\Epic Games\\UE\_5.4\\Engine\\Intermed…

---

## [\[UE 5.1\] VisualStudio 2022 Intellisense for engine files not working in UE5](https://forums.unrealengine.com/t/ue-5-1-visualstudio-2022-intellisense-for-engine-files-not-working-in-ue5/551166)

<div class="topic-metadata">

**Author:** [@adiswa123](https://forums.unrealengine.com/u/adiswa123)\
**Replies:** 28\
**Last updated:** [September 18, 2024, 12:42pm UTC](https://forums.unrealengine.com/t/ue-5-1-visualstudio-2022-intellisense-for-engine-files-not-working-in-ue5/551166 "2024-09-18T12:42:19Z")

</div>

When programming in UE4 when I open engine source files from within a project (e.g Actor.h) all the intellisense works as expected. However, when I make C++ projects within UE5 and open the same engine files (e.g Actor.…

---

## [Unreal Engine 5 Crashing with projectile decal](https://forums.unrealengine.com/t/unreal-engine-5-crashing-with-projectile-decal/2025830)

<div class="topic-metadata">

**Author:** [@UndauntedPariah](https://forums.unrealengine.com/u/UndauntedPariah)\
**Replies:** 12\
**Last updated:** [September 18, 2024, 9:01am UTC](https://forums.unrealengine.com/t/unreal-engine-5-crashing-with-projectile-decal/2025830 "2024-09-18T09:01:16Z")

</div>

Hello, I recently began an Unreal Engine project for a class and part of the tasking was to create a paintball-like splatter effect when firing the projectile. So, I followed the steps provided in our tutorial but exper…

---

## [How can I use Unreal Insights 5.0 to analyze 4.26 project](https://forums.unrealengine.com/t/how-can-i-use-unreal-insights-5-0-to-analyze-4-26-project/1797177)

<div class="topic-metadata">

**Author:** [@802068](https://forums.unrealengine.com/u/802068)\
**Replies:** 2\
**Last updated:** [September 18, 2024, 8:31am UTC](https://forums.unrealengine.com/t/how-can-i-use-unreal-insights-5-0-to-analyze-4-26-project/1797177 "2024-09-18T08:31:46Z")

</div>

As title. Documentation say “Trace sessions are self-describing, and compatible with different engine release versions.”, but 5.0 insights doesn’t work in 4.26 project.

---

## [How to create a filter button for custom property catgories in Details Panel? ](https://forums.unrealengine.com/t/how-to-create-a-filter-button-for-custom-property-catgories-in-details-panel/622326)

<div class="topic-metadata">

**Author:** [@MAGKilller](https://forums.unrealengine.com/u/MAGKilller)\
**Replies:** 4\
**Last updated:** [September 17, 2024, 4:10pm UTC](https://forums.unrealengine.com/t/how-to-create-a-filter-button-for-custom-property-catgories-in-details-panel/622326 "2024-09-17T16:10:43Z")

</div>

Hi, I want to add a button in Details Panel to quickly filter some of my custom categories. Is it possible in UE5? Desired button location is shown bellow: I need a button labeled “Controller” to filter only Contro…

---

## [TFunction - passing reference to a function - cant get it to work](https://forums.unrealengine.com/t/tfunction-passing-reference-to-a-function-cant-get-it-to-work/511130)

<div class="topic-metadata">

**Author:** [@MarcusRivers](https://forums.unrealengine.com/u/MarcusRivers)\
**Replies:** 3\
**Last updated:** [September 17, 2024, 5:06pm UTC](https://forums.unrealengine.com/t/tfunction-passing-reference-to-a-function-cant-get-it-to-work/511130 "2024-09-17T17:06:20Z")

</div>

Has anyone ever gotten this to work? I’ve looked through all the available questions and examples on the internet & forum, but it stubbornly refuses I wish to replace a long switch statement that selects functions after…

---

## [AdvancedSession ERROR: Expecting to find a type to be declared in a module rules named 'AdvancedSessions'](https://forums.unrealengine.com/t/advancedsession-error-expecting-to-find-a-type-to-be-declared-in-a-module-rules-named-advancedsessions/559503)

<div class="topic-metadata">

**Author:** [@denizforst](https://forums.unrealengine.com/u/denizforst)\
**Replies:** 7\
**Last updated:** [September 17, 2024, 4:46pm UTC](https://forums.unrealengine.com/t/advancedsession-error-expecting-to-find-a-type-to-be-declared-in-a-module-rules-named-advancedsessions/559503 "2024-09-17T16:46:37Z")

</div>

ERROR: Expecting to find a type to be declared in a module rules named ‘AdvancedSessions’ in UE5Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null. This type must derive from the ‘ModuleRules’ type defined by …

---

## [Localize Startup Movie?](https://forums.unrealengine.com/t/localize-startup-movie/2024587)

<div class="topic-metadata">

**Author:** [@UrBoyRyan\_TC](https://forums.unrealengine.com/u/UrBoyRyan_TC)\
**Replies:** 0\
**Last updated:** [September 17, 2024, 2:51pm UTC](https://forums.unrealengine.com/t/localize-startup-movie/2024587 "2024-09-17T14:51:35Z")

</div>

UE 5.4 Hello! I’m trying to use localized assets as startup movies but it doesn’t seem to be working as expected. Looking in the DefaultGameMoviePlayer.cpp, I see that the SetupLoadingScreenFromIni is only looking in th…

---

## [Enhanced Input System: when are input actions set to be executed](https://forums.unrealengine.com/t/enhanced-input-system-when-are-input-actions-set-to-be-executed/2012976)

<div class="topic-metadata">

**Author:** [@WSwinks](https://forums.unrealengine.com/u/WSwinks)\
**Replies:** 5\
**Last updated:** [September 17, 2024, 2:13pm UTC](https://forums.unrealengine.com/t/enhanced-input-system-when-are-input-actions-set-to-be-executed/2012976 "2024-09-17T14:13:03Z")

</div>

For context, I am trying to recreate the pistol from the VR template in C++. I have been able to do this; however, certain aspects of the enhanced input system are not entirely clear to me. From the constructor of the P…

---

## [Instanced array property on asset crashing the editor on hot-reload](https://forums.unrealengine.com/t/instanced-array-property-on-asset-crashing-the-editor-on-hot-reload/2023998)

<div class="topic-metadata">

**Author:** [@betterdays](https://forums.unrealengine.com/u/betterdays)\
**Replies:** 0\
**Last updated:** [September 17, 2024, 5:24am UTC](https://forums.unrealengine.com/t/instanced-array-property-on-asset-crashing-the-editor-on-hot-reload/2023998 "2024-09-17T05:24:32Z")

</div>

I have a custom asset (UObject, with a custom factory and AssetDefinition) that has an instanced array property of EditInlineNew UObjects. Something along the lines of: UCLASS(DefaultToInstanced, EditInlineNew, Abstract…

---

## [Load assets from mounted Pak files](https://forums.unrealengine.com/t/load-assets-from-mounted-pak-files/130124)

<div class="topic-metadata">

**Author:** [@Mellnik](https://forums.unrealengine.com/u/Mellnik)\
**Replies:** 27\
**Last updated:** [September 17, 2024, 4:27am UTC](https://forums.unrealengine.com/t/load-assets-from-mounted-pak-files/130124 "2024-09-17T04:27:06Z")

</div>

I’ve tried the entire day to load assets from Pak files after mounting them. Pak file is cooked and I’m running the test code on the same platform in a packaged build. I think my main problem is figuring out what path …

---

## [Getting ALL StringTables, their Keys and values?](https://forums.unrealengine.com/t/getting-all-stringtables-their-keys-and-values/2023587)

<div class="topic-metadata">

**Author:** [@BDC\_Patrick](https://forums.unrealengine.com/u/BDC_Patrick)\
**Replies:** 1\
**Last updated:** [September 16, 2024, 11:11pm UTC](https://forums.unrealengine.com/t/getting-all-stringtables-their-keys-and-values/2023587 "2024-09-16T23:11:52Z")

</div>

Hi there… For an Editor Utility, I try to populate Variables with Stuff from StringTables (TMap Keys made by Words of StringTable values as Example…). To achieve this, i need to 1st: get ALL String Tables of the pro…

---

## [Actor collider appears to be offset from Actor when using AddActorWorldOffset()](https://forums.unrealengine.com/t/actor-collider-appears-to-be-offset-from-actor-when-using-addactorworldoffset/630322)

<div class="topic-metadata">

**Author:** [@wardh](https://forums.unrealengine.com/u/wardh)\
**Replies:** 4\
**Last updated:** [September 16, 2024, 4:11pm UTC](https://forums.unrealengine.com/t/actor-collider-appears-to-be-offset-from-actor-when-using-addactorworldoffset/630322 "2024-09-16T16:11:11Z")

</div>

Hello! So I’m trying to move my pawn using AddActorWorldOffset or SetActorLocation with Sweep. But my actor seems to collide earlier than it should. In the gif I’m just simply moving the pawn downwards and while using…

---

## [Can't use my c++ classes](https://forums.unrealengine.com/t/cant-use-my-c-classes/2023041)

<div class="topic-metadata">

**Author:** [@ASTROKARMA](https://forums.unrealengine.com/u/ASTROKARMA)\
**Replies:** 2\
**Last updated:** [September 16, 2024, 2:07pm UTC](https://forums.unrealengine.com/t/cant-use-my-c-classes/2023041 "2024-09-16T14:07:04Z")

</div>

Hello, recently I have been trying to make my own C++ classes. I made 2 by following a tutorial about object pooling. I have created one classe with Unreal Interface parent and another one with WorldSubSystem in parent. …

---

## [Is it possible to put OR into EditCondition](https://forums.unrealengine.com/t/is-it-possible-to-put-or-into-editcondition/2022707)

<div class="topic-metadata">

**Author:** [@beginningshawol](https://forums.unrealengine.com/u/beginningshawol)\
**Replies:** 2\
**Last updated:** [September 16, 2024, 8:16am UTC](https://forums.unrealengine.com/t/is-it-possible-to-put-or-into-editcondition/2022707 "2024-09-16T08:16:55Z")

</div>

Hello! I want to show property if enum equals to THIS or THAT. Like here: meta = (EditCondition = "ItemType == EItemAssetType::Ammo || ItemType == EItemAssetType::Weapon") Is it possible?

---

## [Camera Transition Not Working in Unreal Engine 5](https://forums.unrealengine.com/t/camera-transition-not-working-in-unreal-engine-5/2021077)

<div class="topic-metadata">

**Author:** [@Sitheleon](https://forums.unrealengine.com/u/Sitheleon)\
**Replies:** 4\
**Last updated:** [September 15, 2024, 9:43pm UTC](https://forums.unrealengine.com/t/camera-transition-not-working-in-unreal-engine-5/2021077 "2024-09-15T21:43:52Z")

</div>

Hi there, I’m working on a project in Unreal Engine 5 and have implemented camera transition functionality. Although the camera transition appears to be successful in the logs, it does not actually occur in the game. He…

---

## [Free and Open Source MQTT Client Plugin for UE5 (someone trying to resell it)](https://forums.unrealengine.com/t/free-and-open-source-mqtt-client-plugin-for-ue5-someone-trying-to-resell-it/2019345)

<div class="topic-metadata">

**Author:** [@eray\_ozr](https://forums.unrealengine.com/u/eray_ozr)\
**Replies:** 1\
**Last updated:** [September 15, 2024, 5:40pm UTC](https://forums.unrealengine.com/t/free-and-open-source-mqtt-client-plugin-for-ue5-someone-trying-to-resell-it/2019345 "2024-09-15T17:40:59Z")

</div>

User at bellow trying to resell my free and open source MQTT plugin on marketplace. I published it with MIT license because I wanted to allow others to use my plugin on their projects without restrictions. But reselling…

---

## [SourceControl: Error: fatal: Invalid path '/Memory': No such file or directory](https://forums.unrealengine.com/t/sourcecontrol-error-fatal-invalid-path-memory-no-such-file-or-directory/1940268)

<div class="topic-metadata">

**Author:** [@ebrebzzeeere](https://forums.unrealengine.com/u/ebrebzzeeere)\
**Replies:** 1\
**Last updated:** [September 15, 2024, 1:09pm UTC](https://forums.unrealengine.com/t/sourcecontrol-error-fatal-invalid-path-memory-no-such-file-or-directory/1940268 "2024-09-15T13:09:38Z")

</div>

Everytime I run the project, I got error in Output Log and Revision Control Log. SourceControl: Error: fatal: Invalid path '/Memory': No such file or directory I am using Git for version control. I Commit C++ code via …

---

## [Interface class won't compile without default implementation of functions](https://forums.unrealengine.com/t/interface-class-wont-compile-without-default-implementation-of-functions/2002642)

<div class="topic-metadata">

**Author:** [@Garrett148363](https://forums.unrealengine.com/u/Garrett148363)\
**Replies:** 2\
**Last updated:** [September 14, 2024, 7:57pm UTC](https://forums.unrealengine.com/t/interface-class-wont-compile-without-default-implementation-of-functions/2002642 "2024-09-14T19:57:49Z")

</div>

I created a class through the C++ class wizard in unreal engine that extends UInterface. All I’m trying to do is add a single function to the public section of “I” prefixed class. According to the unreal engine docume…

---

## [How to do Delay in C++](https://forums.unrealengine.com/t/how-to-do-delay-in-c/2005060)

<div class="topic-metadata">

**Author:** [@30quickdead](https://forums.unrealengine.com/u/30quickdead)\
**Replies:** 3\
**Last updated:** [September 14, 2024, 7:41pm UTC](https://forums.unrealengine.com/t/how-to-do-delay-in-c/2005060 "2024-09-14T19:41:32Z")

</div>

So i am new to c++, i made a system where an actor goes in a direction and returns back to the original place in tick function, my code is like this What i want to do is set a delay of a 1 or 2 sec at the start of “e…

---

## [When i rebuild my c++ it doesnt update in the project](https://forums.unrealengine.com/t/when-i-rebuild-my-c-it-doesnt-update-in-the-project/2017721)

<div class="topic-metadata">

**Author:** [@IKrazedKat](https://forums.unrealengine.com/u/IKrazedKat)\
**Replies:** 1\
**Last updated:** [September 14, 2024, 7:16pm UTC](https://forums.unrealengine.com/t/when-i-rebuild-my-c-it-doesnt-update-in-the-project/2017721 "2024-09-14T19:16:56Z")

</div>

---

## [CreateDefaultSubobject with SubClassOf](https://forums.unrealengine.com/t/createdefaultsubobject-with-subclassof/2020878)

<div class="topic-metadata">

**Author:** [@AreYouTheBot020](https://forums.unrealengine.com/u/AreYouTheBot020)\
**Replies:** 2\
**Last updated:** [September 14, 2024, 6:01pm UTC](https://forums.unrealengine.com/t/createdefaultsubobject-with-subclassof/2020878 "2024-09-14T18:01:10Z")

</div>

I have a UMyActorComp : UActorComponent that I am finding I need to do stuff with as a Blueprint, I should only need 1 Blueprint Type, and “shouldn’t” need to derive further. currently I have UPROPERTY(EditAnywhere, Bl…

---

## [Can't generate a solution file for VS Code](https://forums.unrealengine.com/t/cant-generate-a-solution-file-for-vs-code/2011716)

<div class="topic-metadata">

**Author:** [@Psijic\_Void](https://forums.unrealengine.com/u/Psijic_Void)\
**Replies:** 4\
**Last updated:** [September 14, 2024, 4:37pm UTC](https://forums.unrealengine.com/t/cant-generate-a-solution-file-for-vs-code/2011716 "2024-09-14T16:37:27Z")

</div>

I’m trying to generate a solution file for VS Code Linux but didn’t get it. Also I get .vscode dirs both in the project and UE5 install dir. /opt/UnrealEngine/Unreal\_5.4.2/Engine/Build/BatchFiles/Linux/GenerateProjectFi…

---

## [HasAnyRootMotion() returns true always](https://forums.unrealengine.com/t/hasanyrootmotion-returns-true-always/487363)

<div class="topic-metadata">

**Author:** [@kekkeme](https://forums.unrealengine.com/u/kekkeme)\
**Replies:** 3\
**Last updated:** [September 14, 2024, 1:26pm UTC](https://forums.unrealengine.com/t/hasanyrootmotion-returns-true-always/487363 "2024-09-14T13:26:08Z")

</div>

Hi everyone, As title says, HasAnyRootMotion() always return true. Even in my anim graph there was no node connected to final pose it still returns true. I do not know what caused it but now i can not get false. I clea…

---

## [Rebuild UnrealBuildTool in UE 5.4 on MacOS](https://forums.unrealengine.com/t/rebuild-unrealbuildtool-in-ue-5-4-on-macos/2003247)

<div class="topic-metadata">

**Author:** [@Zaratusa](https://forums.unrealengine.com/u/Zaratusa)\
**Replies:** 1\
**Last updated:** [September 14, 2024, 11:33am UTC](https://forums.unrealengine.com/t/rebuild-unrealbuildtool-in-ue-5-4-on-macos/2003247 "2024-09-14T11:33:11Z")

</div>

Hi, I’ve made some adjustments to the WriteEntitlements method in IOSExports.cs in the UnrealBuildTool in order to write associated domains to the entitlements. But the changes doesn’t seem to trigger a new build for th…

---

## [c++ clamp](https://forums.unrealengine.com/t/c-clamp/2019179)

<div class="topic-metadata">

**Author:** [@Lizzy\_Holz](https://forums.unrealengine.com/u/Lizzy_Holz)\
**Replies:** 4\
**Last updated:** [September 13, 2024, 8:59pm UTC](https://forums.unrealengine.com/t/c-clamp/2019179 "2024-09-13T20:59:50Z")

</div>

Hello! I Followed this tutorial to make custom game user settings… also i added ability to manage anti aliasing method (r.AntiAliasingMethod) and it’s working great! But my question is how can i clamp Aliasing variab…

---

## [Editing Buoyancy Component C++](https://forums.unrealengine.com/t/editing-buoyancy-component-c/1784221)

<div class="topic-metadata">

**Author:** [@DrPlagiarism](https://forums.unrealengine.com/u/DrPlagiarism)\
**Replies:** 4\
**Last updated:** [August 4, 2024, 10:43pm UTC](https://forums.unrealengine.com/t/editing-buoyancy-component-c/1784221 "2024-08-04T22:43:49Z")

</div>

So I wanted to expose one of the variables in the Buoyancy component (BuoyancyCoefficient) from the Unreal Water Plugin. I went in to the header file of “BuoyancyComponent” made a function UFUNCTION(BlueprintCallable) …

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

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