Hello, i have the MuzzleFlash socket in my rifle with scale 1.0, 1.0, 1.0 and i have an object that i want to attach to it that has scale 0.3, 0.3, 0.3. When i use ObjectToAttach->AttachRootComponentTo(WeaponMesh, “MuzzleFlash”, EAttachLocation::SnapToTarget) the Object resets it’s scale to the Socket Scale. how can i prevent him from doing that?
You can try call
ObjectToAttach->SetRelativeScale3D(FVector(0.3f,0.3f,0.3f));
after attachment or you can try set bAbsoluteScale on ObjectToAttach before attachment.
1 Like
I did the bAbsoluteScale and it worked thanks, can you make it an answer so i mark it as accepted?
Worked for me. Took me a minute or two before I started looking at the root component rather than the actor for bAbsoluteScale.
1 Like
Yesssss thanks for this.