# C++

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

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

**Page:** 65

---

## [Nuget issue after upgrading project from 5.3 to 5.5](https://forums.unrealengine.com/t/nuget-issue-after-upgrading-project-from-5-3-to-5-5/2148934)

<div class="topic-metadata">

**Author:** [@MarkcusD](https://forums.unrealengine.com/u/MarkcusD)\
**Replies:** 12\
**Last updated:** [December 13, 2024, 8:26pm UTC](https://forums.unrealengine.com/t/nuget-issue-after-upgrading-project-from-5-3-to-5-5/2148934 "2024-12-13T20:26:17Z")

</div>

I get NETSDK1064: Package not found error and can’t build. I tried upgrading vs 2022 to the latest. Anyone have a fix for this? Log: NuGet package restore failed. Please see Error List window for detailed warnings and …

---

## [Disabling Chaos Anchor Fields at runtime](https://forums.unrealengine.com/t/disabling-chaos-anchor-fields-at-runtime/496278)

<div class="topic-metadata">

**Author:** [@daddyhughes111](https://forums.unrealengine.com/u/daddyhughes111)\
**Replies:** 7\
**Last updated:** [December 13, 2024, 8:26pm UTC](https://forums.unrealengine.com/t/disabling-chaos-anchor-fields-at-runtime/496278 "2024-12-13T20:26:15Z")

</div>

Hi everyone, I’m using anchor fields to hold up my structures. However, I can’t find a solution to then have these be turned off at runtime. Right now I want to detect how much of the structure has been destroyed and th…

---

## [Weird bug when creating or opening c++ projects](https://forums.unrealengine.com/t/weird-bug-when-creating-or-opening-c-projects/2128315)

<div class="topic-metadata">

**Author:** [@Vinipiterson](https://forums.unrealengine.com/u/Vinipiterson)\
**Replies:** 5\
**Last updated:** [December 13, 2024, 7:10pm UTC](https://forums.unrealengine.com/t/weird-bug-when-creating-or-opening-c-projects/2128315 "2024-12-13T19:10:47Z")

</div>

I started to get an error when trying to open c++ projects after instaling unreal engine 5.5 and MSVC (The log said the previous version I was using got banned), I’m not sure if it is related to the update but i’m sure i…

---

## [Function already has a body, what went wrong here?](https://forums.unrealengine.com/t/function-already-has-a-body-what-went-wrong-here/2156028)

<div class="topic-metadata">

**Author:** [@Izuuubito](https://forums.unrealengine.com/u/Izuuubito)\
**Replies:** 5\
**Last updated:** [December 13, 2024, 6:51pm UTC](https://forums.unrealengine.com/t/function-already-has-a-body-what-went-wrong-here/2156028 "2024-12-13T18:51:26Z")

</div>

Started working on a new class - other ones do not have this issue. I am getting the error “function already has a body” for ALL of the functions - and I have no idea why? I do have a public constructor, so other topics …

---

## [Niagara user parameter is not visible in BluePrint -\> UE5.2 & C++](https://forums.unrealengine.com/t/niagara-user-parameter-is-not-visible-in-blueprint-ue5-2-c/1179343)

<div class="topic-metadata">

**Author:** [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Replies:** 13\
**Last updated:** [December 13, 2024, 4:58pm UTC](https://forums.unrealengine.com/t/niagara-user-parameter-is-not-visible-in-blueprint-ue5-2-c/1179343 "2024-12-13T16:58:29Z")

</div>

Niagara user parameter not visible in blueprint when using C++. Everything is correct in a pure blueprint. Niagara User Parameters does not appear if instantiated from C++. Declaration: implementation: …

---

## [Template class in plugin results in unresolved symbol](https://forums.unrealengine.com/t/template-class-in-plugin-results-in-unresolved-symbol/2217309)

<div class="topic-metadata">

**Author:** [@m\_1911\_45.acp1](https://forums.unrealengine.com/u/m_1911_45.acp1)\
**Replies:** 0\
**Last updated:** [December 13, 2024, 1:35pm UTC](https://forums.unrealengine.com/t/template-class-in-plugin-results-in-unresolved-symbol/2217309 "2024-12-13T13:35:56Z")

</div>

Hi. I have a template class template \<typename T\_Node\> class GOAPSOLVER\_API AStarSolver defined in plugin Goapsolver. I also have an inherited class class GOAPSOLVER\_API IntegerGraphSolver : public AStarSolver\<unsigne…

---

## [How should the gear ratio be determined in the drift game?](https://forums.unrealengine.com/t/how-should-the-gear-ratio-be-determined-in-the-drift-game/2196599)

<div class="topic-metadata">

**Author:** [@syntx](https://forums.unrealengine.com/u/syntx)\
**Replies:** 1\
**Last updated:** [December 13, 2024, 1:11pm UTC](https://forums.unrealengine.com/t/how-should-the-gear-ratio-be-determined-in-the-drift-game/2196599 "2024-12-13T13:11:50Z")

</div>

Vehicle 320 torque 9000 rpm. I could not adjust the gear ratio. The vehicle reaches 9000rpm in 3 seconds. Torque Curve;

---

## [Fortnite winterfest](https://forums.unrealengine.com/t/fortnite-winterfest/2210264)

<div class="topic-metadata">

**Author:** [@NewDresser](https://forums.unrealengine.com/u/NewDresser)\
**Replies:** 1\
**Last updated:** [December 12, 2024, 4:28pm UTC](https://forums.unrealengine.com/t/fortnite-winterfest/2210264 "2024-12-12T16:28:52Z")

</div>

Hey I was wondering if anyone would be able to help me this also might be a stupid question but everyone is saying that the winterfest presents are in the game but when I get on there’s nothing about winterfest there

---

## [Help on collision needed please. ](https://forums.unrealengine.com/t/help-on-collision-needed-please/2212258)

<div class="topic-metadata">

**Author:** [@seekervoo](https://forums.unrealengine.com/u/seekervoo)\
**Replies:** 0\
**Last updated:** [December 12, 2024, 2:54pm UTC](https://forums.unrealengine.com/t/help-on-collision-needed-please/2212258 "2024-12-12T14:54:31Z")

</div>

When I make a high resolution landscape with many vertices and triangles generated from a heightmap, it generates it well and the collision works perfectly. However when I add a mesh, like a plane, with custom collision,…

---

## [How to initialise a view model in a C++ Widget class ?](https://forums.unrealengine.com/t/how-to-initialise-a-view-model-in-a-c-widget-class/2211178)

<div class="topic-metadata">

**Author:** [@ThePhenomN](https://forums.unrealengine.com/u/ThePhenomN)\
**Replies:** 0\
**Last updated:** [December 12, 2024, 9:44am UTC](https://forums.unrealengine.com/t/how-to-initialise-a-view-model-in-a-c-widget-class/2211178 "2024-12-12T09:44:27Z")

</div>

Hello there, I’m working on integrating UMGViewModel into my project and I’m trying to figure out how to initialize a view model in a C++ widget class instead of initializing it in the view model window in the BP widget…

---

## ["Cannot create new folders in ..."](https://forums.unrealengine.com/t/cannot-create-new-folders-in/334119)

<div class="topic-metadata">

**Author:** [@grandwaazoo](https://forums.unrealengine.com/u/grandwaazoo)\
**Replies:** 19\
**Last updated:** [December 11, 2024, 7:44pm UTC](https://forums.unrealengine.com/t/cannot-create-new-folders-in/334119 "2024-12-11T19:44:53Z")

</div>

Hello, I cannot create new folders in the c++ code source folder in the ue4 editor. I downloaded the Shooter Game template and when I right click on the source code folder the “new folder” button is grey out. Even if I …

---

## [How to a blueprint call from a data table?](https://forums.unrealengine.com/t/how-to-a-blueprint-call-from-a-data-table/2205653)

<div class="topic-metadata">

**Author:** [@Toastabean](https://forums.unrealengine.com/u/Toastabean)\
**Replies:** 1\
**Last updated:** [December 11, 2024, 6:40pm UTC](https://forums.unrealengine.com/t/how-to-a-blueprint-call-from-a-data-table/2205653 "2024-12-11T18:40:49Z")

</div>

Doing this for a Game Development assignment. Basically what I want to happen is when the player initiates battle, the Blueprint of the enemy refers to the data table of some random enemies (with random stats assigned to…

---

## [Still trying to debug difference between Development and Shipping Packages](https://forums.unrealengine.com/t/still-trying-to-debug-difference-between-development-and-shipping-packages/2185478)

<div class="topic-metadata">

**Author:** [@Thomas\_Low](https://forums.unrealengine.com/u/Thomas_Low)\
**Replies:** 1\
**Last updated:** [December 11, 2024, 12:11am UTC](https://forums.unrealengine.com/t/still-trying-to-debug-difference-between-development-and-shipping-packages/2185478 "2024-12-11T00:11:12Z")

</div>

I am still trying to debug why my WindowCapture2d plugin, updated from 4.27 to 5.4, works in debug and development, but fails to render the window copy in a Shipping build (even from the debugger). Otherwise, the two v…

---

## [How to generate a Binary version of project that doesnt require source code of project.](https://forums.unrealengine.com/t/how-to-generate-a-binary-version-of-project-that-doesnt-require-source-code-of-project/2196297)

<div class="topic-metadata">

**Author:** [@PharosSentinel](https://forums.unrealengine.com/u/PharosSentinel)\
**Replies:** 0\
**Last updated:** [December 10, 2024, 6:45pm UTC](https://forums.unrealengine.com/t/how-to-generate-a-binary-version-of-project-that-doesnt-require-source-code-of-project/2196297 "2024-12-10T18:45:58Z")

</div>

I am the lead programmer for my team that is going to start working on a project. I am trying to streamline the source control process. I want a way to automatically build live versions of the source code to a binary for…

---

## [How to filter selectable objects from the array item picker dropdown.](https://forums.unrealengine.com/t/how-to-filter-selectable-objects-from-the-array-item-picker-dropdown/2195084)

<div class="topic-metadata">

**Author:** [@Mayurkamat16](https://forums.unrealengine.com/u/Mayurkamat16)\
**Replies:** 0\
**Last updated:** [December 10, 2024, 3:38pm UTC](https://forums.unrealengine.com/t/how-to-filter-selectable-objects-from-the-array-item-picker-dropdown/2195084 "2024-12-10T15:38:50Z")

</div>

In the image above, you can see that I am able to select any item for the array of type AnimSequence. However I want the dropdown to only show assets which are using the referenced skeleton which is being slet in the …

---

## [ Harmony OS Next](https://forums.unrealengine.com/t/harmony-os-next/2194594)

<div class="topic-metadata">

**Author:** [@Anonymous\_d584969158a16c3d82bd8c543d5389bd](https://forums.unrealengine.com/u/Anonymous_d584969158a16c3d82bd8c543d5389bd)\
**Replies:** 0\
**Last updated:** [December 10, 2024, 2:24pm UTC](https://forums.unrealengine.com/t/harmony-os-next/2194594 "2024-12-10T14:24:20Z")

</div>

如何使用UE5为鸿蒙next打包应用。

---

## [cart shopping](https://forums.unrealengine.com/t/cart-shopping/2193739)

<div class="topic-metadata">

**Author:** [@MASKEDTIGAR](https://forums.unrealengine.com/u/MASKEDTIGAR)\
**Replies:** 1\
**Last updated:** [December 10, 2024, 11:44am UTC](https://forums.unrealengine.com/t/cart-shopping/2193739 "2024-12-10T11:44:55Z")

</div>

I am currently working on a racing game and the idea is for players to race using a shopping cart, but I don’t know how it works?

---

## [How can I use animation clips, blending, and other features in the dev environment?](https://forums.unrealengine.com/t/how-can-i-use-animation-clips-blending-and-other-features-in-the-dev-environment/2193085)

<div class="topic-metadata">

**Author:** [@h616311501](https://forums.unrealengine.com/u/h616311501)\
**Replies:** 0\
**Last updated:** [December 10, 2024, 7:53am UTC](https://forums.unrealengine.com/t/how-can-i-use-animation-clips-blending-and-other-features-in-the-dev-environment/2193085 "2024-12-10T07:53:38Z")

</div>

I want to package the features of UE’s animation system, such as cutting, blending, and aligning bones, into runtime functionality. However, after reviewing the source code, I found that many features are only available …

---

## [Prevent scaling of attached components](https://forums.unrealengine.com/t/prevent-scaling-of-attached-components/657953)

<div class="topic-metadata">

**Author:** [@Dante5050](https://forums.unrealengine.com/u/Dante5050)\
**Replies:** 5\
**Last updated:** [December 10, 2024, 3:54am UTC](https://forums.unrealengine.com/t/prevent-scaling-of-attached-components/657953 "2024-12-10T03:54:43Z")

</div>

I have a pawn grandchild with a cube static mesh as its intended root. I want to scale the cube to be a certain size and attach camera and spline components to it at construction. Problem is as the title implies, no ma…

---

## [How can i generate json with two-dimensional array?](https://forums.unrealengine.com/t/how-can-i-generate-json-with-two-dimensional-array/730324)

<div class="topic-metadata">

**Author:** [@HoyangUS](https://forums.unrealengine.com/u/HoyangUS)\
**Replies:** 1\
**Last updated:** [December 10, 2024, 1:39am UTC](https://forums.unrealengine.com/t/how-can-i-generate-json-with-two-dimensional-array/730324 "2024-12-10T01:39:24Z")

</div>

I wanna generate json file with two-dimensional array as a property like below. { “two\_dim\_array” : \[ \[0.0, 0.1\], \[1.0, 1.1\] \] } How can i generate this json on UE ? The example of one-dimensional array. bool UGen…

---

## [sphere trace by channel in c++](https://forums.unrealengine.com/t/sphere-trace-by-channel-in-c/96490)

<div class="topic-metadata">

**Author:** [@GizmoMKD](https://forums.unrealengine.com/u/GizmoMKD)\
**Replies:** 7\
**Last updated:** [December 9, 2024, 10:13pm UTC](https://forums.unrealengine.com/t/sphere-trace-by-channel-in-c/96490 "2024-12-09T22:13:43Z")

</div>

Hey GUys, how do i implement functionality like: i saw something like this: https://answers.unrealengine.com/questions/3446/how-would-i-use-line-trace-in-c.html but it seems to be different due to it’s line trace… an…

---

## [damage random](https://forums.unrealengine.com/t/damage-random/2189550)

<div class="topic-metadata">

**Author:** [@RESTORATOR74](https://forums.unrealengine.com/u/RESTORATOR74)\
**Replies:** 1\
**Last updated:** [December 9, 2024, 8:32pm UTC](https://forums.unrealengine.com/t/damage-random/2189550 "2024-12-09T20:32:50Z")

</div>

Hello everyone, help me understand how to do random damage, for example, min damage 240 average 350 and maximum 450 so that each race shoots damage randomly from these numbers

---

## [BlueprintAutocast in C++ UBlueprintFunctionLibrary Subclass](https://forums.unrealengine.com/t/blueprintautocast-in-c-ublueprintfunctionlibrary-subclass/76023)

<div class="topic-metadata">

**Author:** [@smartyMARTY](https://forums.unrealengine.com/u/smartyMARTY)\
**Replies:** 8\
**Last updated:** [December 9, 2024, 7:26pm UTC](https://forums.unrealengine.com/t/blueprintautocast-in-c-ublueprintfunctionlibrary-subclass/76023 "2024-12-09T19:26:08Z")

</div>

Hello, I am making a Plugin and realized that I could use some faster Blueprint prototyping for the end developer if I add auto conversions for various types in my system. After building the project however, the auto ca…

---

## [Simple question about shader parameters](https://forums.unrealengine.com/t/simple-question-about-shader-parameters/2189536)

<div class="topic-metadata">

**Author:** [@Melvin\_Brink](https://forums.unrealengine.com/u/Melvin_Brink)\
**Replies:** 0\
**Last updated:** [December 9, 2024, 6:46pm UTC](https://forums.unrealengine.com/t/simple-question-about-shader-parameters/2189536 "2024-12-09T18:46:22Z")

</div>

I have created my own compute shader that uses existing vertex data as the input. I get the ‘VertexBufferRHI’ from the ‘FPositionVertexBuffer’ on a static mesh actor, which I believe points to the vertex-buffer already …

---

## [Error creating C++ Project](https://forums.unrealengine.com/t/error-creating-c-project/1722432)

<div class="topic-metadata">

**Author:** [@Nip3x\_TM](https://forums.unrealengine.com/u/Nip3x_TM)\
**Replies:** 3\
**Last updated:** [December 9, 2024, 6:19pm UTC](https://forums.unrealengine.com/t/error-creating-c-project/1722432 "2024-12-09T18:19:22Z")

</div>

I have never seen this error message before could someone help me fix it. If I rebuild in visual studio it has 3 errors and the project says it already exists even though it wasn’t created and nothing is in the…

---

## [No Owning Connection for Actor](https://forums.unrealengine.com/t/no-owning-connection-for-actor/42704)

<div class="topic-metadata">

**Author:** [@BitBoy92](https://forums.unrealengine.com/u/BitBoy92)\
**Replies:** 16\
**Last updated:** [December 9, 2024, 5:17pm UTC](https://forums.unrealengine.com/t/no-owning-connection-for-actor/42704 "2024-12-09T17:17:26Z")

</div>

Hello Everybody, So I have had a post on the AnswerHub here for awhile now with no luck, so I thought I would post the question here. Please read the original post on AnswerHub! It has more details and I am only going …

---

## [How to troubleshoot Live Coding? \[SOLVED\]](https://forums.unrealengine.com/t/how-to-troubleshoot-live-coding-solved/125299)

<div class="topic-metadata">

**Author:** [@eblade](https://forums.unrealengine.com/u/eblade)\
**Replies:** 5\
**Last updated:** [December 9, 2024, 2:38pm UTC](https://forums.unrealengine.com/t/how-to-troubleshoot-live-coding-solved/125299 "2024-12-09T14:38:12Z")

</div>

Hi all! Long time no see :slight\_smile: Getting back into the swing of things with Unreal, here, and I’d like to try out the new Live Coding feature, because I’m pretty sure that it would make life a lot better, but… w…

---

## [Mouse Sensitivity](https://forums.unrealengine.com/t/mouse-sensitivity/2180478)

<div class="topic-metadata">

**Author:** [@pterafier1](https://forums.unrealengine.com/u/pterafier1)\
**Replies:** 1\
**Last updated:** [December 9, 2024, 2:33pm UTC](https://forums.unrealengine.com/t/mouse-sensitivity/2180478 "2024-12-09T14:33:21Z")

</div>

void AJamPlayerController::Look(const FInputActionValue& Value) { // input is a Vector2D FVector2D LookAxisVector = Value.Get\<FVector2D\>(); float ScaledBaseTurnRate = BaseTurnRate \* GetWorld()-\>GetDeltaSeconds(); …

---

## [How call UFUNCTION (BlueprintImplementableEvent) from JS with EMSCRIPTEN and error: Module.ccall is not function?](https://forums.unrealengine.com/t/how-call-ufunction-blueprintimplementableevent-from-js-with-emscripten-and-error-module-ccall-is-not-function/758421)

<div class="topic-metadata">

**Author:** [@ananasdas181](https://forums.unrealengine.com/u/ananasdas181)\
**Replies:** 3\
**Last updated:** [December 9, 2024, 12:52pm UTC](https://forums.unrealengine.com/t/how-call-ufunction-blueprintimplementableevent-from-js-with-emscripten-and-error-module-ccall-is-not-function/758421 "2024-12-09T12:52:42Z")

</div>

I am making a game for HTML5. At a certain moment I call the ad block, before that I put the game on pause. When the player closes the ad block, I need to unpause the game (I use Blueprints). I need to call UFUNCTION (Bl…

---

## [UE 5.3.2 crash while executing TArray destructor \[File:\\Engine\\Source\\Runtime\\Core\\Public\\Containers\\Array.h\] \[Line: 692\]](https://forums.unrealengine.com/t/ue-5-3-2-crash-while-executing-tarray-destructor-file-engine-source-runtime-core-public-containers-array-h-line-692/1654080)

<div class="topic-metadata">

**Author:** [@BliMfeR](https://forums.unrealengine.com/u/BliMfeR)\
**Replies:** 3\
**Last updated:** [December 9, 2024, 9:21am UTC](https://forums.unrealengine.com/t/ue-5-3-2-crash-while-executing-tarray-destructor-file-engine-source-runtime-core-public-containers-array-h-line-692/1654080 "2024-12-09T09:21:56Z")

</div>

Hello everyone! Recently I got a strange issue and I don’t know how to fix and reproduce it… This happens randomly from time to time. In TArray destructor: /\*\* Destructor. / ~TArray() { #if UE\_BUILD\_DEBUG || UE\_BUILD…

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

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