# C++

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

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

**Page:** 31

---

## [How to add new Asset type Categories to EAssetTypeCategories?](https://forums.unrealengine.com/t/how-to-add-new-asset-type-categories-to-eassettypecategories/110985)

<div class="topic-metadata">

**Author:** [@BDC\_Patrick](https://forums.unrealengine.com/u/BDC_Patrick)\
**Replies:** 2\
**Last updated:** [July 26, 2025, 9:09am UTC](https://forums.unrealengine.com/t/how-to-add-new-asset-type-categories-to-eassettypecategories/110985 "2025-07-26T09:09:26Z")

</div>

As the Title says… I know that EAssetTypeCategories is including an enum with the basic Types… But i also know, that f.e. Paper2D adds his own Category when the Plugin is enabled… soo…: Is it possible to create a custo…

---

## [Animation Property Access System in C++?](https://forums.unrealengine.com/t/animation-property-access-system-in-c/541917)

<div class="topic-metadata">

**Author:** [@sjcobs](https://forums.unrealengine.com/u/sjcobs)\
**Replies:** 20\
**Last updated:** [July 26, 2025, 6:54am UTC](https://forums.unrealengine.com/t/animation-property-access-system-in-c/541917 "2025-07-26T06:54:54Z")

</div>

I’m attempting to move some Anim Blueprint logic over to a base C++ Anim Instance class, but can not figure out how to use the new Threadsafe Property Access System in C++. There is no documentation on how to do this. M…

---

## [New nanite voxel foliage ](https://forums.unrealengine.com/t/new-nanite-voxel-foliage/2585978)

<div class="topic-metadata">

**Author:** [@Epik971](https://forums.unrealengine.com/u/Epik971)\
**Replies:** 2\
**Last updated:** [July 25, 2025, 9:53pm UTC](https://forums.unrealengine.com/t/new-nanite-voxel-foliage/2585978 "2025-07-25T21:53:33Z")

</div>

Hello, at the presentation of UE 5.6, we were shown an updated technology for nanite foliage using the voxel method. They also said that this technology will only be available in UE 5.7. But for those who want to exper…

---

## [Knowledge Base: Garbage Collector Internals](https://forums.unrealengine.com/t/knowledge-base-garbage-collector-internals/501800)

<div class="topic-metadata">

**Author:** [@Ari\_Epic](https://forums.unrealengine.com/u/Ari_Epic)\
**Replies:** 6\
**Last updated:** [July 25, 2025, 9:35pm UTC](https://forums.unrealengine.com/t/knowledge-base-garbage-collector-internals/501800 "2025-07-25T21:35:22Z")

</div>

Unreal Engine’s Garbage Collector is a standard Mark & Sweep collector. This post explains its stages and what it does under the hood. Summary These are the major stages of the Garbage Collector: Mark unreachable. Ma…

---

## [Chaos contact modification](https://forums.unrealengine.com/t/chaos-contact-modification/517748)

<div class="topic-metadata">

**Author:** [@Sqobar](https://forums.unrealengine.com/u/Sqobar)\
**Replies:** 7\
**Last updated:** [July 25, 2025, 2:20pm UTC](https://forums.unrealengine.com/t/chaos-contact-modification/517748 "2025-07-25T14:20:59Z")

</div>

Hello everyone! How to modify collision contacts in ue5? I’ve found static member CollisionModifierCallback inside FPhysScene\_Chaos, but looks like it doesn’t implemented yet (i got unresolved external symbol compilatio…

---

## [Why are new classes encoded in UTF-16 (LE)?](https://forums.unrealengine.com/t/why-are-new-classes-encoded-in-utf-16-le/338322)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_53e81081](https://forums.unrealengine.com/u/anonymous_user_53e81081)\
**Replies:** 3\
**Last updated:** [July 25, 2025, 10:30am UTC](https://forums.unrealengine.com/t/why-are-new-classes-encoded-in-utf-16-le/338322 "2025-07-25T10:30:32Z")

</div>

Unreal Engine 4.9.2 - Mac 10.10.4 My Actions: Unreal Editor → Content Browser → Add New → New C++ Class → Choose Parent Class = None → Name = MyClass The files generated are encoded in UTF 16 (LE) which XCode and Unre…

---

## [C++ Acceptance Radius doesn't seem to work](https://forums.unrealengine.com/t/c-acceptance-radius-doesnt-seem-to-work/2611042)

<div class="topic-metadata">

**Author:** [@eliasfrost](https://forums.unrealengine.com/u/eliasfrost)\
**Replies:** 2\
**Last updated:** [July 24, 2025, 7:10pm UTC](https://forums.unrealengine.com/t/c-acceptance-radius-doesnt-seem-to-work/2611042 "2025-07-24T19:10:51Z")

</div>

Hi! I’m currently trying to implement simple navigation into my game using C++ but I can’t seem to get the acceptance radius to work. I’m trying to make a character run after me and stop when they’re close enough. Here’…

---

## [Source Folder and c++ empty classes not showing](https://forums.unrealengine.com/t/source-folder-and-c-empty-classes-not-showing/2590237)

<div class="topic-metadata">

**Author:** [@Memeseco](https://forums.unrealengine.com/u/Memeseco)\
**Replies:** 3\
**Last updated:** [July 24, 2025, 5:11pm UTC](https://forums.unrealengine.com/t/source-folder-and-c-empty-classes-not-showing/2590237 "2025-07-24T17:11:36Z")

</div>

SO i have a new PC, I upgraded to unreals 5.6, I installed everything so Visual studio, plugins all work and build. However whenever i make a new C++ class it never shows, even the source folder wont show which holds tha…

---

## [How to make Data Tables expand each cell](https://forums.unrealengine.com/t/how-to-make-data-tables-expand-each-cell/2611473)

<div class="topic-metadata">

**Author:** [@ajinkya\_x](https://forums.unrealengine.com/u/ajinkya_x)\
**Replies:** 2\
**Last updated:** [July 24, 2025, 8:34am UTC](https://forums.unrealengine.com/t/how-to-make-data-tables-expand-each-cell/2611473 "2025-07-24T08:34:52Z")

</div>

Hello, At the moment the table look like this and I have to manually expand them. Is there any C++ option which I can add to my data table ? USTRUCT(BlueprintType) struct FPlayerChoice : public FTableRowBase { GENERA…

---

## [How do you add a mesh component without the large overhead entailed?](https://forums.unrealengine.com/t/how-do-you-add-a-mesh-component-without-the-large-overhead-entailed/2615906)

<div class="topic-metadata">

**Author:** [@JR\_Miller](https://forums.unrealengine.com/u/JR_Miller)\
**Replies:** 2\
**Last updated:** [July 24, 2025, 1:45am UTC](https://forums.unrealengine.com/t/how-do-you-add-a-mesh-component-without-the-large-overhead-entailed/2615906 "2025-07-24T01:45:26Z")

</div>

Apologies if this is a noob question. I am wanting to add lots and lots of meshes to an actor. For reasons that would take too long to explain, I do not want to use instanced static meshes (ISM) or the MASS entity system…

---

## [BeforeAll and AfterAll in Automation Spec?](https://forums.unrealengine.com/t/beforeall-and-afterall-in-automation-spec/560571)

<div class="topic-metadata">

**Author:** [@PEYMAAN](https://forums.unrealengine.com/u/PEYMAAN)\
**Replies:** 7\
**Last updated:** [July 23, 2025, 4:19pm UTC](https://forums.unrealengine.com/t/beforeall-and-afterall-in-automation-spec/560571 "2025-07-23T16:19:36Z")

</div>

I have an automation spec which tests a component. To test the component, I create a new world, spawn an actor, add the component to the actor in BeforeEach method. All that happens for every test which slows tests dow…

---

## [Procedural Mesh Component is not visiable when created in C++](https://forums.unrealengine.com/t/procedural-mesh-component-is-not-visiable-when-created-in-c/2615544)

<div class="topic-metadata">

**Author:** [@Online\_Learner\_haAf1](https://forums.unrealengine.com/u/Online_Learner_haAf1)\
**Replies:** 0\
**Last updated:** [July 23, 2025, 11:46am UTC](https://forums.unrealengine.com/t/procedural-mesh-component-is-not-visiable-when-created-in-c/2615544 "2025-07-23T11:46:15Z")

</div>

I add Procedural Mesh Component in C++ and created it in constructor in .h UPROPERTY(EditAnywhere, BlueprintReadWrite) TObjectPtr\<UProceduralMeshComponent\> PMC1; in .cpp PMC1 = CreateDefaultSubobject\<UProcedura…

---

## [Missing Includes when building with LowLevelTests](https://forums.unrealengine.com/t/missing-includes-when-building-with-lowleveltests/2404911)

<div class="topic-metadata">

**Author:** [@Sigmundrr](https://forums.unrealengine.com/u/Sigmundrr)\
**Replies:** 1\
**Last updated:** [July 22, 2025, 9:00pm UTC](https://forums.unrealengine.com/t/missing-includes-when-building-with-lowleveltests/2404911 "2025-07-22T21:00:44Z")

</div>

I wanted to add tests to my Plugin, so I could be missing Dependencies. I get those errors: 1\>\[1/12\] Compile \[x64\] EditorUtilities.cpp 1\>C:\\UnrealEngine\\Engine\\Source\\Developer\\LowLevelTestsRunner\\Private\\TestCommon\\Ed…

---

## [Add component to actor in C++ (the final word!)](https://forums.unrealengine.com/t/add-component-to-actor-in-c-the-final-word/646838)

<div class="topic-metadata">

**Author:** [@HappyHappyPlay](https://forums.unrealengine.com/u/HappyHappyPlay)\
**Replies:** 23\
**Last updated:** [July 22, 2025, 6:33pm UTC](https://forums.unrealengine.com/t/add-component-to-actor-in-c-the-final-word/646838 "2025-07-22T18:33:15Z")

</div>

Hello! There are a ton of semi-outdated answers on this all over Google, so I am hoping this thread can be the definitive answer to this seemingly simple question. There seem to be differences between runtime and in the …

---

## [TWeakObjectPtr questions](https://forums.unrealengine.com/t/tweakobjectptr-questions/2614032)

<div class="topic-metadata">

**Author:** [@GoodToGo3](https://forums.unrealengine.com/u/GoodToGo3)\
**Replies:** 2\
**Last updated:** [July 22, 2025, 1:39pm UTC](https://forums.unrealengine.com/t/tweakobjectptr-questions/2614032 "2025-07-22T13:39:22Z")

</div>

I have a quick question regarding TWeakObjectPtr. Is it good practice to use them for all actors spawned in the world? From what I understand, the world owns spawned actors so using a weakobjptr is fine as long as you c…

---

## [How to compile C++ code faster?](https://forums.unrealengine.com/t/how-to-compile-c-code-faster/528298)

<div class="topic-metadata">

**Author:** [@caiovini980](https://forums.unrealengine.com/u/caiovini980)\
**Replies:** 10\
**Last updated:** [July 22, 2025, 2:54am UTC](https://forums.unrealengine.com/t/how-to-compile-c-code-faster/528298 "2025-07-22T02:54:36Z")

</div>

Hey everyone! I’ve just started to work with Unreal this week and a thing that is bothering me is that I’m constantly waiting 5 to 10 minutes to the engine to compile my code (event the smallest ones) when it have any m…

---

## [Night Vision Goggles](https://forums.unrealengine.com/t/night-vision-goggles/1227204)

<div class="topic-metadata">

**Author:** [@Awesomeplayer895](https://forums.unrealengine.com/u/Awesomeplayer895)\
**Replies:** 9\
**Last updated:** [July 21, 2025, 8:18pm UTC](https://forums.unrealengine.com/t/night-vision-goggles/1227204 "2025-07-21T20:18:51Z")

</div>

Hi, I am trying to create a night vision feature but instead of covering the whole screen with the effect I would like to only cover a portion with it. As you can see from this reference photo, only a circular area h…

---

## [Ensure when adding single ISM navigation element ](https://forums.unrealengine.com/t/ensure-when-adding-single-ism-navigation-element/2613276)

<div class="topic-metadata">

**Author:** [@tgib\_inflexion](https://forums.unrealengine.com/u/tgib_inflexion)\
**Replies:** 0\
**Last updated:** [July 21, 2025, 4:52pm UTC](https://forums.unrealengine.com/t/ensure-when-adding-single-ism-navigation-element/2613276 "2025-07-21T16:52:33Z")

</div>

We’re hitting the ensure in FBoundsCacheElement::GetValue in InstancedStaticMeshComponent.cpp when a single instance is added. This looks like the same issue that https://github.com/EpicGames/UnrealEngine/commit/5144e6d8…

---

## [MetaHuman clothing fit](https://forums.unrealengine.com/t/metahuman-clothing-fit/2612963)

<div class="topic-metadata">

**Author:** [@Zimaell](https://forums.unrealengine.com/u/Zimaell)\
**Replies:** 0\
**Last updated:** [July 21, 2025, 1:00pm UTC](https://forums.unrealengine.com/t/metahuman-clothing-fit/2612963 "2025-07-21T13:00:48Z")

</div>

Tell me how things are now with clothes for metahuman. Previously, it was necessary to make a separate set of clothes for each preset, but if I’m not mistaken, now in metahuman there is an option to adjust clothes to th…

---

## [I have a problem with inputs and outputs (UMaterialExpression)](https://forums.unrealengine.com/t/i-have-a-problem-with-inputs-and-outputs-umaterialexpression/2610059)

<div class="topic-metadata">

**Author:** [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Replies:** 6\
**Last updated:** [July 21, 2025, 4:43am UTC](https://forums.unrealengine.com/t/i-have-a-problem-with-inputs-and-outputs-umaterialexpression/2610059 "2025-07-21T04:43:44Z")

</div>

This is my first time using the UMaterialExpression class. Seems to be a problem with the types of the inputs. And the output names are not set in the node. I don’t see the node title either. I’m not sure why this ha…

---

## [How to cancel opposite inputs with Enhanced Input](https://forums.unrealengine.com/t/how-to-cancel-opposite-inputs-with-enhanced-input/753281)

<div class="topic-metadata">

**Author:** [@D00rOpener](https://forums.unrealengine.com/u/D00rOpener)\
**Replies:** 13\
**Last updated:** [July 20, 2025, 9:15pm UTC](https://forums.unrealengine.com/t/how-to-cancel-opposite-inputs-with-enhanced-input/753281 "2025-07-20T21:15:29Z")

</div>

Is there an official or best practice way to cancel opposite input with Enhanced Input? I mean when using WASD to move around, I want W and S to cancel each other and same for A and D. What happens when I follow the off…

---

## [Binding actor components like widgets?](https://forums.unrealengine.com/t/binding-actor-components-like-widgets/723058)

<div class="topic-metadata">

**Author:** [@zos](https://forums.unrealengine.com/u/zos)\
**Replies:** 2\
**Last updated:** [July 20, 2025, 5:32pm UTC](https://forums.unrealengine.com/t/binding-actor-components-like-widgets/723058 "2025-07-20T17:32:03Z")

</div>

In a UMG UUserWidget subclass you can mark a widget UPROPERTY with the meta tag BindWidget, and then in a Blueprint subclass of your UUserWidget subclass, when you click Compile on the blueprint in the editor, if you hav…

---

## [Can't find "UBT\_COMPILED\_PLATFORM/..." error, when opening a new C++ project in Visual Studio.](https://forums.unrealengine.com/t/cant-find-ubt-compiled-platform-error-when-opening-a-new-c-project-in-visual-studio/265515)

<div class="topic-metadata">

**Author:** [@GerdDerHerd](https://forums.unrealengine.com/u/GerdDerHerd)\
**Replies:** 4\
**Last updated:** [July 20, 2025, 2:34pm UTC](https://forums.unrealengine.com/t/cant-find-ubt-compiled-platform-error-when-opening-a-new-c-project-in-visual-studio/265515 "2025-07-20T14:34:14Z")

</div>

Hey there, I just started out using Unreal Engine and worked only with blueprints. No I wanted to flush user inputs, so that the character stops walking when opening a widget. Anyways, I tried using C++ and I got 10000 …

---

## [How to disable LiveCoding Console?](https://forums.unrealengine.com/t/how-to-disable-livecoding-console/1945455)

<div class="topic-metadata">

**Author:** [@AK737](https://forums.unrealengine.com/u/AK737)\
**Replies:** 3\
**Last updated:** [July 19, 2025, 8:29pm UTC](https://forums.unrealengine.com/t/how-to-disable-livecoding-console/1945455 "2025-07-19T20:29:06Z")

</div>

Hey everyone, I am new to Unreal (switched from Unity) and I just started using C++ and LiveCoding and the every time I want to Compile this console shows up: I did everything I could and did not find any way to hide…

---

## [VSCode extension: unreal-clangd v3.0.0 Fast code completion](https://forums.unrealengine.com/t/vscode-extension-unreal-clangd-v3-0-0-fast-code-completion/2611068)

<div class="topic-metadata">

**Author:** [@boocs\_ved](https://forums.unrealengine.com/u/boocs_ved)\
**Replies:** 0\
**Last updated:** [July 19, 2025, 6:24pm UTC](https://forums.unrealengine.com/t/vscode-extension-unreal-clangd-v3-0-0-fast-code-completion/2611068 "2025-07-19T18:24:53Z")

</div>

v3.0.0 changes Quick start link Documentation links How it works https://github.com/boocs/unreal-clangd Note: v3.0.0 has breaking change from previous versions. See here v3.0.0 changes Big code or…

---

## [How to get uniform grid lines for pentomino pattern.](https://forums.unrealengine.com/t/how-to-get-uniform-grid-lines-for-pentomino-pattern/2611025)

<div class="topic-metadata">

**Author:** [@Rhakatiri](https://forums.unrealengine.com/u/Rhakatiri)\
**Replies:** 0\
**Last updated:** [July 19, 2025, 5:34pm UTC](https://forums.unrealengine.com/t/how-to-get-uniform-grid-lines-for-pentomino-pattern/2611025 "2025-07-19T17:34:25Z")

</div>

How can i generate a grid of squares like in the picture with even lines all around ( maybe a thicker outline) when i use a image with border made darker then the squares next to each other have thicker lines than th…

---

## [Can you change the material instance on the software cursor?](https://forums.unrealengine.com/t/can-you-change-the-material-instance-on-the-software-cursor/2609250)

<div class="topic-metadata">

**Author:** [@DragonRelt](https://forums.unrealengine.com/u/DragonRelt)\
**Replies:** 3\
**Last updated:** [July 19, 2025, 5:08pm UTC](https://forums.unrealengine.com/t/can-you-change-the-material-instance-on-the-software-cursor/2609250 "2025-07-19T17:08:02Z")

</div>

So im interested in knowing if you can change the software cursor material instance, and or can you make it something that you can control? if not all good.

---

## [How to Use Builtin function if it has an Identical public and private implementation? ](https://forums.unrealengine.com/t/how-to-use-builtin-function-if-it-has-an-identical-public-and-private-implementation/2467993)

<div class="topic-metadata">

**Author:** [@WDFTY](https://forums.unrealengine.com/u/WDFTY)\
**Replies:** 2\
**Last updated:** [July 19, 2025, 4:09pm UTC](https://forums.unrealengine.com/t/how-to-use-builtin-function-if-it-has-an-identical-public-and-private-implementation/2467993 "2025-07-19T16:09:18Z")

</div>

DtNavMesh has a function getTilesAt(). I am trying to use this in order to access all Tiles of all layers inside of an arbitrary grid location. So that I can check to see if has any Polys and make sure it is valid. My I…

---

## [HOW TO...Get screenshot/texture from 2d Scene Capture Comp at runtime - C++](https://forums.unrealengine.com/t/how-to-get-screenshot-texture-from-2d-scene-capture-comp-at-runtime-c/1618727)

<div class="topic-metadata">

**Author:** [@elguapador](https://forums.unrealengine.com/u/elguapador)\
**Replies:** 0\
**Last updated:** [January 16, 2024, 9:12am UTC](https://forums.unrealengine.com/t/how-to-get-screenshot-texture-from-2d-scene-capture-comp-at-runtime-c/1618727 "2024-01-16T09:12:32Z")

</div>

It took me a while but here is some code to get a still image as a texture at runtime (as of UE5.03). Note that the async lambda currently does nothing. I will update soon with a more efficient multi-threaded division of…

---

## [5.6 create project error 14.36.32532 C++ toolchain for VisualStudio2022 x64 both with and without](https://forums.unrealengine.com/t/5-6-create-project-error-14-36-32532-c-toolchain-for-visualstudio2022-x64-both-with-and-without/2610320)

<div class="topic-metadata">

**Author:** [@ChristopherRaven](https://forums.unrealengine.com/u/ChristopherRaven)\
**Replies:** 2\
**Last updated:** [July 19, 2025, 4:55am UTC](https://forums.unrealengine.com/t/5-6-create-project-error-14-36-32532-c-toolchain-for-visualstudio2022-x64-both-with-and-without/2610320 "2025-07-19T04:55:29Z")

</div>

If I have it installed, it gives me an error with it saying please install 14.38 (already installed) without it it gives me an error that a valid 14.36 build chain can’t be found. Not finding anything on the forums (her…

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

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