# Attach Component to Component when they are already attached

**URL:** <https://forums.unrealengine.com/t/attach-component-to-component-when-they-are-already-attached/2156480>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [November 28, 2024, 3:47pm UTC](https://forums.unrealengine.com/t/attach-component-to-component-when-they-are-already-attached/2156480 "2024-11-28T15:47:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ViaCognita](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/viacognita/32/906601_2.png) [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Post date:** [November 28, 2024, 3:47pm UTC](https://forums.unrealengine.com/t/attach-component-to-component-when-they-are-already-attached/2156480/1 "2024-11-28T15:47:02Z")

</div>

Hi!

If the Motion Controller Aim is already the parent of the Widget Interaction Component. What happens when I do this? Nothing?

 ![imagen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/a/b/2ab51466533434c5c17d40841e4cf1374789af1d.png)

Thanks!

---

<div class="post-metadata">

**Author:** ![Game\_Studios\_LLC](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/game_studios_llc/32/88709_2.png) [@Game\_Studios\_LLC](https://forums.unrealengine.com/u/Game_Studios_LLC)\
**Post date:** [November 29, 2024, 11:36pm UTC](https://forums.unrealengine.com/t/attach-component-to-component-when-they-are-already-attached/2156480/2 "2024-11-29T23:36:25Z")

</div>

Can I ask why you are doing this when you have it attached already?

---

<div class="post-metadata">

**Author:** ![silnarm](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/silnarm/32/955303_2.png) [@silnarm](https://forums.unrealengine.com/u/silnarm)\
**Post date:** [November 30, 2024, 12:06am UTC](https://forums.unrealengine.com/t/attach-component-to-component-when-they-are-already-attached/2156480/3 "2024-11-30T00:06:09Z")

</div>

```cpp
		if (bSameAttachParentAndSocket && LastAttachIndex != INDEX_NONE)
		{
			// already attached!
			return true;
		}

```

It will do nothing 🙂

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [December 30, 2024, 12:06am UTC](https://forums.unrealengine.com/t/attach-component-to-component-when-they-are-already-attached/2156480/4 "2024-12-30T00:06:45Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
