Reordering "inherited" components?

Hello everyone!

I’ve got a little bit of an issue here that I really want to figure out. Haha! So I’m trying to make a “True FPS Camera” in my UE4 project (EXACTLY like the one found in this video: - YouTube), but I am using the C++ Templates, not the Blueprints Templates (because my team is scripting in C++). This makes it so whenever I edit the Third Person character in the Blueprint Editor, I can’t make the FollowCamera a child of the Player Mesh because it says “The selected component is inherited and cannot be reordered here.” Does anybody know how I can adjust the parents and children of these objects even though they are “inherited?” If anybody could help me, I would REALLY appreciate it. Thank you all!

-Jake

Hi Nybro,

Please review this AnswerHub post answer that posts the same error and see if it resolves your issue:

https://answers.unrealengine.com/questions/363888/twinstickshooter-the-selected-component-is-inherit.html

Thanks,

.

I am having the same problem and it does not!

I did not watch the video, but if I understand your question correctly you want to achieve something like this:

131543-camera-01.png

That is pretty easy:

class ANSWERHUB_API ACameraCharacter : public ATP_ThirdPersonCharacter
{
	GENERATED_BODY()
	
public:
	ACameraCharacter();
};

ACameraCharacter::ACameraCharacter()
{
	GetCameraBoom()->AttachToComponent(GetMesh(), FAttachmentTransformRules::KeepWorldTransform);
}

(If you don’t want the camera boom you obviously attach the FollowCamera directly:

GetFollowCamera()->AttachToComponent(GetMesh(), FAttachmentTransformRules::KeepWorldTransform);

131544-camera-02.png

It is what was originally written in ACameraActor.h so it didn’t work for me, I could do it in a duplicate BP project but not in C++. My camera loses mesh position when my character comes to ragdoll.