# C++

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

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

**Page:** 56

---

## [Modify/Rebuild an Engine Plugin](https://forums.unrealengine.com/t/modify-rebuild-an-engine-plugin/2274132)

<div class="topic-metadata">

**Author:** [@dragonhuang97](https://forums.unrealengine.com/u/dragonhuang97)\
**Replies:** 9\
**Last updated:** [January 31, 2025, 9:53pm UTC](https://forums.unrealengine.com/t/modify-rebuild-an-engine-plugin/2274132 "2025-01-31T21:53:47Z")

</div>

Hello, I’m trying to add some custom source code to an engine plugin (MassAI), but I get the “cannot open source file xxx.generated.h” error. After some search it seems to me that rebuilding the solution will not autom…

---

## [UE5 Skeletal mesh merge w/ morph targets \[help required\]](https://forums.unrealengine.com/t/ue5-skeletal-mesh-merge-w-morph-targets-help-required/728793)

<div class="topic-metadata">

**Author:** [@StephenOsborne](https://forums.unrealengine.com/u/StephenOsborne)\
**Replies:** 6\
**Last updated:** [January 31, 2025, 5:33pm UTC](https://forums.unrealengine.com/t/ue5-skeletal-mesh-merge-w-morph-targets-help-required/728793 "2025-01-31T17:33:51Z")

</div>

Hello, I’ve been trying to generate a skeletal mesh with morph targets. The reason I’m doing this, is because it is a modular character, with lerping between morph targets. I can render the character, but the morph ta…

---

## [Error Building A Game From Xcode; ExternalBuildToolExecution & Internal inconsistency error](https://forums.unrealengine.com/t/error-building-a-game-from-xcode-externalbuildtoolexecution-internal-inconsistency-error/1805415)

<div class="topic-metadata">

**Author:** [@User-e62ce81b56](https://forums.unrealengine.com/u/User-e62ce81b56)\
**Replies:** 6\
**Last updated:** [January 31, 2025, 2:47am UTC](https://forums.unrealengine.com/t/error-building-a-game-from-xcode-externalbuildtoolexecution-internal-inconsistency-error/1805415 "2025-01-31T02:47:57Z")

</div>

I’m trying to build a game using Xcode 15.3 with Unreal Engine 5.3.2 and I get these errors: Internal inconsistency error: never received target ended message for target ID '1' (in target 'Test\_Build' from project 'Test…

---

## [UE 5.5 Source Linux Compilation Errors](https://forums.unrealengine.com/t/ue-5-5-source-linux-compilation-errors/2148769)

<div class="topic-metadata">

**Author:** [@Origins](https://forums.unrealengine.com/u/Origins)\
**Replies:** 3\
**Last updated:** [January 10, 2025, 8:05pm UTC](https://forums.unrealengine.com/t/ue-5-5-source-linux-compilation-errors/2148769 "2025-01-10T20:05:32Z")

</div>

Compiling 5.5 from source throwing these errors. Any help would be appreciated. Also using Ubuntu No errors or warnings while generating project files

---

## [Whats the best way to Respawn and Actor with the same FName](https://forums.unrealengine.com/t/whats-the-best-way-to-respawn-and-actor-with-the-same-fname/2308274)

<div class="topic-metadata">

**Author:** [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Replies:** 10\
**Last updated:** [January 31, 2025, 12:37am UTC](https://forums.unrealengine.com/t/whats-the-best-way-to-respawn-and-actor-with-the-same-fname/2308274 "2025-01-31T00:37:15Z")

</div>

The Problem: If I destroy and Actor it doesn’t free up its FName, so if i spawn a new Actor with SpawnParams.Name the editor will crash. I’ve tried forcing garbage collection to free the name. Can workaround the crash…

---

## [Function "SetActorRotation " when called on the server side is being arbitrarily replicated to clients](https://forums.unrealengine.com/t/function-setactorrotation-when-called-on-the-server-side-is-being-arbitrarily-replicated-to-clients/2310802)

<div class="topic-metadata">

**Author:** [@TheSubZer0](https://forums.unrealengine.com/u/TheSubZer0)\
**Replies:** 13\
**Last updated:** [January 30, 2025, 11:51pm UTC](https://forums.unrealengine.com/t/function-setactorrotation-when-called-on-the-server-side-is-being-arbitrarily-replicated-to-clients/2310802 "2025-01-30T23:51:11Z")

</div>

Can anyone help, how do I make the function when called on the server side SetActorRotation(NewRotation, TeleportFlagToEnum(bTeleportPhysics)); to stop arbitrarily replicating to the clients???

---

## [Rotation Struggles ](https://forums.unrealengine.com/t/rotation-struggles/2310944)

<div class="topic-metadata">

**Author:** [@BuchananWill](https://forums.unrealengine.com/u/BuchananWill)\
**Replies:** 0\
**Last updated:** [January 30, 2025, 8:59pm UTC](https://forums.unrealengine.com/t/rotation-struggles/2310944 "2025-01-30T20:59:36Z")

</div>

I’m new at using the Unreal Engine, and it took me all this hacking to implement a rotation action that didn’t flip/pirouette crazily around the 0/360 crossover. Is there a much easier/simpler way I should have done this…

---

## [Compile Failed because of build files. ](https://forums.unrealengine.com/t/compile-failed-because-of-build-files/2310505)

<div class="topic-metadata">

**Author:** [@Aga45678](https://forums.unrealengine.com/u/Aga45678)\
**Replies:** 5\
**Last updated:** [January 30, 2025, 8:29pm UTC](https://forums.unrealengine.com/t/compile-failed-because-of-build-files/2310505 "2025-01-30T20:29:51Z")

</div>

After 3 days of not opening my project I came across this problem on this old post. Right now I opened my project and I saw an error saying my weapon blueprint (the one I created last time I was working) isn’t derived …

---

## [Are the initial properties of a replicated actor set before BeginPlay on clients?](https://forums.unrealengine.com/t/are-the-initial-properties-of-a-replicated-actor-set-before-beginplay-on-clients/633851)

<div class="topic-metadata">

**Author:** [@zos](https://forums.unrealengine.com/u/zos)\
**Replies:** 3\
**Last updated:** [January 30, 2025, 7:34pm UTC](https://forums.unrealengine.com/t/are-the-initial-properties-of-a-replicated-actor-set-before-beginplay-on-clients/633851 "2025-01-30T19:34:55Z")

</div>

If I have a replicated actor with a replicated property that is COND\_InitialOnly: class AMyActor : public AActor { /\*...\*/ AMyActor::AMyActor { bReplciates = true; bAlwaysRelevant = true; …

---

## [Teleport BPawn with Lerp Control Rotation & Spring Arm Adjustments via Widget Buttons](https://forums.unrealengine.com/t/teleport-bpawn-with-lerp-control-rotation-spring-arm-adjustments-via-widget-buttons/2310119)

<div class="topic-metadata">

**Author:** [@hassan\_Abdalla\_s1](https://forums.unrealengine.com/u/hassan_Abdalla_s1)\
**Replies:** 1\
**Last updated:** [January 30, 2025, 4:39pm UTC](https://forums.unrealengine.com/t/teleport-bpawn-with-lerp-control-rotation-spring-arm-adjustments-via-widget-buttons/2310119 "2025-01-30T16:39:59Z")

</div>

Hi everyone, I’m trying to teleport my BPawn actor to multiple locations, each with a unique spring arm offset/length and a specific control rotation. I want to smoothly transition between these locations when pressing …

---

## [我在自己的电脑上使用visual studio 生成UE５源码版相关引擎和项目时经常出错, ](https://forums.unrealengine.com/t/visual-studio-ue/2310537)

<div class="topic-metadata">

**Author:** [@nidiebenren](https://forums.unrealengine.com/u/nidiebenren)\
**Replies:** 0\
**Last updated:** [January 30, 2025, 4:11pm UTC](https://forums.unrealengine.com/t/visual-studio-ue/2310537 "2025-01-30T16:11:20Z")

</div>

我在自己的电脑上使用visual studio 生成UE５源码版相关引擎和项目时经常出错,生成时经常输出MSB3073错误,不管哪个版本还是哪个项目都一样

---

## [How can I ensure my Gameplay Ability System Attributes will be visible to Gameplay Effect Modifiers?](https://forums.unrealengine.com/t/how-can-i-ensure-my-gameplay-ability-system-attributes-will-be-visible-to-gameplay-effect-modifiers/2309607)

<div class="topic-metadata">

**Author:** [@SAINT\_113](https://forums.unrealengine.com/u/SAINT_113)\
**Replies:** 1\
**Last updated:** [January 30, 2025, 6:38am UTC](https://forums.unrealengine.com/t/how-can-i-ensure-my-gameplay-ability-system-attributes-will-be-visible-to-gameplay-effect-modifiers/2309607 "2025-01-30T06:38:45Z")

</div>

I have created the following attribute set and I would like to be able to make a gameplay effect to reduce the health .etc. This attribute set has been applied to my Ability Component but it is not visible in the list of…

---

## [Best practices for inventories and items using Data Assets and Objects or Structs](https://forums.unrealengine.com/t/best-practices-for-inventories-and-items-using-data-assets-and-objects-or-structs/2293775)

<div class="topic-metadata">

**Author:** [@Tengo](https://forums.unrealengine.com/u/Tengo)\
**Replies:** 4\
**Last updated:** [January 30, 2025, 3:02am UTC](https://forums.unrealengine.com/t/best-practices-for-inventories-and-items-using-data-assets-and-objects-or-structs/2293775 "2025-01-30T03:02:27Z")

</div>

Hey everyone! Hope all is well. I wanted to reach out to see if anyone is familiar with what I’m considering for my project. Recently, I’ve been planning to create an inventory system, and through most of my research, I…

---

## [Casting to Interface vs Actor](https://forums.unrealengine.com/t/casting-to-interface-vs-actor/588574)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_3e7d0e17](https://forums.unrealengine.com/u/anonymous_user_3e7d0e17)\
**Replies:** 17\
**Last updated:** [January 30, 2025, 2:02am UTC](https://forums.unrealengine.com/t/casting-to-interface-vs-actor/588574 "2025-01-30T02:02:15Z")

</div>

Does casting to interface better than casting to actor in performance as some of YouTube content creators say ? Because what I know about interfaces that they r used when a class has a function that multiple object have…

---

## [SetNumActiveBodies() does not trigger an UpdateViews() in Chaos's FPBDRigidsSOAs ](https://forums.unrealengine.com/t/setnumactivebodies-does-not-trigger-an-updateviews-in-chaoss-fpbdrigidssoas/2309711)

<div class="topic-metadata">

**Author:** [@lfarag](https://forums.unrealengine.com/u/lfarag)\
**Replies:** 0\
**Last updated:** [January 30, 2025, 1:48am UTC](https://forums.unrealengine.com/t/setnumactivebodies-does-not-trigger-an-updateviews-in-chaoss-fpbdrigidssoas/2309711 "2025-01-30T01:48:18Z")

</div>

Hi, we ran into an issue with Chaos rigid particles being disabled (usually via SetNumActiveBodies) but still sticking around in the ActiveParticlesView that Chaos uses to iterate and simulate those particles. Skeletons…

---

## [VectorLength BP node to C++ ?](https://forums.unrealengine.com/t/vectorlength-bp-node-to-c/2309215)

<div class="topic-metadata">

**Author:** [@1xu7](https://forums.unrealengine.com/u/1xu7)\
**Replies:** 2\
**Last updated:** [January 29, 2025, 6:17pm UTC](https://forums.unrealengine.com/t/vectorlength-bp-node-to-c/2309215 "2025-01-29T18:17:20Z")

</div>

Hello… im translating some head bob mechanism bp to c++… but i could not pass from this point: APawn::GetVelocity() returns a FVector, but i could not find any VectorLength() function as part of FVector, may i missunder…

---

## [my character can see through walls](https://forums.unrealengine.com/t/my-character-can-see-through-walls/2309058)

<div class="topic-metadata">

**Author:** [@Arham\_Gamer\_01](https://forums.unrealengine.com/u/Arham_Gamer_01)\
**Replies:** 2\
**Last updated:** [January 29, 2025, 5:06pm UTC](https://forums.unrealengine.com/t/my-character-can-see-through-walls/2309058 "2025-01-29T17:06:23Z")

</div>

---

## [Check that two objects are EXACTLY the same?](https://forums.unrealengine.com/t/check-that-two-objects-are-exactly-the-same/29036)

<div class="topic-metadata">

**Author:** [@Jambax](https://forums.unrealengine.com/u/Jambax)\
**Replies:** 9\
**Last updated:** [January 29, 2025, 2:05pm UTC](https://forums.unrealengine.com/t/check-that-two-objects-are-exactly-the-same/29036 "2025-01-29T14:05:30Z")

</div>

I can’t find a simple way to do this using casting so I’m opening this to the floor… Essentially I have a base ‘Weapon’ class, which has numerous sub-classes created as Blueprints in the editor. What I want to do, is ch…

---

## [How to add impulse at location using AsyncPhysicsTick in C++?](https://forums.unrealengine.com/t/how-to-add-impulse-at-location-using-asyncphysicstick-in-c/2104427)

<div class="topic-metadata">

**Author:** [@playwithmewerder](https://forums.unrealengine.com/u/playwithmewerder)\
**Replies:** 3\
**Last updated:** [January 29, 2025, 1:23pm UTC](https://forums.unrealengine.com/t/how-to-add-impulse-at-location-using-asyncphysicstick-in-c/2104427 "2025-01-29T13:23:57Z")

</div>

When im trying to even simply get a body instance it throws out this: LogOutputDevice: Error: Ensure condition failed: IsInGameThreadContext()

---

## [Discussion: The (ab)use of IsValidLowLevel](https://forums.unrealengine.com/t/discussion-the-ab-use-of-isvalidlowlevel/21795)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_4fe9f58b1](https://forums.unrealengine.com/u/anonymous_user_4fe9f58b1)\
**Replies:** 8\
**Last updated:** [January 29, 2025, 1:25am UTC](https://forums.unrealengine.com/t/discussion-the-ab-use-of-isvalidlowlevel/21795 "2025-01-29T01:25:21Z")

</div>

Hey guys, There’s a few habits floating around the community that I’m not too keen on. One of them is calling IsValidLowLevel to verify the validity of objects. While it does include a null check, which is reasonable p…

---

## [Problems with C++ EnvQueryTests](https://forums.unrealengine.com/t/problems-with-c-envquerytests/2308560)

<div class="topic-metadata">

**Author:** [@MarcosBeFootball](https://forums.unrealengine.com/u/MarcosBeFootball)\
**Replies:** 0\
**Last updated:** [January 29, 2025, 9:56am UTC](https://forums.unrealengine.com/t/problems-with-c-envquerytests/2308560 "2025-01-29T09:56:32Z")

</div>

Hi. Im having troubles with EQS Tests. I have made an EQS test that choses X random items and that items pases the test an the rest fails. But when I am using the Test Purpose Filtering Only, when the Test founds one val…

---

## [Enhanced Input Bug](https://forums.unrealengine.com/t/enhanced-input-bug/2289558)

<div class="topic-metadata">

**Author:** [@DELGOODIE](https://forums.unrealengine.com/u/DELGOODIE)\
**Replies:** 1\
**Last updated:** [January 29, 2025, 6:17am UTC](https://forums.unrealengine.com/t/enhanced-input-bug/2289558 "2025-01-29T06:17:02Z")

</div>

UE-5.5 Binding enhanced input action events with the Started enum will call the bound function with an FInputActionValue(false). void UMeleeView::SetupInputComponent(UEnhancedInputComponent\* InputComponent) { Melee…

---

## [Actor spawns without mesh or collision component](https://forums.unrealengine.com/t/actor-spawns-without-mesh-or-collision-component/2307064)

<div class="topic-metadata">

**Author:** [@Phteven28](https://forums.unrealengine.com/u/Phteven28)\
**Replies:** 16\
**Last updated:** [January 28, 2025, 10:33pm UTC](https://forums.unrealengine.com/t/actor-spawns-without-mesh-or-collision-component/2307064 "2025-01-28T22:33:10Z")

</div>

Hey, I have an actor with a static mesh component and box collision. If I drag it into the level looks fine. But when I spawn it into the level (GetWorld()-\>SpawnActor\<\>) it spawns in the correct location but there is no…

---

## [Creating A UWidgetComponent at runtime in C++](https://forums.unrealengine.com/t/creating-a-uwidgetcomponent-at-runtime-in-c/2307710)

<div class="topic-metadata">

**Author:** [@BucketONaCl](https://forums.unrealengine.com/u/BucketONaCl)\
**Replies:** 1\
**Last updated:** [January 28, 2025, 7:28pm UTC](https://forums.unrealengine.com/t/creating-a-uwidgetcomponent-at-runtime-in-c/2307710 "2025-01-28T19:28:40Z")

</div>

Hey all, I need to be able to create a UWidgetComponent at runtime through C++, and I can’t seem to figure it out. I have tried using CreateDefaultSubobject, but it just crashes. I have also tried AddComponentByClass, a…

---

## [How to Store References to Subobject into other Subobjects](https://forums.unrealengine.com/t/how-to-store-references-to-subobject-into-other-subobjects/2307079)

<div class="topic-metadata">

**Author:** [@mrm\_dev](https://forums.unrealengine.com/u/mrm_dev)\
**Replies:** 1\
**Last updated:** [January 28, 2025, 4:02pm UTC](https://forums.unrealengine.com/t/how-to-store-references-to-subobject-into-other-subobjects/2307079 "2025-01-28T16:02:14Z")

</div>

I have a custom component which has an array of custom object as such: // Custom Component UCLASS(meta = (BlueprintSpawnableComponent)) class MYPROJECT\_API UMyComponent : public UActorComponent { GENERATED\_BODY() …

---

## [Instancing custom object in constructor](https://forums.unrealengine.com/t/instancing-custom-object-in-constructor/2303938)

<div class="topic-metadata">

**Author:** [@mrm\_dev](https://forums.unrealengine.com/u/mrm_dev)\
**Replies:** 1\
**Last updated:** [January 27, 2025, 1:28am UTC](https://forums.unrealengine.com/t/instancing-custom-object-in-constructor/2303938 "2025-01-27T01:28:47Z")

</div>

I have a custom uobject class as such (simplified version): UCLASS(DefaultToInstanced, Blueprintable, BlueprintType, EditInlineNew) class MYPROJECT\_API UMyObject : public UObject { GENERATED\_BODY() public: …

---

## [How to get local coordinates?](https://forums.unrealengine.com/t/how-to-get-local-coordinates/2304225)

<div class="topic-metadata">

**Author:** [@StevenX](https://forums.unrealengine.com/u/StevenX)\
**Replies:** 4\
**Last updated:** [January 28, 2025, 11:58am UTC](https://forums.unrealengine.com/t/how-to-get-local-coordinates/2304225 "2025-01-28T11:58:57Z")

</div>

I am using the code below, but when I press the button, the elevator doesn’t rise from its current position; instead, it goes to the origin. I checked the debug information, and the value assigned by this code is (0, 0, …

---

## [OnlineSession vs GameSession](https://forums.unrealengine.com/t/onlinesession-vs-gamesession/2272100)

<div class="topic-metadata">

**Author:** [@DELGOODIE](https://forums.unrealengine.com/u/DELGOODIE)\
**Replies:** 4\
**Last updated:** [January 28, 2025, 6:32am UTC](https://forums.unrealengine.com/t/onlinesession-vs-gamesession/2272100 "2025-01-28T06:32:55Z")

</div>

@FrostyJas o the unreal framework provides two classes: UOnlineSession and AGameSession. Both with seemingly similar functionality. The differences are: UOnlineSession Owned by Game Instance Persists for lifetime of ap…

---

## [Make a aim sight using FABRIK note. ](https://forums.unrealengine.com/t/make-a-aim-sight-using-fabrik-note/2306332)

<div class="topic-metadata">

**Author:** [@karotte2000](https://forums.unrealengine.com/u/karotte2000)\
**Replies:** 0\
**Last updated:** [January 27, 2025, 8:55pm UTC](https://forums.unrealengine.com/t/make-a-aim-sight-using-fabrik-note/2306332 "2025-01-27T20:55:05Z")

</div>

Make a aim sight using FABRIK note. Hi Iam try to build a aiming functionality inside my fps character. The Idea is to use an FABRIK node to place my hand\_rin front of the camera plus an offset of the iron sight on top …

---

## [Hitting Assert When Initializing SWrapBox ](https://forums.unrealengine.com/t/hitting-assert-when-initializing-swrapbox/2306214)

<div class="topic-metadata">

**Author:** [@Pablo\_Chung](https://forums.unrealengine.com/u/Pablo_Chung)\
**Replies:** 0\
**Last updated:** [January 27, 2025, 7:39pm UTC](https://forums.unrealengine.com/t/hitting-assert-when-initializing-swrapbox/2306214 "2025-01-27T19:39:05Z")

</div>

I’m currently running into this assertion when I’m trying to construct a SWrapBox: Slot Attributes has to be registered after the FSlot is constructed I was wondering if anyone might know why I might be hitting asserti…

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

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