How to place an actor to another actor's viewport?

I have a ShooterBP and a WeaponBP.

I want to place WeaponBP in the ShooterBP’s viewport. That will be good to see the shooter holding the weapon in the Editor.

How to do it?

Hello,

There are a couple of ways to do what you are looking to do:

  • You can add a Child Actor component and then set the child’s class to be your WeaponBP. This will then allow it to show up in the editor
  • You can get a reference to your weapon mesh and then attach it to a socket in your player’s hands or wherever you would like it to appear using the AttachComponentTo node.

Let me know if you have any further questions, and if so, please provide some screenshots of your setup.

Have a great day

The first one is perect for me. Thanks!