# Blueprint class ignores SetActorEnableCollision() added to parent's C++ class constructor

**URL:** <https://forums.unrealengine.com/t/blueprint-class-ignores-setactorenablecollision-added-to-parents-c-class-constructor/374852>\
**Category:** World Creation\
**Tags:** unreal-engine, Collision, Blueprint, CPP, question\
**Created:** [October 30, 2016, 12:57am UTC](https://forums.unrealengine.com/t/blueprint-class-ignores-setactorenablecollision-added-to-parents-c-class-constructor/374852 "2016-10-30T00:57:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![koloden](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@koloden](https://forums.unrealengine.com/u/koloden)\
**Post date:** [October 30, 2016, 12:57am UTC](https://forums.unrealengine.com/t/blueprint-class-ignores-setactorenablecollision-added-to-parents-c-class-constructor/374852/1 "2016-10-30T00:57:04Z")

</div>

1. Create C++ class derived from AActor.
2. Create child blueprint class and add some mesh component to collide with.
3. Check we are actually colliding with it 🙂
4. Add SetActorEnableCollision(false) to parent’s class constructor.
5. We are still colliding ☹

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [October 31, 2016, 4:18pm UTC](https://forums.unrealengine.com/t/blueprint-class-ignores-setactorenablecollision-added-to-parents-c-class-constructor/374852/2 "2016-10-31T16:18:30Z")

</div>

Hey koloden-

The issue appears to be with the hot reload process rather than SetActorEnableCollision() not working. If you close the editor after step 5 above, you’ll find that the collision is properly being ignored upon reopening the project. This behavior of hot reload has been reported here: [Unreal Engine Issues and Bug Tracker (UE-38000)](https://issues.unrealengine.com/issue/UE-38000) . You can track the report’s status as the issue is reviewed by our development staff.

Cheers
