# Attaching a Camera to a Socket

**URL:** <https://forums.unrealengine.com/t/attaching-a-camera-to-a-socket/489207>\
**Category:** Cinematics & Media\
**Tags:** socket-reference, unreal-engine, question\
**Created:** [September 25, 2021, 9:05pm UTC](https://forums.unrealengine.com/t/attaching-a-camera-to-a-socket/489207 "2021-09-25T21:05:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TrainBoy319](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TrainBoy319](https://forums.unrealengine.com/u/TrainBoy319)\
**Post date:** [September 25, 2021, 9:05pm UTC](https://forums.unrealengine.com/t/attaching-a-camera-to-a-socket/489207/1 "2021-09-25T21:05:44Z")

</div>

I am trying to attach my camera to a socket on the head of my modular character, but it won’t attach. It doesn’t give any errors either. I am following along with a tutorial and this is how they did it.

 ![349347-untitled-drawing.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/0/1/f01841da35d94e7a11610f5fdcd87761a11207b4.png)

---

<div class="post-metadata">

**Author:** ![lucoiso](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lucoiso/32/820744_2.png) [@lucoiso](https://forums.unrealengine.com/u/lucoiso)\
**Post date:** [September 25, 2021, 9:09pm UTC](https://forums.unrealengine.com/t/attaching-a-camera-to-a-socket/489207/2 "2021-09-25T21:09:55Z")

</div>

You can do this in the BeginPlay or Possessed function, using the AttachToComponent function. I’m not 100% sure, but I think the skeletal mesh isn’t loaded when the SetupAttachment is called, so the function doesn’t find the socket. 🙂
