# C++

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

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

**Page:** 77

---

## [Class Icons](https://forums.unrealengine.com/t/class-icons/303037)

<div class="topic-metadata">

**Author:** [@FortuneStudios](https://forums.unrealengine.com/u/FortuneStudios)\
**Replies:** 7\
**Last updated:** [October 14, 2024, 3:41pm UTC](https://forums.unrealengine.com/t/class-icons/303037 "2024-10-14T15:41:48Z")

</div>

Hey, Just wondering if there is a way in C++ to create a thumbnail for my class, so if i were to search for them i can see a thumbnail? Thanks

---

## [CDO is not an outer for soft object property. How is that?](https://forums.unrealengine.com/t/cdo-is-not-an-outer-for-soft-object-property-how-is-that/2063279)

<div class="topic-metadata">

**Author:** [@PREDALIEN](https://forums.unrealengine.com/u/PREDALIEN)\
**Replies:** 1\
**Last updated:** [October 14, 2024, 9:40am UTC](https://forums.unrealengine.com/t/cdo-is-not-an-outer-for-soft-object-property-how-is-that/2063279 "2024-10-14T09:40:17Z")

</div>

Hi all. I’m making an improved system for choosing a default value for soft references (actors and components)(The problem with search is still relevant…). The actor references work as intended (I think), but there is …

---

## [How to setup Visual Studio Code to work with Unreal Engine 5.2 to enable code rebuilds](https://forums.unrealengine.com/t/how-to-setup-visual-studio-code-to-work-with-unreal-engine-5-2-to-enable-code-rebuilds/1242690)

<div class="topic-metadata">

**Author:** [@PiotrTrochim](https://forums.unrealengine.com/u/PiotrTrochim)\
**Replies:** 1\
**Last updated:** [October 13, 2024, 2:00pm UTC](https://forums.unrealengine.com/t/how-to-setup-visual-studio-code-to-work-with-unreal-engine-5-2-to-enable-code-rebuilds/1242690 "2024-10-13T14:00:58Z")

</div>

I’m using Unreal Engine 5.2.1. I’ve been trying to use Visual Studio Code as the default editor, but I found out that key features are not supported out of the box: I can’t rebuild the code while the editor is running …

---

## [Trying to understand the code behind Paper2D](https://forums.unrealengine.com/t/trying-to-understand-the-code-behind-paper2d/71635)

<div class="topic-metadata">

**Author:** [@Rasponien](https://forums.unrealengine.com/u/Rasponien)\
**Replies:** 2\
**Last updated:** [October 13, 2024, 1:07pm UTC](https://forums.unrealengine.com/t/trying-to-understand-the-code-behind-paper2d/71635 "2024-10-13T13:07:23Z")

</div>

Hello! I’m trying to implement some new features for PaperTileset class, which is used to create tiles to create PaperTilemaps later on. I’m not sure, but in my mind PaperTileset has shortage of some neccessary function…

---

## [Keep Character Movement is one direction, free of the camera](https://forums.unrealengine.com/t/keep-character-movement-is-one-direction-free-of-the-camera/2064961)

<div class="topic-metadata">

**Author:** [@Terror12340](https://forums.unrealengine.com/u/Terror12340)\
**Replies:** 3\
**Last updated:** [October 13, 2024, 6:45am UTC](https://forums.unrealengine.com/t/keep-character-movement-is-one-direction-free-of-the-camera/2064961 "2024-10-13T06:45:53Z")

</div>

I use UE5 5.4.4 Hey! I want my first person character to, when sliding, only move where the camera was originally facing, causing the camera to become free to look around, while not changing the direction of the sliding…

---

## [Can someone give me code snippet of how to use TFunction?](https://forums.unrealengine.com/t/can-someone-give-me-code-snippet-of-how-to-use-tfunction/138531)

<div class="topic-metadata">

**Author:** [@rexy729](https://forums.unrealengine.com/u/rexy729)\
**Replies:** 3\
**Last updated:** [October 12, 2024, 8:32pm UTC](https://forums.unrealengine.com/t/can-someone-give-me-code-snippet-of-how-to-use-tfunction/138531 "2024-10-12T20:32:32Z")

</div>

FWebBrowserWindow::GetSource(TFunction\<void(const FString&)\> Callback) const; I need to use GetSource to get html content, does anyone know how to input a correct TFunction ? Thanks. :frowning:

---

## [Host Migration EU5 (EOS) 2023 C++](https://forums.unrealengine.com/t/host-migration-eu5-eos-2023-c/793445)

<div class="topic-metadata">

**Author:** [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Replies:** 26\
**Last updated:** [October 11, 2024, 9:30pm UTC](https://forums.unrealengine.com/t/host-migration-eu5-eos-2023-c/793445 "2024-10-11T21:30:50Z")

</div>

I am looking for updated information about Host Migration. All the forum posts I’ve read are from 2015 or so. And basically it says that at that time there was no simple solution and that you have to implement it by your…

---

## [How to edit UPROPERTIES programatically without knowing the name of the property.](https://forums.unrealengine.com/t/how-to-edit-uproperties-programatically-without-knowing-the-name-of-the-property/2063539)

<div class="topic-metadata">

**Author:** [@Karlovsky120](https://forums.unrealengine.com/u/Karlovsky120)\
**Replies:** 1\
**Last updated:** [October 11, 2024, 2:46pm UTC](https://forums.unrealengine.com/t/how-to-edit-uproperties-programatically-without-knowing-the-name-of-the-property/2063539 "2024-10-11T14:46:58Z")

</div>

I have a project to clean up. There is a bunch of blueprints that have many children, but the values set in those blueprints are wrong. For example, there is a blueprint that represents a generic door. This blueprint is …

---

## [NPC movement on the ceiling](https://forums.unrealengine.com/t/npc-movement-on-the-ceiling/2063081)

<div class="topic-metadata">

**Author:** [@M4yh3m.exe](https://forums.unrealengine.com/u/M4yh3m.exe)\
**Replies:** 3\
**Last updated:** [October 11, 2024, 2:46pm UTC](https://forums.unrealengine.com/t/npc-movement-on-the-ceiling/2063081 "2024-10-11T14:46:27Z")

</div>

Hello everyone, I’m making a multiplayer game and at the moment I’m trying to implement NPC movement on the ceiling, now I’ve implemented the ability for him to end up on the ceiling through MOVE\_Flying, I need to add th…

---

## [PlayerController \<- Actors issue.](https://forums.unrealengine.com/t/playercontroller-actors-issue/2058753)

<div class="topic-metadata">

**Author:** [@o2ciri](https://forums.unrealengine.com/u/o2ciri)\
**Replies:** 1\
**Last updated:** [October 11, 2024, 2:28pm UTC](https://forums.unrealengine.com/t/playercontroller-actors-issue/2058753 "2024-10-11T14:28:29Z")

</div>

Hello guys. I’ve been working on my project for some time now, and I’ve run into a problem that I think is so critical in nature that I’m surprised it works this way. I’m talking about PlayerController initialization h…

---

## [Both virtual and override?](https://forums.unrealengine.com/t/both-virtual-and-override/128079)

<div class="topic-metadata">

**Author:** [@asmaloney](https://forums.unrealengine.com/u/asmaloney)\
**Replies:** 5\
**Last updated:** [October 11, 2024, 1:15pm UTC](https://forums.unrealengine.com/t/both-virtual-and-override/128079 "2024-10-11T13:15:33Z")

</div>

I see in the coding style guide: “Use the virtual and override keywords when declaring an overriding method. When declaring a virtual function in a derived class, that overrides a virtual function in the parent class, y…

---

## [Problem exporting embedded videos into a sequence in Unreal.](https://forums.unrealengine.com/t/problem-exporting-embedded-videos-into-a-sequence-in-unreal/2063400)

<div class="topic-metadata">

**Author:** [@MartinBevacqua](https://forums.unrealengine.com/u/MartinBevacqua)\
**Replies:** 0\
**Last updated:** [October 11, 2024, 1:06pm UTC](https://forums.unrealengine.com/t/problem-exporting-embedded-videos-into-a-sequence-in-unreal/2063400 "2024-10-11T13:06:05Z")

</div>

Hello everyone, I have a problem exporting a sequence I created in Unreal. The videos I incorporated into the scene play in slow motion. Can someone help me? Thank you very much.

---

## [Can I get the SoftAssetChooser Object through asynchronous loading?](https://forums.unrealengine.com/t/can-i-get-the-softassetchooser-object-through-asynchronous-loading/2062748)

<div class="topic-metadata">

**Author:** [@l747369](https://forums.unrealengine.com/u/l747369)\
**Replies:** 2\
**Last updated:** [October 11, 2024, 12:39pm UTC](https://forums.unrealengine.com/t/can-i-get-the-softassetchooser-object-through-asynchronous-loading/2062748 "2024-10-11T12:39:45Z")

</div>

Can I get the SoftAssetChooser Object through asynchronous loading? I see that synchronous loading is used directly here, and there is no asynchronous loading interface. Is there any concern? Will you consider adding an …

---

## [I can't load a level from an external .pak](https://forums.unrealengine.com/t/i-cant-load-a-level-from-an-external-pak/2063200)

<div class="topic-metadata">

**Author:** [@GSM](https://forums.unrealengine.com/u/GSM)\
**Replies:** 0\
**Last updated:** [October 11, 2024, 10:27am UTC](https://forums.unrealengine.com/t/i-cant-load-a-level-from-an-external-pak/2063200 "2024-10-11T10:27:39Z")

</div>

Hi, i can load assets from an external .pak (BP, meshes, materials,…) using this tutorial: But now i try to load a level from a .pak file. I do not find how to do that. How can i adapt the previous tutorial to load …

---

## [Using UCurveFloat returns 0 after 60 seconds](https://forums.unrealengine.com/t/using-ucurvefloat-returns-0-after-60-seconds/2063152)

<div class="topic-metadata">

**Author:** [@TEllershaw](https://forums.unrealengine.com/u/TEllershaw)\
**Replies:** 0\
**Last updated:** [October 11, 2024, 9:51am UTC](https://forums.unrealengine.com/t/using-ucurvefloat-returns-0-after-60-seconds/2063152 "2024-10-11T09:51:25Z")

</div>

Hi, I just wanted to check if I’m using FCurveFloat in the right way. I’m trying to use an UCurveFloat as a simple mathmatical lookup/interpolation data structure. All seems to work OK for about 60 seconds but then sta…

---

## [Cant add a mapping context on Client side](https://forums.unrealengine.com/t/cant-add-a-mapping-context-on-client-side/2061732)

<div class="topic-metadata">

**Author:** [@Ethan-Bitfire](https://forums.unrealengine.com/u/Ethan-Bitfire)\
**Replies:** 1\
**Last updated:** [October 11, 2024, 9:00am UTC](https://forums.unrealengine.com/t/cant-add-a-mapping-context-on-client-side/2061732 "2024-10-11T09:00:27Z")

</div>

I’m trying to set up so that when some ability get activate it should add a new Mapping Context. But it seems like here it only do for the Host/Server and Clients can’t add these mapping in. If Host/Server add a mapping …

---

## [\[Compiler\]Enable Run-Time Type Information](https://forums.unrealengine.com/t/compiler-enable-run-time-type-information/47062)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_8b7ae4131](https://forums.unrealengine.com/u/anonymous_user_8b7ae4131)\
**Replies:** 14\
**Last updated:** [October 10, 2024, 10:46pm UTC](https://forums.unrealengine.com/t/compiler-enable-run-time-type-information/47062 "2024-10-10T22:46:27Z")

</div>

Hey guys, Today I ran into problems using dynamic\_cast with a custom class - API class - for which I got the following error: Severity Code Descript'dynamic\_cast' used on polymorphic type 'Condition' with /GR-; unpred…

---

## [Can UpdateInstanceTransform affect the Custom Float of an ISM? Video:](https://forums.unrealengine.com/t/can-updateinstancetransform-affect-the-custom-float-of-an-ism-video/2061397)

<div class="topic-metadata">

**Author:** [@SophiaWolfie](https://forums.unrealengine.com/u/SophiaWolfie)\
**Replies:** 6\
**Last updated:** [October 10, 2024, 9:11pm UTC](https://forums.unrealengine.com/t/can-updateinstancetransform-affect-the-custom-float-of-an-ism-video/2061397 "2024-10-10T21:11:55Z")

</div>

This is the only line im changing, and this is causing a change in the Custom Float in the material. How is this possible? ISM\_Units-\>UpdateInstanceTransform(CurUnit, UnitTransform, true, true); At first i thought it w…

---

## [Could not find InternalPlayerController.generated.h even though I generated VS files many times](https://forums.unrealengine.com/t/could-not-find-internalplayercontroller-generated-h-even-though-i-generated-vs-files-many-times/2062351)

<div class="topic-metadata">

**Author:** [@Animeliqite](https://forums.unrealengine.com/u/Animeliqite)\
**Replies:** 1\
**Last updated:** [October 10, 2024, 8:49pm UTC](https://forums.unrealengine.com/t/could-not-find-internalplayercontroller-generated-h-even-though-i-generated-vs-files-many-times/2062351 "2024-10-10T20:49:07Z")

</div>

I’m new to C++ and I’m trying to convert my blueprints into C++ files. Apparently there used to be a system called Blueprint Nativization but it was removed starting from UE 5.0. So I have to manually convert them myself…

---

## [Is there a way to detect a gamepad?](https://forums.unrealengine.com/t/is-there-a-way-to-detect-a-gamepad/300603)

<div class="topic-metadata">

**Author:** [@OpticalShadows](https://forums.unrealengine.com/u/OpticalShadows)\
**Replies:** 15\
**Last updated:** [October 10, 2024, 7:11pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-detect-a-gamepad/300603 "2024-10-10T19:11:27Z")

</div>

Is there a way to detect if a controller is connected or is there an event called when a gamepadis connected? Also is there a generic event for getting input from a gamepad(if any button is hit for example)? It would b…

---

## [Way to implement basic functionality (pure C++ classes vs Unreal classes)](https://forums.unrealengine.com/t/way-to-implement-basic-functionality-pure-c-classes-vs-unreal-classes/2057807)

<div class="topic-metadata">

**Author:** [@cpe](https://forums.unrealengine.com/u/cpe)\
**Replies:** 3\
**Last updated:** [October 10, 2024, 4:17pm UTC](https://forums.unrealengine.com/t/way-to-implement-basic-functionality-pure-c-classes-vs-unreal-classes/2057807 "2024-10-10T16:17:29Z")

</div>

Hi! I’m currently working on my first project and trying to solve something like a pool for ingame items that might drop after defeating an enemy. For the moment I’d like to provide some kind of a static “database” for …

---

## [UE 5.3.2 source requires rebuild after every Win11 restart.](https://forums.unrealengine.com/t/ue-5-3-2-source-requires-rebuild-after-every-win11-restart/2061279)

<div class="topic-metadata">

**Author:** [@MrDeblasio1](https://forums.unrealengine.com/u/MrDeblasio1)\
**Replies:** 4\
**Last updated:** [October 10, 2024, 2:48pm UTC](https://forums.unrealengine.com/t/ue-5-3-2-source-requires-rebuild-after-every-win11-restart/2061279 "2024-10-10T14:48:04Z")

</div>

Hi all. I am trying to use a UE5.3.2 source build from Github, but I cannot open blueprint projects after restarting my computer. My best guess is that the binaries are being deleted or not properly stored and are cleane…

---

## [Opus codec not working properly](https://forums.unrealengine.com/t/opus-codec-not-working-properly/492089)

<div class="topic-metadata">

**Author:** [@qinwangking](https://forums.unrealengine.com/u/qinwangking)\
**Replies:** 4\
**Last updated:** [October 10, 2024, 2:44pm UTC](https://forums.unrealengine.com/t/opus-codec-not-working-properly/492089 "2024-10-10T14:44:08Z")

</div>

Here’s the code and already added the Voice module. FVoiceModule\* myVoiceModule2; TSharedPtr myVoiceEncoder2 = NULL; myVoiceModule2 = &FVoiceModule::Get(); myVoiceEncoder2 = myVoiceModule2-\>CreateVoiceEncoder(48000, 2…

---

## [RunUAT.bat Error compiling the Automation Tool after updating Visual Studio Update (Unreal 5.3) 10/2024](https://forums.unrealengine.com/t/runuat-bat-error-compiling-the-automation-tool-after-updating-visual-studio-update-unreal-5-3-10-2024/2061830)

<div class="topic-metadata">

**Author:** [@RollinFields](https://forums.unrealengine.com/u/RollinFields)\
**Replies:** 0\
**Last updated:** [October 10, 2024, 2:20pm UTC](https://forums.unrealengine.com/t/runuat-bat-error-compiling-the-automation-tool-after-updating-visual-studio-update-unreal-5-3-10-2024/2061830 "2024-10-10T14:20:05Z")

</div>

“C:\\Program Files\\Epic Games\\UE\_5.3\\Engine\\Build\\BatchFiles\\RunUAT.bat” BuildPlugin -Rocket -Plugin=“D:\\Packaged\\Projects\\53\\Plugins\\FileUtilities\\FileUtilities.uplugin” -TargetPlatforms=Win64 -Package=“D:\\Packaged\\Pa…

---

## [FTexture2DMipMap: it's BulkData has the wrong size](https://forums.unrealengine.com/t/ftexture2dmipmap-its-bulkdata-has-the-wrong-size/271644)

<div class="topic-metadata">

**Author:** [@LGZeroGames](https://forums.unrealengine.com/u/LGZeroGames)\
**Replies:** 5\
**Last updated:** [October 10, 2024, 11:10am UTC](https://forums.unrealengine.com/t/ftexture2dmipmap-its-bulkdata-has-the-wrong-size/271644 "2024-10-10T11:10:12Z")

</div>

Hello, I have a 64x64 BGRA8 FTexture2DMipMipmap (level 2, level 0 is 256x256), which should be 16384 bytes but it’s BulkData size is 65535 bytes. Can I assume this is OK and I can just ignore the extra bytes?

---

## ["There were build errors" but no errors](https://forums.unrealengine.com/t/there-were-build-errors-but-no-errors/2058665)

<div class="topic-metadata">

**Author:** [@lazyFrond](https://forums.unrealengine.com/u/lazyFrond)\
**Replies:** 4\
**Last updated:** [October 9, 2024, 11:55pm UTC](https://forums.unrealengine.com/t/there-were-build-errors-but-no-errors/2058665 "2024-10-09T23:55:47Z")

</div>

When launching the editor through the visual studio debugger I get that “there were build errors” popup so then run the “last successful build”. it works but when I get into the editor and recompile no errors are found b…

---

## [Unable to compile blank project](https://forums.unrealengine.com/t/unable-to-compile-blank-project/1214010)

<div class="topic-metadata">

**Author:** [@Nickmav1337](https://forums.unrealengine.com/u/Nickmav1337)\
**Replies:** 9\
**Last updated:** [October 9, 2024, 4:06pm UTC](https://forums.unrealengine.com/t/unable-to-compile-blank-project/1214010 "2024-10-09T16:06:03Z")

</div>

I have a new UE 5.2 blank project that I am unable to compile in Visual Studio. The errors are all in read-only source files and I have done literally nothing the blank project. Can someone explain how there can be err…

---

## ["&40" &41" Symbols appearing in API documentation, meaningful or a glitch?](https://forums.unrealengine.com/t/40-41-symbols-appearing-in-api-documentation-meaningful-or-a-glitch/1847668)

<div class="topic-metadata">

**Author:** [@object22](https://forums.unrealengine.com/u/object22)\
**Replies:** 2\
**Last updated:** [October 9, 2024, 1:24pm UTC](https://forums.unrealengine.com/t/40-41-symbols-appearing-in-api-documentation-meaningful-or-a-glitch/1847668 "2024-10-09T13:24:01Z")

</div>

I only just started noticing these within the past month I believe, do these mean something im not familiar with or is it an issue with their online documentation system? For instance, in the 5.3 reference for AAIContro…

---

## [I need help for c++ and bp](https://forums.unrealengine.com/t/i-need-help-for-c-and-bp/1957074)

<div class="topic-metadata">

**Author:** [@Itamyl](https://forums.unrealengine.com/u/Itamyl)\
**Replies:** 3\
**Last updated:** [October 9, 2024, 1:12pm UTC](https://forums.unrealengine.com/t/i-need-help-for-c-and-bp/1957074 "2024-10-09T13:12:30Z")

</div>

Hello guys! I need some help, I started learning UE5 9-10 months ago, I am medium level in BP. Now I want to learn C++, they want C++ for work, of course I will continue to learn BP. But I don’t know where we can learn …

---

## [How to create custom Control Rig class in c++?](https://forums.unrealengine.com/t/how-to-create-custom-control-rig-class-in-c/2026829)

<div class="topic-metadata">

**Author:** [@easy\_cak3](https://forums.unrealengine.com/u/easy_cak3)\
**Replies:** 6\
**Last updated:** [October 9, 2024, 9:40am UTC](https://forums.unrealengine.com/t/how-to-create-custom-control-rig-class-in-c/2026829 "2024-10-09T09:40:52Z")

</div>

How do I create a new custom c++ class which inherits from ControlRig ? Such that when I use the editor to create a new Control Rig and it asks for a parent rig my custom control rig shows up: I’m trying to do thi…

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

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