# Attaching a camera actor generated by blueprint to a different actor

**URL:** <https://forums.unrealengine.com/t/attaching-a-camera-actor-generated-by-blueprint-to-a-different-actor/483646>\
**Category:** Cinematics & Media\
**Tags:** unreal-engine, Blueprint, question, box-overlap\
**Created:** [May 19, 2021, 11:15pm UTC](https://forums.unrealengine.com/t/attaching-a-camera-actor-generated-by-blueprint-to-a-different-actor/483646 "2021-05-19T23:15:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CamJam246](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CamJam246](https://forums.unrealengine.com/u/CamJam246)\
**Post date:** [May 19, 2021, 11:15pm UTC](https://forums.unrealengine.com/t/attaching-a-camera-actor-generated-by-blueprint-to-a-different-actor/483646/1 "2021-05-19T23:15:25Z")

</div>

I’m working on a project that’s a side by side puzzle game. I’m currently trying to set up the camera movement. I have a box collider that detects when the player enters then generates a camera actor at specific coordinates. I want the camera to stay static and not move with the player, until they enter a different room. I want the player to then start using that room’s camera.

I have the Player with just the mesh, the PlayerController, then OverlapTrigger. Below is the code for the trigger. I’m thinking that I can attach the camera actor as a child to the players mesh and make the transform not editable. So far the trigger puts the camera in the right position, but now I need the PlayerController to actually use it. Grateful for any suggestions

 ![339302-overlaptriggercode.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/6/3/6630b43cd812ace675dc2520db9ffe1832d27a30.png)

 ![339304-playermesh.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/a/b/9ab35475d6c74ec8d36c1d95f4c90c5e7f549aa3.png)

 ![339305-pual.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/e/0/ce057bb94f213e727bceeb65f64d4fa2c76cfc84.jpeg)

CameraActor1 is what is generated by the trigger.  
sidenote- I don’t know what causes CameraActor and want to get rid of it. Think its the PlayerController. No biggie

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 20, 2021, 8:36am UTC](https://forums.unrealengine.com/t/attaching-a-camera-actor-generated-by-blueprint-to-a-different-actor/483646/2 "2021-05-20T08:36:19Z")

</div>

Why attach it to the player?

Best way is to have a blueprint which is either a camera with a collision volume, or a camera with a reference to a box trigger. When the player walks into the volume, just turn the camera on.

Do you get what I mean?

---

<div class="post-metadata">

**Author:** ![CamJam246](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CamJam246](https://forums.unrealengine.com/u/CamJam246)\
**Post date:** [May 21, 2021, 4:07am UTC](https://forums.unrealengine.com/t/attaching-a-camera-actor-generated-by-blueprint-to-a-different-actor/483646/3 "2021-05-21T04:07:46Z")

</div>

Yes I do and I realized it’s unnecessary to do that. How would I make the player see through the camera?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 21, 2021, 7:51am UTC](https://forums.unrealengine.com/t/attaching-a-camera-actor-generated-by-blueprint-to-a-different-actor/483646/4 "2021-05-21T07:51:15Z")

</div>

You can use ‘set view target with blend’:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/c/9/1c988635d52408791e915c0e51489c9ba9154595.jpeg "HTF do I? Change Cameras in Unreal Engine 4 Blueprints") ](https://www.youtube.com/watch?v=uW86ZGxesmc)
