# Add Component to Blueprint using passed in Class

**URL:** <https://forums.unrealengine.com/t/add-component-to-blueprint-using-passed-in-class/39055>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [August 19, 2015, 9:41pm UTC](https://forums.unrealengine.com/t/add-component-to-blueprint-using-passed-in-class/39055 "2015-08-19T21:41:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Diddykonga](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Diddykonga](https://forums.unrealengine.com/u/Diddykonga)\
**Post date:** [August 19, 2015, 9:41pm UTC](https://forums.unrealengine.com/t/add-component-to-blueprint-using-passed-in-class/39055/1 "2015-08-19T21:41:32Z")

</div>

Hello, i noticed there is no way to add a Component to a Blueprint during runtime (Such as in BeginPlay Event), using a passed in class.  
This functionality works with the SpawnActor node, which allows you to pass in a Class that inherits from AActor, but there is no way to lets say add a ActorComponent based on a passed in class that inherits from ActorComponent.

Is there some way to create a node for blueprints, using C++ that would have this functionality?
