# ChildActor SetChildActorClass not attaching to parent

**URL:** <https://forums.unrealengine.com/t/childactor-setchildactorclass-not-attaching-to-parent/335253>\
**Category:** Blueprint\
**Tags:** unreal-engine, bug-report, question, CPP, Blueprint\
**Created:** [October 14, 2015, 11:00am UTC](https://forums.unrealengine.com/t/childactor-setchildactorclass-not-attaching-to-parent/335253 "2015-10-14T11:00:38Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Azarus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Azarus](https://forums.unrealengine.com/u/Azarus)\
**Post date:** [October 14, 2015, 11:00am UTC](https://forums.unrealengine.com/t/childactor-setchildactorclass-not-attaching-to-parent/335253/1 "2015-10-14T11:00:38Z")

</div>

I noticed a bug related to the **UChildActorComponent**

The problem occurs when i call the SetChildActorClass at runtime, And it’s not attaching the new Actor to the ChildActorComponent and it causes the child actor to not to inherit the parent actor’s transform.

I guess its not the expected behavior. The problem occurs only when i set the actor class at **runtime**.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [October 14, 2015, 8:28pm UTC](https://forums.unrealengine.com/t/childactor-setchildactorclass-not-attaching-to-parent/335253/2 "2015-10-14T20:28:47Z")

</div>

Hi ,

1. Does this occur in a clean, blank project with no additional content or is it limited to one project?
2. What are the steps you have taken to reproduce this on your end?
3. Is this a blueprint or c++ project?
4. Did you get the editor from the launcher or github?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [October 19, 2015, 2:57pm UTC](https://forums.unrealengine.com/t/childactor-setchildactorclass-not-attaching-to-parent/335253/3 "2015-10-19T14:57:29Z")

</div>

Hi ,

We have not heard from you in several days. I am marking this as answered for tracking purposes. If you are still experiencing this error, please comment with the requested information.

---

<div class="post-metadata">

**Author:** ![Azarus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Azarus](https://forums.unrealengine.com/u/Azarus)\
**Post date:** [October 19, 2015, 3:05pm UTC](https://forums.unrealengine.com/t/childactor-setchildactorclass-not-attaching-to-parent/335253/4 "2015-10-19T15:05:09Z")

</div>

Here are the project files:  
[https://drive.google.com/file/d/0BwYQPvBaUAHGbFdlaG8xc0VXWnc/view?usp=sharing](https://drive.google.com/file/d/0BwYQPvBaUAHGbFdlaG8xc0VXWnc/view?usp=sharing)

The problem is simple and very easy to reproduce.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [October 19, 2015, 5:55pm UTC](https://forums.unrealengine.com/t/childactor-setchildactorclass-not-attaching-to-parent/335253/5 "2015-10-19T17:55:39Z")

</div>

Hi ,

What steps do I need to take to reproduce this on my end with the project you sent?

---

<div class="post-metadata">

**Author:** ![Azarus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Azarus](https://forums.unrealengine.com/u/Azarus)\
**Post date:** [October 20, 2015, 3:02pm UTC](https://forums.unrealengine.com/t/childactor-setchildactorclass-not-attaching-to-parent/335253/6 "2015-10-20T15:02:15Z")

</div>

Open the project, press play and keep pressing T. The child actor won’t inherit it’s parent transform. My guess its because its not attaching correctly. Or is it the expected behavior?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [October 21, 2015, 2:08pm UTC](https://forums.unrealengine.com/t/childactor-setchildactorclass-not-attaching-to-parent/335253/7 "2015-10-21T14:08:40Z")

</div>

Try running a print string off of the T event, is it printing the string as you would expect it to?

---

<div class="post-metadata">

**Author:** ![Azarus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Azarus](https://forums.unrealengine.com/u/Azarus)\
**Post date:** [October 22, 2015, 10:31am UTC](https://forums.unrealengine.com/t/childactor-setchildactorclass-not-attaching-to-parent/335253/8 "2015-10-22T10:31:23Z")

</div>

The problem is not with the the Press T event. The event is being fired. The Set Child Actor Class function is being called. The problem is that its not attaching the child actor to the component correctly. So when the parent component is rotating, the child actor stands still.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [October 22, 2015, 7:00pm UTC](https://forums.unrealengine.com/t/childactor-setchildactorclass-not-attaching-to-parent/335253/9 "2015-10-22T19:00:02Z")

</div>

I was able to reproduce this on my end and have entered a bug report, UE-22528, to be assessed by the development staff.

---

<div class="post-metadata">

**Author:** ![Azarus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Azarus](https://forums.unrealengine.com/u/Azarus)\
**Post date:** [October 26, 2015, 12:26pm UTC](https://forums.unrealengine.com/t/childactor-setchildactorclass-not-attaching-to-parent/335253/10 "2015-10-26T12:26:12Z")

</div>

Thank you !
