# C++

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

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

**Page:** 59

---

## [The mirroring of the objects in the sub levels](https://forums.unrealengine.com/t/the-mirroring-of-the-objects-in-the-sub-levels/2280524)

<div class="topic-metadata">

**Author:** [@Traveler3114](https://forums.unrealengine.com/u/Traveler3114)\
**Replies:** 0\
**Last updated:** [January 16, 2025, 3:39pm UTC](https://forums.unrealengine.com/t/the-mirroring-of-the-objects-in-the-sub-levels/2280524 "2025-01-16T15:39:01Z")

</div>

I am trying to create a game where player can teleport between two maps by setting one sublevel visible and other invisible which I managed to do by creating a persistent map and adding to sublevels to it or two maps. Ea…

---

## [is there date time that considered leap second?](https://forums.unrealengine.com/t/is-there-date-time-that-considered-leap-second/2279775)

<div class="topic-metadata">

**Author:** [@user\_5f9e3985ab6732a3446d52f173a942dd77b1f507939e394183dd06](https://forums.unrealengine.com/u/user_5f9e3985ab6732a3446d52f173a942dd77b1f507939e394183dd06)\
**Replies:** 1\
**Last updated:** [January 16, 2025, 7:50am UTC](https://forums.unrealengine.com/t/is-there-date-time-that-considered-leap-second/2279775 "2025-01-16T07:50:00Z")

</div>

hello. trying to find leap second in unreal engine but FDateTime is not considered leap second. std::chrono::utc\_clock is considered leap seconds but it is only available c++ 20, so can’t use linux. how can i find Dat…

---

## [Issue with FText::FromStringTable after updating from Unreal 5.4.4 to Unreal 5.5.1](https://forums.unrealengine.com/t/issue-with-ftext-fromstringtable-after-updating-from-unreal-5-4-4-to-unreal-5-5-1/2275027)

<div class="topic-metadata">

**Author:** [@Fraps2020](https://forums.unrealengine.com/u/Fraps2020)\
**Replies:** 2\
**Last updated:** [January 15, 2025, 11:38pm UTC](https://forums.unrealengine.com/t/issue-with-ftext-fromstringtable-after-updating-from-unreal-5-4-4-to-unreal-5-5-1/2275027 "2025-01-15T23:38:52Z")

</div>

Hi! In the project I’m working on, I do use a set of string tables stored in csv files. To retrieve a specific string, I’ve been using FromStringTable, as in the following code (UpdateMessage is a function I’ve defined)…

---

## [Issue with Dot Product](https://forums.unrealengine.com/t/issue-with-dot-product/2277196)

<div class="topic-metadata">

**Author:** [@Phteven28](https://forums.unrealengine.com/u/Phteven28)\
**Replies:** 4\
**Last updated:** [January 15, 2025, 11:00am UTC](https://forums.unrealengine.com/t/issue-with-dot-product/2277196 "2025-01-15T11:00:36Z")

</div>

Hey, I’m trying to get the angle between the AI’s forward vector and the player location. Came across some posts about Dot Products. I’m not sure what is wrong (The values are in the top left corner of the screenshots) …

---

## [How to include and use UPlayMontageCallbackProxy::CreateProxyObjectForPlayMontage in C++?](https://forums.unrealengine.com/t/how-to-include-and-use-uplaymontagecallbackproxy-createproxyobjectforplaymontage-in-c/1353770)

<div class="topic-metadata">

**Author:** [@brain56](https://forums.unrealengine.com/u/brain56)\
**Replies:** 3\
**Last updated:** [January 15, 2025, 10:31am UTC](https://forums.unrealengine.com/t/how-to-include-and-use-uplaymontagecallbackproxy-createproxyobjectforplaymontage-in-c/1353770 "2025-01-15T10:31:05Z")

</div>

I want to play my UAnimMontage via C++, and in particular, want to make use of the conveniences of UPlayMontageCallbackProxy. Looks like in theory, I can use UPlayMontageCallbackProxy::CreateProxyObjectForPlayMontage, b…

---

## [Curve asset null while trying to create Curve for Timeline](https://forums.unrealengine.com/t/curve-asset-null-while-trying-to-create-curve-for-timeline/1654625)

<div class="topic-metadata">

**Author:** [@OGobo](https://forums.unrealengine.com/u/OGobo)\
**Replies:** 1\
**Last updated:** [January 15, 2025, 9:48am UTC](https://forums.unrealengine.com/t/curve-asset-null-while-trying-to-create-curve-for-timeline/1654625 "2025-01-15T09:48:50Z")

</div>

I’ve been trying to replicate some of the blueprint functions in my project, and I’m working on the crouch function now, so I was following a tutorial on how to create a Timeline and add a Curve to it. The problem now i…

---

## [How can I create custom categories in GameUserSettings.ini?](https://forums.unrealengine.com/t/how-can-i-create-custom-categories-in-gameusersettings-ini/2276046)

<div class="topic-metadata">

**Author:** [@Vigilant](https://forums.unrealengine.com/u/Vigilant)\
**Replies:** 3\
**Last updated:** [January 15, 2025, 12:32am UTC](https://forums.unrealengine.com/t/how-can-i-create-custom-categories-in-gameusersettings-ini/2276046 "2025-01-15T00:32:56Z")

</div>

I’m trying to separate my settings into specific categories in GameUserSettings.ini for organization. I’ve got the default GameUserSettings to change to my custom one but I’m not seeing the ‘audio’ category that I listed…

---

## [C++ files disappear from UE interface / scene](https://forums.unrealengine.com/t/c-files-disappear-from-ue-interface-scene/509385)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_165a568f1](https://forums.unrealengine.com/u/anonymous_user_165a568f1)\
**Replies:** 12\
**Last updated:** [January 14, 2025, 3:56pm UTC](https://forums.unrealengine.com/t/c-files-disappear-from-ue-interface-scene/509385 "2025-01-14T15:56:12Z")

</div>

Hi! I’m using UE5 Preview with Visual Studio 2022, so maybe that’s the problem, although I’m not 100% sure. So I can create and edit C++ files and I can save the project without any problem. I closed UE, and 5 minutes…

---

## [Memory tracking - FMalloc Unused](https://forums.unrealengine.com/t/memory-tracking-fmalloc-unused/2276751)

<div class="topic-metadata">

**Author:** [@stephLVCim](https://forums.unrealengine.com/u/stephLVCim)\
**Replies:** 0\
**Last updated:** [January 14, 2025, 3:55pm UTC](https://forums.unrealengine.com/t/memory-tracking-fmalloc-unused/2276751 "2025-01-14T15:55:14Z")

</div>

Hello, first a bit of context : we are developing some kind of tool (in Unreal Editor) to import large terrain data in a specific format, create some static assets / textures / materials … and save everything as Unreal …

---

## [How to use set world location with sweep to make actors move smoothly across uneven ground?](https://forums.unrealengine.com/t/how-to-use-set-world-location-with-sweep-to-make-actors-move-smoothly-across-uneven-ground/2276137)

<div class="topic-metadata">

**Author:** [@Supermatta321](https://forums.unrealengine.com/u/Supermatta321)\
**Replies:** 4\
**Last updated:** [January 14, 2025, 1:18pm UTC](https://forums.unrealengine.com/t/how-to-use-set-world-location-with-sweep-to-make-actors-move-smoothly-across-uneven-ground/2276137 "2025-01-14T13:18:20Z")

</div>

Any suggestions for how to use set world location on my vehicle actors and use the sweep collision to make it move smoothly across ground?

---

## [\[UE5.4/5.5\] C++ Guide on how to load classic map and level instances. Looking for Feedback.](https://forums.unrealengine.com/t/ue5-4-5-5-c-guide-on-how-to-load-classic-map-and-level-instances-looking-for-feedback/2043484)

<div class="topic-metadata">

**Author:** [@AlienRenders](https://forums.unrealengine.com/u/AlienRenders)\
**Replies:** 3\
**Last updated:** [December 19, 2024, 9:49pm UTC](https://forums.unrealengine.com/t/ue5-4-5-5-c-guide-on-how-to-load-classic-map-and-level-instances-looking-for-feedback/2043484 "2024-12-19T21:49:53Z")

</div>

NOTE: This guide NOT for Level Streaming, NOT for World Partition and NOT for dynamic Level Instances. I’ve had quite the dreadful time trying to figure out when a regular level is loaded. We’re talking a classic non st…

---

## [\[Odessey\] Creating my own G-Buffer in UE4](https://forums.unrealengine.com/t/odessey-creating-my-own-g-buffer-in-ue4/9082)

<div class="topic-metadata">

**Author:** [@Temaran](https://forums.unrealengine.com/u/Temaran)\
**Replies:** 112\
**Last updated:** [January 13, 2025, 8:21pm UTC](https://forums.unrealengine.com/t/odessey-creating-my-own-g-buffer-in-ue4/9082 "2025-01-13T20:21:27Z")

</div>

Hello! You can find my fork at: https://.com//UnrealEngine.git on the CustomTagBuffer branch (4.3) and 4.4CustomTagBuffer (4.4) My next adventure in UE4 will be in the Rendering part of the code landscape. I’ve be…

---

## [Errors when building engine from source](https://forums.unrealengine.com/t/errors-when-building-engine-from-source/2266714)

<div class="topic-metadata">

**Author:** [@BenWeno](https://forums.unrealengine.com/u/BenWeno)\
**Replies:** 2\
**Last updated:** [January 13, 2025, 7:44pm UTC](https://forums.unrealengine.com/t/errors-when-building-engine-from-source/2266714 "2025-01-13T19:44:33Z")

</div>

I’ve been trying to build the engine from source using the guide in the readme, but I’m getting an error when running GenerateProjectFiles.bat C:\\Users\\bweno\\Documents\\NvidiaUnreal\\UnrealEngine\\Engine\\Source\\Programs\\Sh…

---

## [Can I change the damping value of a Shape in a Physics Asset at runtime?](https://forums.unrealengine.com/t/can-i-change-the-damping-value-of-a-shape-in-a-physics-asset-at-runtime/2275012)

<div class="topic-metadata">

**Author:** [@hysecha](https://forums.unrealengine.com/u/hysecha)\
**Replies:** 0\
**Last updated:** [January 13, 2025, 4:17pm UTC](https://forums.unrealengine.com/t/can-i-change-the-damping-value-of-a-shape-in-a-physics-asset-at-runtime/2275012 "2025-01-13T16:17:09Z")

</div>

I have set up some damping values for each of the shapes on my character’s Ragdoll, but I want to change them for some specific situations that arise during the game. While doing some research, the first thing that caug…

---

## [Behavior Tree and my Custom AI controller only moving one pawn and no others](https://forums.unrealengine.com/t/behavior-tree-and-my-custom-ai-controller-only-moving-one-pawn-and-no-others/2269728)

<div class="topic-metadata">

**Author:** [@unleashedcode](https://forums.unrealengine.com/u/unleashedcode)\
**Replies:** 2\
**Last updated:** [January 13, 2025, 11:54am UTC](https://forums.unrealengine.com/t/behavior-tree-and-my-custom-ai-controller-only-moving-one-pawn-and-no-others/2269728 "2025-01-13T11:54:56Z")

</div>

I have made an AI Controller for my pawns which runs the behavior tree on BeginPlay(). The BehaviorTree seems to work but only one of my pawns move. I have checked to make sure ALL my pawns are utilising the AIController…

---

## [How to link windows libs properly?](https://forums.unrealengine.com/t/how-to-link-windows-libs-properly/502558)

<div class="topic-metadata">

**Author:** [@dmayola](https://forums.unrealengine.com/u/dmayola)\
**Replies:** 3\
**Last updated:** [January 13, 2025, 10:14am UTC](https://forums.unrealengine.com/t/how-to-link-windows-libs-properly/502558 "2025-01-13T10:14:36Z")

</div>

Hello, I’ve been building a library that requires some libs from windows. I managed to make it work but I’m struggling to find a proper solution. PublicAdditionalLibraries.Add("C:/Program Files (x86)/Microsoft …

---

## [Can instance changes be applied to a Blueprint with an Instanced Struct or Instanced Object property?](https://forums.unrealengine.com/t/can-instance-changes-be-applied-to-a-blueprint-with-an-instanced-struct-or-instanced-object-property/2267480)

<div class="topic-metadata">

**Author:** [@SamEngageSoft](https://forums.unrealengine.com/u/SamEngageSoft)\
**Replies:** 1\
**Last updated:** [January 12, 2025, 10:30am UTC](https://forums.unrealengine.com/t/can-instance-changes-be-applied-to-a-blueprint-with-an-instanced-struct-or-instanced-object-property/2267480 "2025-01-12T10:30:55Z")

</div>

When I try to apply changes from an instance of an Actor Blueprint to the original Blueprint in the editor (by clicking “Apply Instance Changes to Blueprint”), any modified Instanced Struct Properties are reset to None i…

---

## [project killing errors but no errors](https://forums.unrealengine.com/t/project-killing-errors-but-no-errors/2074963)

<div class="topic-metadata">

**Author:** [@lazyFrond](https://forums.unrealengine.com/u/lazyFrond)\
**Replies:** 13\
**Last updated:** [December 5, 2024, 11:26am UTC](https://forums.unrealengine.com/t/project-killing-errors-but-no-errors/2074963 "2024-12-05T11:26:27Z")

</div>

I’m building a project heavely in c++ everything is going fine. the code is compiling in visual studio as well as the editor, everything is good. Somehow an error occurs. No problem I’ll just backtrack. There aren’t any …

---

## [Making a Custom DataAsset property depend on engine assets in c++](https://forums.unrealengine.com/t/making-a-custom-dataasset-property-depend-on-engine-assets-in-c/2270889)

<div class="topic-metadata">

**Author:** [@Mayurkamat16](https://forums.unrealengine.com/u/Mayurkamat16)\
**Replies:** 0\
**Last updated:** [January 11, 2025, 7:26am UTC](https://forums.unrealengine.com/t/making-a-custom-dataasset-property-depend-on-engine-assets-in-c/2270889 "2025-01-11T07:26:50Z")

</div>

I have a custom DataAsset where one of the properties is a custom Struct. This Structure stores a reference to UAnimSequence and has other private members to store the transforms of the bones and other data which directl…

---

## [How to move an element on an SWidget via code?](https://forums.unrealengine.com/t/how-to-move-an-element-on-an-swidget-via-code/1587230)

<div class="topic-metadata">

**Author:** [@lazyFrond](https://forums.unrealengine.com/u/lazyFrond)\
**Replies:** 1\
**Last updated:** [January 11, 2025, 1:28am UTC](https://forums.unrealengine.com/t/how-to-move-an-element-on-an-swidget-via-code/1587230 "2025-01-11T01:28:12Z")

</div>

moving element, or whole seperate widget I layer over the widget containing the unmoving stuff and then move around the whole widget? delete and remake whole seperate widget every frame with gradualy changing position to…

---

## [How to reference a chooser table in c++ ?](https://forums.unrealengine.com/t/how-to-reference-a-chooser-table-in-c/2061758)

<div class="topic-metadata">

**Author:** [@npnp](https://forums.unrealengine.com/u/npnp)\
**Replies:** 1\
**Last updated:** [January 10, 2025, 8:20pm UTC](https://forums.unrealengine.com/t/how-to-reference-a-chooser-table-in-c/2061758 "2025-01-10T20:20:35Z")

</div>

Hello, I recently checked the game animation sample, and I saw they used a chooser table to get the best matching animation. I am now working on a tile-based game, where each tile will have a different mesh based on it…

---

## [FName performance question](https://forums.unrealengine.com/t/fname-performance-question/2269340)

<div class="topic-metadata">

**Author:** [@JAuzanneau](https://forums.unrealengine.com/u/JAuzanneau)\
**Replies:** 1\
**Last updated:** [January 10, 2025, 5:16pm UTC](https://forums.unrealengine.com/t/fname-performance-question/2269340 "2025-01-10T17:16:59Z")

</div>

Hi, I wrote a basic function that ensures all component names of a given actor are unique, and renames as necessary to enforce it. Here is the code: TSet\<FString\> ExistingNames; // Notice FString TArray\<USceneCompone…

---

## [How to get Sha1 Hmac value from a FString?](https://forums.unrealengine.com/t/how-to-get-sha1-hmac-value-from-a-fstring/390398)

<div class="topic-metadata">

**Author:** [@Kingtem](https://forums.unrealengine.com/u/Kingtem)\
**Replies:** 1\
**Last updated:** [January 10, 2025, 4:07pm UTC](https://forums.unrealengine.com/t/how-to-get-sha1-hmac-value-from-a-fstring/390398 "2025-01-10T16:07:55Z")

</div>

I want to get the hash\_hmac value form a FString. I know php can do it easily like this: $value = hash\_hmac(‘sha1’, $data, $Key, true); But how to do this in UE4?

---

## [Complete Example of UELibrary setup + extending the API](https://forums.unrealengine.com/t/complete-example-of-uelibrary-setup-extending-the-api/1257170)

<div class="topic-metadata">

**Author:** [@PaliasotMta](https://forums.unrealengine.com/u/PaliasotMta)\
**Replies:** 1\
**Last updated:** [January 10, 2025, 4:18am UTC](https://forums.unrealengine.com/t/complete-example-of-uelibrary-setup-extending-the-api/1257170 "2025-01-10T04:18:08Z")

</div>

Complete Example of building and extending UELibrary I’ve spent a lot of time figuring our how to set up UELibrary for my custom project. The official documentation is helpful but unfortunately incomplete. I’ve compiled …

---

## [Serialization/Deserialization of reference to Data Asset for save file?](https://forums.unrealengine.com/t/serialization-deserialization-of-reference-to-data-asset-for-save-file/2268065)

<div class="topic-metadata">

**Author:** [@ADIAN](https://forums.unrealengine.com/u/ADIAN)\
**Replies:** 3\
**Last updated:** [January 10, 2025, 1:49am UTC](https://forums.unrealengine.com/t/serialization-deserialization-of-reference-to-data-asset-for-save-file/2268065 "2025-01-10T01:49:32Z")

</div>

I have inventory that contains Array of references to DataAssets, saving to sav file and loading works fine. But when i rename/move the data asset, then for players sav files with old references will not be valid. How ca…

---

## [Turn-based combat - turn starts for two allies](https://forums.unrealengine.com/t/turn-based-combat-turn-starts-for-two-allies/2254367)

<div class="topic-metadata">

**Author:** [@Wuka1](https://forums.unrealengine.com/u/Wuka1)\
**Replies:** 16\
**Last updated:** [January 9, 2025, 11:27pm UTC](https://forums.unrealengine.com/t/turn-based-combat-turn-starts-for-two-allies/2254367 "2025-01-09T23:27:30Z")

</div>

I am making a turn-based RPG game in UE5 with C++ (with 2D sprites). Think of something like Darkest Dungeon but with memes and no procedural generation. For the most part my combat system works, but sometimes the turn t…

---

## [interaction linetrace open several doors in unreal engine 5](https://forums.unrealengine.com/t/interaction-linetrace-open-several-doors-in-unreal-engine-5/2242197)

<div class="topic-metadata">

**Author:** [@Jacob.Gordan](https://forums.unrealengine.com/u/Jacob.Gordan)\
**Replies:** 14\
**Last updated:** [January 9, 2025, 7:17pm UTC](https://forums.unrealengine.com/t/interaction-linetrace-open-several-doors-in-unreal-engine-5/2242197 "2025-01-09T19:17:17Z")

</div>

I am working on a project in Unreal Engine 5, where there are cabinets with 2 or more drawers/doors that need to be opened sequentially by pointing the camera at them and pressing the E button. For example, with a singl…

---

## [Adjusting chaos vehicle engine torque using C++](https://forums.unrealengine.com/t/adjusting-chaos-vehicle-engine-torque-using-c/2268068)

<div class="topic-metadata">

**Author:** [@funkycoyote](https://forums.unrealengine.com/u/funkycoyote)\
**Replies:** 0\
**Last updated:** [January 9, 2025, 4:33pm UTC](https://forums.unrealengine.com/t/adjusting-chaos-vehicle-engine-torque-using-c/2268068 "2025-01-09T16:33:13Z")

</div>

Is there a way to adjust engine torque using C++? I have been looking and can’t find anything, but there is a blueprint so I assume there is a way. If there is, could yall also give me an example? I am new to this, and i…

---

## [Unreal Engine support on Telechips](https://forums.unrealengine.com/t/unreal-engine-support-on-telechips/2268004)

<div class="topic-metadata">

**Author:** [@HParihar88](https://forums.unrealengine.com/u/HParihar88)\
**Replies:** 0\
**Last updated:** [January 9, 2025, 3:59pm UTC](https://forums.unrealengine.com/t/unreal-engine-support-on-telechips/2268004 "2025-01-09T15:59:42Z")

</div>

Can Unreal Engine Project (Embedded HMI) Run on Telechips chips/hardware? If yes, could anyone please share details of the supported Telechips boards

---

## [How can I replace a SceneComponent with another and keep the same name](https://forums.unrealengine.com/t/how-can-i-replace-a-scenecomponent-with-another-and-keep-the-same-name/2266112)

<div class="topic-metadata">

**Author:** [@JAuzanneau](https://forums.unrealengine.com/u/JAuzanneau)\
**Replies:** 1\
**Last updated:** [January 9, 2025, 1:22pm UTC](https://forums.unrealengine.com/t/how-can-i-replace-a-scenecomponent-with-another-and-keep-the-same-name/2266112 "2025-01-09T13:22:17Z")

</div>

Here is what I’m trying to achieve: Parent Component \< Replace with another Component (subclass of USceneComponent) Child1 Child2 What is the correct way to destroy the old component, and create a new on…

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

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