# Actor Factories are not being called when blueprints inherit from code

**URL:** <https://forums.unrealengine.com/t/actor-factories-are-not-being-called-when-blueprints-inherit-from-code/2491950>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [May 5, 2025, 5:40pm UTC](https://forums.unrealengine.com/t/actor-factories-are-not-being-called-when-blueprints-inherit-from-code/2491950 "2025-05-05T17:40:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarkMaratea1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MarkMaratea1](https://forums.unrealengine.com/u/MarkMaratea1)\
**Post date:** [May 5, 2025, 5:40pm UTC](https://forums.unrealengine.com/t/actor-factories-are-not-being-called-when-blueprints-inherit-from-code/2491950/1 "2025-05-05T17:40:34Z")

</div>

Specific use case is the WaterBody plugin. Created a blueprint from WaterBodyLake. WBL has an actor factory that does a bunch of work including setting up the materials. The BP version does not call any of that.

The root cause appears to be that FLevelEditorViewportClient::TryPlacingAssetObject is early outing from the ActorFactory search because of if ( ObjectClass-\>IsChildOf( AActor::StaticClass() ) ).

Is there a preferred method of ensuring that blueprint versions of actor factory supported C++ classes are actually getting used?
