# C++

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

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

**Page:** 62

---

## [虚幻引擎的部分官方网页Blocked by CORS](https://forums.unrealengine.com/t/blocked-by-cors/412907)

<div class="topic-metadata">

**Author:** [@Johnny.F.Chen](https://forums.unrealengine.com/u/Johnny.F.Chen)\
**Replies:** 8\
**Last updated:** [December 30, 2024, 3:42pm UTC](https://forums.unrealengine.com/t/blocked-by-cors/412907 "2024-12-30T15:42:15Z")

</div>

Access to CSS stylesheet at ‘https://static-assets-prod.epicgames.com/unrealengine/static/webpack/styles.epic-unreal-engine.0ecbe62b8b6170b86b41.css’ from origin ‘https://www.unrealengine.com’ has been blocked by CORS po…

---

## [How to disable replication rotation for a character?](https://forums.unrealengine.com/t/how-to-disable-replication-rotation-for-a-character/2250411)

<div class="topic-metadata">

**Author:** [@Svyatoslavka](https://forums.unrealengine.com/u/Svyatoslavka)\
**Replies:** 0\
**Last updated:** [December 30, 2024, 12:57pm UTC](https://forums.unrealengine.com/t/how-to-disable-replication-rotation-for-a-character/2250411 "2024-12-30T12:57:32Z")

</div>

I encountered a problem that when replicating movement, the character cannot turn off rotation replication, but if you turn off movement replication, then the addMovementInput function stops working. It would be enough f…

---

## [Level streaming with C++](https://forums.unrealengine.com/t/level-streaming-with-c/8823)

<div class="topic-metadata">

**Author:** [@andreschaaf](https://forums.unrealengine.com/u/andreschaaf)\
**Replies:** 12\
**Last updated:** [December 30, 2024, 1:05am UTC](https://forums.unrealengine.com/t/level-streaming-with-c/8823 "2024-12-30T01:05:45Z")

</div>

Hi everyone :D, I have a short question (or long). I have now searched for hours and tested some code but I can’t find information about correct level streaming with C++. What I want to do is: I have 2 maps (“map1”, …

---

## [Live coding not working](https://forums.unrealengine.com/t/live-coding-not-working/2244135)

<div class="topic-metadata">

**Author:** [@the.akii](https://forums.unrealengine.com/u/the.akii)\
**Replies:** 2\
**Last updated:** [December 29, 2024, 9:15pm UTC](https://forums.unrealengine.com/t/live-coding-not-working/2244135 "2024-12-29T21:15:51Z")

</div>

When I make changes to my .cpp file and activate live coding, it states that it finished successfully, but no code changes were detected. I saved all my files in the IDE, but I saw no changes in the editor.

---

## [HD stock footage clip and print the day and time to explore new yeyr and I am a little more about the year and a lot to ](https://forums.unrealengine.com/t/hd-stock-footage-clip-and-print-the-day-and-time-to-explore-new-yeyr-and-i-am-a-little-more-about-the-year-and-a-lot-to/2248891)

<div class="topic-metadata">

**Author:** [@Nasimkhan000](https://forums.unrealengine.com/u/Nasimkhan000)\
**Replies:** 0\
**Last updated:** [December 29, 2024, 2:50pm UTC](https://forums.unrealengine.com/t/hd-stock-footage-clip-and-print-the-day-and-time-to-explore-new-yeyr-and-i-am-a-little-more-about-the-year-and-a-lot-to/2248891 "2024-12-29T14:50:47Z")

</div>

HD stock video clip to understand and I am a little more about your health and safety and I am not open Karo ok thanks for the delay I

---

## [Undefined symbol error in UUserToolBoxBaseBlueprint.](https://forums.unrealengine.com/t/undefined-symbol-error-in-uusertoolboxbaseblueprint/2248779)

<div class="topic-metadata">

**Author:** [@ErrorUnll](https://forums.unrealengine.com/u/ErrorUnll)\
**Replies:** 1\
**Last updated:** [December 29, 2024, 2:22pm UTC](https://forums.unrealengine.com/t/undefined-symbol-error-in-uusertoolboxbaseblueprint/2248779 "2024-12-29T14:22:56Z")

</div>

I’m trying to compile for carla-simulator in UBT22.04 UE5.5 and getting linker errors. ld.lld: error: undefined symbol: UUserToolBoxBaseBlueprint::Execute() \>\>\> referenced by Module.UserToolBoxCore.cpp \>\>\> …

---

## [Got symbol already defined error when updating project from UE 5.2 to UE 5.5](https://forums.unrealengine.com/t/got-symbol-already-defined-error-when-updating-project-from-ue-5-2-to-ue-5-5/2248649)

<div class="topic-metadata">

**Author:** [@Ritanlisa](https://forums.unrealengine.com/u/Ritanlisa)\
**Replies:** 0\
**Last updated:** [December 29, 2024, 12:08pm UTC](https://forums.unrealengine.com/t/got-symbol-already-defined-error-when-updating-project-from-ue-5-2-to-ue-5-5/2248649 "2024-12-29T12:08:17Z")

</div>

My static Class Member in my plugin got LNK2005 Error : symbol already defined in object when I was trying to update my project to UE 5.5, and it can work correctly in UE 5.2 source codes are below: These code comes fro…

---

## [How to make custom Attach function?](https://forums.unrealengine.com/t/how-to-make-custom-attach-function/2247617)

<div class="topic-metadata">

**Author:** [@Svyatoslavka](https://forums.unrealengine.com/u/Svyatoslavka)\
**Replies:** 0\
**Last updated:** [December 28, 2024, 6:04pm UTC](https://forums.unrealengine.com/t/how-to-make-custom-attach-function/2247617 "2024-12-28T18:04:10Z")

</div>

I am trying to create my own Attach function Astor to Component because of fundamental problems with the Attach function. My problem is that I apparently do not understand the math and my function does not work even thou…

---

## [APawn::UnPossessed for owning client?](https://forums.unrealengine.com/t/apawn-unpossessed-for-owning-client/2247942)

<div class="topic-metadata">

**Author:** [@ADIAN](https://forums.unrealengine.com/u/ADIAN)\
**Replies:** 6\
**Last updated:** [December 29, 2024, 7:50am UTC](https://forums.unrealengine.com/t/apawn-unpossessed-for-owning-client/2247942 "2024-12-29T07:50:41Z")

</div>

Possessed and Unpossessed events called only on server, but i also need for owner client. For possessed i found ReceiveRestarted that suits me. I’m creating widget for client when possessed and wanna delete it when unpos…

---

## [I yet again need help](https://forums.unrealengine.com/t/i-yet-again-need-help/2247550)

<div class="topic-metadata">

**Author:** [@Ryoko\_235](https://forums.unrealengine.com/u/Ryoko_235)\
**Replies:** 0\
**Last updated:** [December 28, 2024, 5:17pm UTC](https://forums.unrealengine.com/t/i-yet-again-need-help/2247550 "2024-12-28T17:17:00Z")

</div>

so Before the 5.5 update my skeletal worked perfectly, but since the update this is how the skeletal mesh imports: But in Blender it is perfectly fine. I even tried re-importing an old mesh and it had the same…

---

## [Im having an issue with the CharacterMesh-\>LinkAnimClassLayers function](https://forums.unrealengine.com/t/im-having-an-issue-with-the-charactermesh-linkanimclasslayers-function/1980189)

<div class="topic-metadata">

**Author:** [@ArcherHero22](https://forums.unrealengine.com/u/ArcherHero22)\
**Replies:** 2\
**Last updated:** [December 28, 2024, 4:44pm UTC](https://forums.unrealengine.com/t/im-having-an-issue-with-the-charactermesh-linkanimclasslayers-function/1980189 "2024-12-28T16:44:20Z")

</div>

In my game I have found that the CharacterMesh-\>LinkAnimClassLayers function only works correctly in the beginplay function. Context: I am developing a mutliplayer game and I have already confirmed that my server and re…

---

## [Disable World Tick?](https://forums.unrealengine.com/t/disable-world-tick/155177)

<div class="topic-metadata">

**Author:** [@bo0olean](https://forums.unrealengine.com/u/bo0olean)\
**Replies:** 9\
**Last updated:** [December 28, 2024, 3:54pm UTC](https://forums.unrealengine.com/t/disable-world-tick/155177 "2024-12-28T15:54:40Z")

</div>

Hi, I want to completely control the tick of all actors in the world. I found in class UWorld a variable called bShouldTick. There is a note on top that says this : I toggle this bShouldTick value from a remote client…

---

## [Trying to add shading model makes code unable to compile](https://forums.unrealengine.com/t/trying-to-add-shading-model-makes-code-unable-to-compile/419200)

<div class="topic-metadata">

**Author:** [@Jeyna](https://forums.unrealengine.com/u/Jeyna)\
**Replies:** 2\
**Last updated:** [December 28, 2024, 2:24pm UTC](https://forums.unrealengine.com/t/trying-to-add-shading-model-makes-code-unable-to-compile/419200 "2024-12-28T14:24:35Z")

</div>

Hello, this is my first time ever asking something on here, so I hope this will be alright. I tried searching for similar topics but couldn’t find anything that seemed to be related to the problem I am experiencing righ…

---

## [\[RESOLVED\] Referencing UMG Widgets in Code - error LNK2019](https://forums.unrealengine.com/t/resolved-referencing-umg-widgets-in-code-error-lnk2019/132252)

<div class="topic-metadata">

**Author:** [@UltiPango](https://forums.unrealengine.com/u/UltiPango)\
**Replies:** 10\
**Last updated:** [December 28, 2024, 2:11pm UTC](https://forums.unrealengine.com/t/resolved-referencing-umg-widgets-in-code-error-lnk2019/132252 "2024-12-28T14:11:18Z")

</div>

Hello, looking to create a button in a HUD, linked to a method of a class, I followed this tutorial: https://wiki.unrealengine.com/UMG,\_R…dding\_Modules: but when I copy the code provided, and I compile / generate the c…

---

## [Set button style from code?](https://forums.unrealengine.com/t/set-button-style-from-code/226885)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_46dc83731](https://forums.unrealengine.com/u/anonymous_user_46dc83731)\
**Replies:** 1\
**Last updated:** [December 28, 2024, 12:05pm UTC](https://forums.unrealengine.com/t/set-button-style-from-code/226885 "2024-12-28T12:05:07Z")

</div>

Hey does anyone know how I can set a UButton’s style from code to normal, pressed, etc. Any help is much appreciated, thank you! :slight\_smile:

---

## [Create new C++ Plugin - error in technique](https://forums.unrealengine.com/t/create-new-c-plugin-error-in-technique/884006)

<div class="topic-metadata">

**Author:** [@DavidCDejavu](https://forums.unrealengine.com/u/DavidCDejavu)\
**Replies:** 12\
**Last updated:** [December 28, 2024, 7:58am UTC](https://forums.unrealengine.com/t/create-new-c-plugin-error-in-technique/884006 "2024-12-28T07:58:06Z")

</div>

I am experiencing problems with creating a new plugin, which I think might be caused by an error in my approach. I am hoping someone more experienced might point out the step I am missing. Create new UE5 project, wit…

---

## [How can I get my DynamicMeshActor to update the displayed mesh after updating the FDynamicMesh3 component ?](https://forums.unrealengine.com/t/how-can-i-get-my-dynamicmeshactor-to-update-the-displayed-mesh-after-updating-the-fdynamicmesh3-component/2246652)

<div class="topic-metadata">

**Author:** [@c.iseli](https://forums.unrealengine.com/u/c.iseli)\
**Replies:** 0\
**Last updated:** [December 28, 2024, 2:27am UTC](https://forums.unrealengine.com/t/how-can-i-get-my-dynamicmeshactor-to-update-the-displayed-mesh-after-updating-the-fdynamicmesh3-component/2246652 "2024-12-28T02:27:53Z")

</div>

Hello, I am using UE version 5.5. I followed the tutorial from gradientspace here https://www.gradientspace.com/tutorials/2020/10/23/runtime-mesh-generation-in-ue426 and created a simple Actor derived from ADynamicMesh…

---

## [Live Coding not detecting changes](https://forums.unrealengine.com/t/live-coding-not-detecting-changes/124583)

<div class="topic-metadata">

**Author:** [@CHADALAK1](https://forums.unrealengine.com/u/CHADALAK1)\
**Replies:** 5\
**Last updated:** [December 27, 2024, 8:22pm UTC](https://forums.unrealengine.com/t/live-coding-not-detecting-changes/124583 "2024-12-27T20:22:03Z")

</div>

Hello Community! I was trying out the Live Coding Feature and was just trying to change a few things in the .cpp side of things (just adding a log). However, It appears that the Live Coding feature doesn’t detect the ch…

---

## [How to Understand Asset Bundle Name Usage in Lyra Project?](https://forums.unrealengine.com/t/how-to-understand-asset-bundle-name-usage-in-lyra-project/2245597)

<div class="topic-metadata">

**Author:** [@Ryo07](https://forums.unrealengine.com/u/Ryo07)\
**Replies:** 0\
**Last updated:** [December 27, 2024, 2:33pm UTC](https://forums.unrealengine.com/t/how-to-understand-asset-bundle-name-usage-in-lyra-project/2245597 "2024-12-27T14:33:33Z")

</div>

In LyraExperienceManagerComponent, it add 3 Bundle Name ‘Equipped’, ‘Client’, ‘Server’: TArray\<FName\> BundlesToLoad; BundlesToLoad.Add(FLyraBundles::Equipped); //@TODO: Centralize this client/server stuff into the LyraA…

---

## [VectorMatrixMultiply](https://forums.unrealengine.com/t/vectormatrixmultiply/2245557)

<div class="topic-metadata">

**Author:** [@choiyeonchan](https://forums.unrealengine.com/u/choiyeonchan)\
**Replies:** 0\
**Last updated:** [December 27, 2024, 2:11pm UTC](https://forums.unrealengine.com/t/vectormatrixmultiply/2245557 "2024-12-27T14:11:59Z")

</div>

I am curious about how VectorMatrixMultiply works in Unreal Engine 5. void VectorMatrixMultiply(FMatrix44f\* Result, const FMatrix44f\* Matrix1, const FMatrix44f\* Matrix2) { const VectorRegister4Float\* A = (const Vector…

---

## [How to Make a Function that Convert Runtime Float Curve into a Float Curve object](https://forums.unrealengine.com/t/how-to-make-a-function-that-convert-runtime-float-curve-into-a-float-curve-object/1317791)

<div class="topic-metadata">

**Author:** [@GGUMINGUUU](https://forums.unrealengine.com/u/GGUMINGUUU)\
**Replies:** 1\
**Last updated:** [December 27, 2024, 1:35pm UTC](https://forums.unrealengine.com/t/how-to-make-a-function-that-convert-runtime-float-curve-into-a-float-curve-object/1317791 "2024-12-27T13:35:17Z")

</div>

Hello there , Im trying to find a way to convert a Runtime Float Curve into a Float Curve ( which could be used as to the Set Curve to a Timeline. I’m not a pro on unreal C++ ; so i suck at this early time here is so fa…

---

## [GetActorForwardVector & GetActorRightVector point in the same direction](https://forums.unrealengine.com/t/getactorforwardvector-getactorrightvector-point-in-the-same-direction/2245236)

<div class="topic-metadata">

**Author:** [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Replies:** 4\
**Last updated:** [December 27, 2024, 10:11am UTC](https://forums.unrealengine.com/t/getactorforwardvector-getactorrightvector-point-in-the-same-direction/2245236 "2024-12-27T10:11:37Z")

</div>

I expected these two vectors to be perpendicular to each other. However, they point in the same direction. Also when the pawn turns the vectors does not move. this is the code: DrawDebugLine(GetWorld(), NPC-\>GetActor…

---

## [AddControllerYawInput without using PlayerController](https://forums.unrealengine.com/t/addcontrolleryawinput-without-using-playercontroller/31853)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_5be014f9](https://forums.unrealengine.com/u/anonymous_user_5be014f9)\
**Replies:** 1\
**Last updated:** [December 27, 2024, 5:53am UTC](https://forums.unrealengine.com/t/addcontrolleryawinput-without-using-playercontroller/31853 "2024-12-27T05:53:13Z")

</div>

Hey, I have a character which the player can not control it at the start of the game. On the begining of the game the player controls the camera. Therefore on the begin: Camera: AutoPossessPlayer = EAutoReceiveInput::…

---

## [How do you get an FRSAKeyHandle from a public RSA key file?](https://forums.unrealengine.com/t/how-do-you-get-an-frsakeyhandle-from-a-public-rsa-key-file/610202)

<div class="topic-metadata">

**Author:** [@CdrJameson](https://forums.unrealengine.com/u/CdrJameson)\
**Replies:** 3\
**Last updated:** [December 26, 2024, 3:51pm UTC](https://forums.unrealengine.com/t/how-do-you-get-an-frsakeyhandle-from-a-public-rsa-key-file/610202 "2024-12-26T15:51:56Z")

</div>

I have an RSA signed file and the public RSA key of the signer (as a text file). I will validate the signature by calling IEngineCrypto::DecryptPublic() but first I need to turn my RSA key file into the FRSAKeyHandle th…

---

## [Is is safe to call "trace" methods from another thread?](https://forums.unrealengine.com/t/is-is-safe-to-call-trace-methods-from-another-thread/127950)

<div class="topic-metadata">

**Author:** [@scha](https://forums.unrealengine.com/u/scha)\
**Replies:** 5\
**Last updated:** [December 26, 2024, 2:03pm UTC](https://forums.unrealengine.com/t/is-is-safe-to-call-trace-methods-from-another-thread/127950 "2024-12-26T14:03:11Z")

</div>

Is it safe to call trace functions, like OverlapMultiByObjectType, from another thread (not the game thread)? I’ve put my traces in an AsyncTask and the speedup is pretty awesome, but is that safe or I’m just being luck…

---

## [Create a new Custom Trace Channel at runtime? (C++)](https://forums.unrealengine.com/t/create-a-new-custom-trace-channel-at-runtime-c/753463)

<div class="topic-metadata">

**Author:** [@Anti-Wisdom](https://forums.unrealengine.com/u/Anti-Wisdom)\
**Replies:** 3\
**Last updated:** [December 26, 2024, 12:34pm UTC](https://forums.unrealengine.com/t/create-a-new-custom-trace-channel-at-runtime-c/753463 "2024-12-26T12:34:48Z")

</div>

I know how to create custom Trace channels or object types using the Project settings, but I’m making a plugin and would like this process to become automated on startup of the game. I’ve seen very little information on…

---

## [GetActorForwardVector gets Camera angle, not actual forward vector](https://forums.unrealengine.com/t/getactorforwardvector-gets-camera-angle-not-actual-forward-vector/2239388)

<div class="topic-metadata">

**Author:** [@AWEntertain](https://forums.unrealengine.com/u/AWEntertain)\
**Replies:** 1\
**Last updated:** [December 26, 2024, 9:50am UTC](https://forums.unrealengine.com/t/getactorforwardvector-gets-camera-angle-not-actual-forward-vector/2239388 "2024-12-26T09:50:51Z")

</div>

void AMyCamera::Move(const FInputActionValue& Value) { const FVector2D DirectionValue = Value.Get\<FVector2D\>(); FVector Forward = GetActorForwardVector(); AddMovementInput(Forward\*12, DirectionValue.Y); FVecto…

---

## [I upgraded City Sample project to version 5.2 but have problems with Traffic plugin](https://forums.unrealengine.com/t/i-upgraded-city-sample-project-to-version-5-2-but-have-problems-with-traffic-plugin/1264130)

<div class="topic-metadata">

**Author:** [@wolfofRome0607](https://forums.unrealengine.com/u/wolfofRome0607)\
**Replies:** 2\
**Last updated:** [December 26, 2024, 3:24am UTC](https://forums.unrealengine.com/t/i-upgraded-city-sample-project-to-version-5-2-but-have-problems-with-traffic-plugin/1264130 "2024-12-26T03:24:42Z")

</div>

Hello Unreal Talents, I recently upgraded my v5.0 CitySample project (which I have extensively customized) to v5.2. However, I’m encountering a problem where Unreal Engine crashes when I try to run the project, and I’m …

---

## [Morph Targets of custom metahuman missing](https://forums.unrealengine.com/t/morph-targets-of-custom-metahuman-missing/2243071)

<div class="topic-metadata">

**Author:** [@Tobe](https://forums.unrealengine.com/u/Tobe)\
**Replies:** 1\
**Last updated:** [December 26, 2024, 4:53am UTC](https://forums.unrealengine.com/t/morph-targets-of-custom-metahuman-missing/2243071 "2024-12-26T04:53:31Z")

</div>

Hello, I create a custom metahuman with mesh to metahuman and when i import it into UE5 it’s missing all of the morph targets for the face mesh. If i donwload an unmodified stock metahuman the morph targets are there and…

---

## [Packege Error](https://forums.unrealengine.com/t/packege-error/1938271)

<div class="topic-metadata">

**Author:** [@lArch1tectl](https://forums.unrealengine.com/u/lArch1tectl)\
**Replies:** 4\
**Last updated:** [December 26, 2024, 1:03am UTC](https://forums.unrealengine.com/t/packege-error/1938271 "2024-12-26T01:03:00Z")

</div>

ATHelper: Packaging (Windows): LogShaderCompilers: Error: ShaderCompileWorker terminated unexpectedly! Falling back to directly compiling which will be very slow. Thread 1. UATHelper: Packaging (Windows): LogShaderCom…

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

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