# C++

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

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

**Page:** 70

---

## [Enable output logs for Shipping Build](https://forums.unrealengine.com/t/enable-output-logs-for-shipping-build/439865)

<div class="topic-metadata">

**Author:** [@glory13](https://forums.unrealengine.com/u/glory13)\
**Replies:** 5\
**Last updated:** [November 17, 2024, 6:54am UTC](https://forums.unrealengine.com/t/enable-output-logs-for-shipping-build/439865 "2024-11-17T06:54:32Z")

</div>

I have a crash only in an IOS shipping build. I would like to see logging but have not been able to get it turned on in shipping builds. I have scoured the internet and have tried the following suggestions. (The name …

---

## [Exporting as PNG fails](https://forums.unrealengine.com/t/exporting-as-png-fails/2124444)

<div class="topic-metadata">

**Author:** [@SoulslayerEldin](https://forums.unrealengine.com/u/SoulslayerEldin)\
**Replies:** 4\
**Last updated:** [November 17, 2024, 6:31am UTC](https://forums.unrealengine.com/t/exporting-as-png-fails/2124444 "2024-11-17T06:31:41Z")

</div>

Hi, I am trying to use ExportToDisk to save a camera projection as png file on disk. Here is the code, that I am using void AScreenCaptureCameraActor::TickActor(float DeltaTime, enum ELevelTick TickType, FActorTickFunc…

---

## [How to allocate delegates with parameters as output pins in a K2Node ?](https://forums.unrealengine.com/t/how-to-allocate-delegates-with-parameters-as-output-pins-in-a-k2node/2129926)

<div class="topic-metadata">

**Author:** [@Psahh](https://forums.unrealengine.com/u/Psahh)\
**Replies:** 0\
**Last updated:** [November 17, 2024, 3:52am UTC](https://forums.unrealengine.com/t/how-to-allocate-delegates-with-parameters-as-output-pins-in-a-k2node/2129926 "2024-11-17T03:52:11Z")

</div>

Hi there, the issue I’m encountering seems pretty simple to solve but I don’t have the necessary knowledge in K2Nodes to find a proper solution. I’m simply trying to connect a delegate (passing an int) to an output pin …

---

## [Reference static function in meta specifier 'GetOptions'](https://forums.unrealengine.com/t/reference-static-function-in-meta-specifier-getoptions/732096)

<div class="topic-metadata">

**Author:** [@Okewii](https://forums.unrealengine.com/u/Okewii)\
**Replies:** 4\
**Last updated:** [November 16, 2024, 7:00pm UTC](https://forums.unrealengine.com/t/reference-static-function-in-meta-specifier-getoptions/732096 "2024-11-16T19:00:21Z")

</div>

Hello everyone ! So here is the problem : I’m trying to show a list of possible FString for an UProperty of a custom structure I’ve seen you can use the GetOptions = "FuncName" meta specifier to obtain that effect whic…

---

## [How do I reuse C++ scripts between projects?](https://forums.unrealengine.com/t/how-do-i-reuse-c-scripts-between-projects/442198)

<div class="topic-metadata">

**Author:** [@JansenSensei](https://forums.unrealengine.com/u/JansenSensei)\
**Replies:** 5\
**Last updated:** [November 16, 2024, 10:49am UTC](https://forums.unrealengine.com/t/how-do-i-reuse-c-scripts-between-projects/442198 "2024-11-16T10:49:16Z")

</div>

Coming from a decade in Unity I am finding this the most confusing thing of all so far. If I write a C++ class in ProjectA then it seems that code can only ever be used in ProjectA. What am I missing here? UE4 has no “I…

---

## [How to get collision channel by name?](https://forums.unrealengine.com/t/how-to-get-collision-channel-by-name/2126360)

<div class="topic-metadata">

**Author:** [@andresantacruz](https://forums.unrealengine.com/u/andresantacruz)\
**Replies:** 0\
**Last updated:** [November 16, 2024, 12:28am UTC](https://forums.unrealengine.com/t/how-to-get-collision-channel-by-name/2126360 "2024-11-16T00:28:31Z")

</div>

I want to be able to create a new collision channel via Project Settings and get its ECollisionChannel value at runtime using the name I configured in the Project Settings for it. I found that the configuration for each…

---

## [Unreal Crash when loadMap by CPP](https://forums.unrealengine.com/t/unreal-crash-when-loadmap-by-cpp/2124791)

<div class="topic-metadata">

**Author:** [@ShouyuYang](https://forums.unrealengine.com/u/ShouyuYang)\
**Replies:** 3\
**Last updated:** [November 15, 2024, 7:55pm UTC](https://forums.unrealengine.com/t/unreal-crash-when-loadmap-by-cpp/2124791 "2024-11-15T19:55:00Z")

</div>

Unreal Crash when loadMap by CPP I am developing a feature to allow user to open a map from Editor Utilities Widget. Here is my code: bool UContentToolsEditorBlueprintLibrary::OpenMap() { FString LevelPath = "/Game…

---

## [Alternative to create c++ files when code isn't stable](https://forums.unrealengine.com/t/alternative-to-create-c-files-when-code-isnt-stable/2124395)

<div class="topic-metadata">

**Author:** [@mspe044](https://forums.unrealengine.com/u/mspe044)\
**Replies:** 1\
**Last updated:** [November 15, 2024, 11:22am UTC](https://forums.unrealengine.com/t/alternative-to-create-c-files-when-code-isnt-stable/2124395 "2024-11-15T11:22:49Z")

</div>

I need to create some c++ files. I know to create c++ files for my plugin through Unreal Engine’s Editor. However my Project is undergoing a rewrite so won’t compile right now (Build Errors, Modules missing or different…

---

## [Costless transfer of a std::vector\<T\>'s data to a TArray\<T\>.](https://forums.unrealengine.com/t/costless-transfer-of-a-std-vector-t-s-data-to-a-tarray-t/2124316)

<div class="topic-metadata">

**Author:** [@OctoberIC](https://forums.unrealengine.com/u/OctoberIC)\
**Replies:** 0\
**Last updated:** [November 15, 2024, 9:54am UTC](https://forums.unrealengine.com/t/costless-transfer-of-a-std-vector-t-s-data-to-a-tarray-t/2124316 "2024-11-15T09:54:51Z")

</div>

When working with external libraries, one often has to cast from C++ types to Unreal Engine types with the exact same binary representation. Here for instance, boost::geometry’s point\_xy and FVector2D. I don’t see why th…

---

## [Unable to sync actors in world partition map](https://forums.unrealengine.com/t/unable-to-sync-actors-in-world-partition-map/2124197)

<div class="topic-metadata">

**Author:** [@ysh11o](https://forums.unrealengine.com/u/ysh11o)\
**Replies:** 0\
**Last updated:** [November 15, 2024, 8:26am UTC](https://forums.unrealengine.com/t/unable-to-sync-actors-in-world-partition-map/2124197 "2024-11-15T08:26:21Z")

</div>

Hello, I have only made an online flight game demo with a separate server. I need to generate some target actors on the separate server. However, after using the world partition map, the actors far away from the PlayerPa…

---

## [Compile error going from 5.4 to 5.5](https://forums.unrealengine.com/t/compile-error-going-from-5-4-to-5-5/2122994)

<div class="topic-metadata">

**Author:** [@Undead\_Studios](https://forums.unrealengine.com/u/Undead_Studios)\
**Replies:** 2\
**Last updated:** [November 15, 2024, 6:31am UTC](https://forums.unrealengine.com/t/compile-error-going-from-5-4-to-5-5/2122994 "2024-11-15T06:31:01Z")

</div>

Hi all, Getting this error when trying to compile for 5.5 1\>E:\\Unreal\\Engine\\UE\_5.5\\Engine\\Source\\Runtime\\CoreUObject\\Public\\Templates\\Casts.h(126): error C2338: static\_assert failed: ‘Attempting to use Cast\<\> on a typ…

---

## [How to access current state of FFrontendFilters in all open content browsers?](https://forums.unrealengine.com/t/how-to-access-current-state-of-ffrontendfilters-in-all-open-content-browsers/2123456)

<div class="topic-metadata">

**Author:** [@TheBeardedBerry](https://forums.unrealengine.com/u/TheBeardedBerry)\
**Replies:** 0\
**Last updated:** [November 14, 2024, 10:37pm UTC](https://forums.unrealengine.com/t/how-to-access-current-state-of-ffrontendfilters-in-all-open-content-browsers/2123456 "2024-11-14T22:37:24Z")

</div>

So, for a plugin I’m working on I’d like to be able to query the current active filters in all Content Browsers. Ive been hunting around in the source for a bit and am scratching my head regarding how I am supposed to a…

---

## [how to make a c++ folder for a sub module](https://forums.unrealengine.com/t/how-to-make-a-c-folder-for-a-sub-module/2118249)

<div class="topic-metadata">

**Author:** [@JulioJerez](https://forums.unrealengine.com/u/JulioJerez)\
**Replies:** 1\
**Last updated:** [November 14, 2024, 7:23pm UTC](https://forums.unrealengine.com/t/how-to-make-a-c-folder-for-a-sub-module/2118249 "2024-11-14T19:23:24Z")

</div>

Hello, I have a plugin that started out as a runtime module. Now I broke it into two parts, a Runtime and an editor module. I try doing this manually and spend several days on futile wild goose chases, until I finall…

---

## [Click Enter in the CommonButtonBase does not trigger Navigation Accept, but other Accept keys can trigger.](https://forums.unrealengine.com/t/click-enter-in-the-commonbuttonbase-does-not-trigger-navigation-accept-but-other-accept-keys-can-trigger/2122687)

<div class="topic-metadata">

**Author:** [@user\_eddc475efd43efc2e3aff2ab6d140ebc5d1abc26f0a7ab14ad5e3c](https://forums.unrealengine.com/u/user_eddc475efd43efc2e3aff2ab6d140ebc5d1abc26f0a7ab14ad5e3c)\
**Replies:** 0\
**Last updated:** [November 14, 2024, 3:45pm UTC](https://forums.unrealengine.com/t/click-enter-in-the-commonbuttonbase-does-not-trigger-navigation-accept-but-other-accept-keys-can-trigger/2122687 "2024-11-14T15:45:35Z")

</div>

Click Enter in the CommonButtonBase game does not trigger Navigation Accept, but other Accept keys can trigger. I thought something else was blocking Enter,But by removing Enter from KeyActionRules, UMG can get Enter i…

---

## [Tons of errors when compiling new empty cpp project, newest unreal. Please help](https://forums.unrealengine.com/t/tons-of-errors-when-compiling-new-empty-cpp-project-newest-unreal-please-help/2122267)

<div class="topic-metadata">

**Author:** [@mighty\_ganesh](https://forums.unrealengine.com/u/mighty_ganesh)\
**Replies:** 0\
**Last updated:** [November 14, 2024, 12:02pm UTC](https://forums.unrealengine.com/t/tons-of-errors-when-compiling-new-empty-cpp-project-newest-unreal-please-help/2122267 "2024-11-14T12:02:02Z")

</div>

So i get tons of errors like in the screenshot. When I try to update those packages in NuGet manager updates fail… Anyone knows how to deal with this? Also How can I disable those tests that run with build it seems they …

---

## [Building from source and create precompiled intermediate files for the plugins](https://forums.unrealengine.com/t/building-from-source-and-create-precompiled-intermediate-files-for-the-plugins/1543284)

<div class="topic-metadata">

**Author:** [@JanHxH\_de](https://forums.unrealengine.com/u/JanHxH_de)\
**Replies:** 1\
**Last updated:** [November 9, 2024, 2:25pm UTC](https://forums.unrealengine.com/t/building-from-source-and-create-precompiled-intermediate-files-for-the-plugins/1543284 "2024-11-09T14:25:03Z")

</div>

Hi, i can successfully build the engine from source with VS 2022 for win and linux. What I still need is that the plugins get the precompiled manifest files in the Intermediate folder. Can someone hint me how to do tha…

---

## [Replace a C++ Native Component with a Derived class](https://forums.unrealengine.com/t/replace-a-c-native-component-with-a-derived-class/262230)

<div class="topic-metadata">

**Author:** [@MDSRS](https://forums.unrealengine.com/u/MDSRS)\
**Replies:** 9\
**Last updated:** [November 14, 2024, 4:18am UTC](https://forums.unrealengine.com/t/replace-a-c-native-component-with-a-derived-class/262230 "2024-11-14T04:18:36Z")

</div>

Hey, I’m trying to figure out how on earth to solve this gracefully - I need to replace a Native Component with a Blueprint derived class. Lets say we have: UCLASS() class Foo : public AActor { ... UPROPERTY…

---

## [How to compile a project from the command line](https://forums.unrealengine.com/t/how-to-compile-a-project-from-the-command-line/2114882)

<div class="topic-metadata">

**Author:** [@kafok](https://forums.unrealengine.com/u/kafok)\
**Replies:** 2\
**Last updated:** [November 13, 2024, 8:31pm UTC](https://forums.unrealengine.com/t/how-to-compile-a-project-from-the-command-line/2114882 "2024-11-13T20:31:25Z")

</div>

Hi, I’m learning Unreal and for my test project I’m using a git repository to simulate an environment as professional as possible and I was going to make a script to generate the project files after the “git clone” and t…

---

## [Sending large array via RPC breaks other actors replication](https://forums.unrealengine.com/t/sending-large-array-via-rpc-breaks-other-actors-replication/2120287)

<div class="topic-metadata">

**Author:** [@PazDim](https://forums.unrealengine.com/u/PazDim)\
**Replies:** 1\
**Last updated:** [November 13, 2024, 8:25pm UTC](https://forums.unrealengine.com/t/sending-large-array-via-rpc-breaks-other-actors-replication/2120287 "2024-11-13T20:25:14Z")

</div>

Hi. I have a problem with large data replication. I generate my level procedurally in runtime (with texture, with player’s map, foliage etc) and I want to replicate it to client. I started from player’s map texture. It …

---

## [Can I Create a Static Mesh in Content Browser via code](https://forums.unrealengine.com/t/can-i-create-a-static-mesh-in-content-browser-via-code/2117415)

<div class="topic-metadata">

**Author:** [@XrayHouse1](https://forums.unrealengine.com/u/XrayHouse1)\
**Replies:** 3\
**Last updated:** [November 13, 2024, 7:33pm UTC](https://forums.unrealengine.com/t/can-i-create-a-static-mesh-in-content-browser-via-code/2117415 "2024-11-13T19:33:19Z")

</div>

Hi there, I have created a static mesh in blueprint via geometry script. I wonder if it is possible to save the mesh as an unreal asset and how. Either in blueprint or c++. Thanks for any help.

---

## [Why is my Function not being called on button click? ](https://forums.unrealengine.com/t/why-is-my-function-not-being-called-on-button-click/2120446)

<div class="topic-metadata">

**Author:** [@CoolenPudding](https://forums.unrealengine.com/u/CoolenPudding)\
**Replies:** 0\
**Last updated:** [November 13, 2024, 4:35pm UTC](https://forums.unrealengine.com/t/why-is-my-function-not-being-called-on-button-click/2120446 "2024-11-13T16:35:31Z")

</div>

This is my project but for some reason my join server function is not called when I click the button on my WBP. The debug log always shows: LogTemp: Warning: Attempting to join a session… LogTemp: Warning: No se…

---

## [Struggling with movement input direction](https://forums.unrealengine.com/t/struggling-with-movement-input-direction/2120368)

<div class="topic-metadata">

**Author:** [@Phteven28](https://forums.unrealengine.com/u/Phteven28)\
**Replies:** 1\
**Last updated:** [November 13, 2024, 4:18pm UTC](https://forums.unrealengine.com/t/struggling-with-movement-input-direction/2120368 "2024-11-13T16:18:41Z")

</div>

Hey I’m trying to have the player rotate to the movement input direction upon initiating the animation. I saw another post with this framework but didn’t understand how they were getting “MovementInputDirection”. htt…

---

## [How to use IVideoRecordingSystem?](https://forums.unrealengine.com/t/how-to-use-ivideorecordingsystem/509396)

<div class="topic-metadata">

**Author:** [@JXTD](https://forums.unrealengine.com/u/JXTD)\
**Replies:** 2\
**Last updated:** [November 13, 2024, 4:07pm UTC](https://forums.unrealengine.com/t/how-to-use-ivideorecordingsystem/509396 "2024-11-13T16:07:11Z")

</div>

void AMyPawn::StartRecord(const FString& Str) { IVideoRecordingSystem\* Video = IPlatformFeaturesModule::Get().GetVideoRecordingSystem(); FVideoRecordingParameters Param; Param.RecordingLengthSeconds = 700; Video-\>En…

---

## [Physics constraint with variable length](https://forums.unrealengine.com/t/physics-constraint-with-variable-length/118323)

<div class="topic-metadata">

**Author:** [@Andy\_rst](https://forums.unrealengine.com/u/Andy_rst)\
**Replies:** 2\
**Last updated:** [November 13, 2024, 3:34pm UTC](https://forums.unrealengine.com/t/physics-constraint-with-variable-length/118323 "2024-11-13T15:34:55Z")

</div>

Hi I trying to implement rope system with variable length. Basically this is a crane which can move cargo by upward or downward. For making a Crane i need “rope” with variable length. I try to make with Physical Constra…

---

## [How to remove LiveCoding Right Bottom Notifications?](https://forums.unrealengine.com/t/how-to-remove-livecoding-right-bottom-notifications/1877027)

<div class="topic-metadata">

**Author:** [@PlayTimeUnreal](https://forums.unrealengine.com/u/PlayTimeUnreal)\
**Replies:** 16\
**Last updated:** [November 13, 2024, 1:46pm UTC](https://forums.unrealengine.com/t/how-to-remove-livecoding-right-bottom-notifications/1877027 "2024-11-13T13:46:58Z")

</div>

Hello, I just learn Unreal. When I learn and practice to use C++, I get annoying popup like this: It also show when Unreal editor hide: I try to look “clear” button but not found, right click also not show anyth…

---

## [How to use boost::geometry in UE5?](https://forums.unrealengine.com/t/how-to-use-boost-geometry-in-ue5/2119401)

<div class="topic-metadata">

**Author:** [@OctoberIC](https://forums.unrealengine.com/u/OctoberIC)\
**Replies:** 1\
**Last updated:** [November 13, 2024, 7:33am UTC](https://forums.unrealengine.com/t/how-to-use-boost-geometry-in-ue5/2119401 "2024-11-13T07:33:25Z")

</div>

The C++ library Boost is natively located in : C:\\Program Files\\Epic Games\\UE\_5.4\\Engine\\Source\\ThirdParty\\Boost Adding “Boost” to the build.cs public dependencies and rebuilding doesn’t throw exceptions, but I get a l…

---

## [机场数字孪生开发和部署](https://forums.unrealengine.com/t/topic/2119351)

<div class="topic-metadata">

**Author:** [@ubq119](https://forums.unrealengine.com/u/ubq119)\
**Replies:** 0\
**Last updated:** [November 13, 2024, 3:36am UTC](https://forums.unrealengine.com/t/topic/2119351 "2024-11-13T03:36:52Z")

</div>

有意向基于UE进行机场数字孪生开发和部署，诚邀合作。 邮件1810309936@qq.com

---

## [Data files and paths](https://forums.unrealengine.com/t/data-files-and-paths/62558)

<div class="topic-metadata">

**Author:** [@lordGoldemort](https://forums.unrealengine.com/u/lordGoldemort)\
**Replies:** 3\
**Last updated:** [November 12, 2024, 6:48pm UTC](https://forums.unrealengine.com/t/data-files-and-paths/62558 "2024-11-12T18:48:08Z")

</div>

In the game I’m working on, there will be a LOT of data - textual and otherwise - that needs to be stored in asset files, in XML. I’ve made a “Data” subfolder, and I can hardwire a path in the FXmlFile( FString path ) …

---

## [FScopeLock Lock(&CriticalSection) sometimes causes EXCEPTION\_ACCESS\_VIOLATION.](https://forums.unrealengine.com/t/fscopelock-lock-criticalsection-sometimes-causes-exception-access-violation/2118482)

<div class="topic-metadata">

**Author:** [@LuckyRapidflower](https://forums.unrealengine.com/u/LuckyRapidflower)\
**Replies:** 0\
**Last updated:** [November 12, 2024, 6:39pm UTC](https://forums.unrealengine.com/t/fscopelock-lock-criticalsection-sometimes-causes-exception-access-violation/2118482 "2024-11-12T18:39:39Z")

</div>

Here is the situation: I have a manager class that is a UObject with a TMap and an FCriticalSection. The manager class has a function that edits the TMap and sets up a timer for every new entry added to the TMap. The fu…

---

## [SnapTap Implementation](https://forums.unrealengine.com/t/snaptap-implementation/2118425)

<div class="topic-metadata">

**Author:** [@Harkyie](https://forums.unrealengine.com/u/Harkyie)\
**Replies:** 0\
**Last updated:** [November 12, 2024, 6:11pm UTC](https://forums.unrealengine.com/t/snaptap-implementation/2118425 "2024-11-12T18:11:11Z")

</div>

Hello, I’m trying to implement some functionality that should work like SnapTap. I’m using this code as a base: void APlayerCharacter::Move(const FInputActionValue& Value) { FVector2D InputVector = Value.Get\<FVector2D\>(…

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

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