# How can I create a generic ActorComponent?

**URL:** <https://forums.unrealengine.com/t/how-can-i-create-a-generic-actorcomponent/351161>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [March 20, 2016, 5:51pm UTC](https://forums.unrealengine.com/t/how-can-i-create-a-generic-actorcomponent/351161 "2016-03-20T17:51:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![peicou](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@peicou](https://forums.unrealengine.com/u/peicou)\
**Post date:** [March 20, 2016, 5:51pm UTC](https://forums.unrealengine.com/t/how-can-i-create-a-generic-actorcomponent/351161/1 "2016-03-20T17:51:48Z")

</div>

Hello,

I created a new CPP project where I made my own CPP component. Let’s call it customActorComponent.

I would like to re-use this component in different, new Blueprint (non-CPP) projects.This is, I would like to create a new BP project, create a BP actor, and add customActorComponent from the blueprint.

What’s the procedure to do this?

Regards  
,  
Paco

---

<div class="post-metadata">

**Author:** ![MiKom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MiKom](https://forums.unrealengine.com/u/MiKom)\
**Post date:** [March 20, 2016, 7:41pm UTC](https://forums.unrealengine.com/t/how-can-i-create-a-generic-actorcomponent/351161/2 "2016-03-20T19:41:33Z")

</div>

CPP project produces .dll file of your game. That’s where the code for component lives, but it can’t be transferred to other non-cpp project. Non-cpp projects use prebuilt UE4 dlls and .exe’s so the game won’t know about your dll

There is no other way than changing the target project to cpp and adding copying your file.

---

<div class="post-metadata">

**Author:** ![peicou](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@peicou](https://forums.unrealengine.com/u/peicou)\
**Post date:** [March 21, 2016, 2:01pm UTC](https://forums.unrealengine.com/t/how-can-i-create-a-generic-actorcomponent/351161/3 "2016-03-21T14:01:43Z")

</div>

So short from building the UE4 engine with my new actor component I’m out of options? Exporting the component like a uasset would be nice.

Thank you for your response!

---

<div class="post-metadata">

**Author:** ![MiKom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MiKom](https://forums.unrealengine.com/u/MiKom)\
**Post date:** [March 21, 2016, 3:03pm UTC](https://forums.unrealengine.com/t/how-can-i-create-a-generic-actorcomponent/351161/4 "2016-03-21T15:03:17Z")

</div>

Yes. The compiled C++ code for your component lives in the original project DLL.

Uassets only contain info about delta of properties (from c++ defaults), bp graphs, and pointer to C++ class that is the parent.

---

<div class="post-metadata">

**Author:** ![peicou](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@peicou](https://forums.unrealengine.com/u/peicou)\
**Post date:** [March 26, 2016, 3:52pm UTC](https://forums.unrealengine.com/t/how-can-i-create-a-generic-actorcomponent/351161/5 "2016-03-26T15:52:28Z")

</div>

I’m still trying to figure this out.  
The project where I created my actorComponent (project a) generated 3 dlls:  
./Binaries/Win64/UE4Editor-a.dll  
./Intermediate/Build/BuildRules/aModuleRules.dll  
./Intermediate/Build/BuildRules/RocketUE4ModuleRules.dll

I created a different cpp project (project b) and built it. Where do I place the project a dll files so I can add my actorComponent to project b?

I really appreciate your help.

---

<div class="post-metadata">

**Author:** ![MiKom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MiKom](https://forums.unrealengine.com/u/MiKom)\
**Post date:** [March 28, 2016, 7:49pm UTC](https://forums.unrealengine.com/t/how-can-i-create-a-generic-actorcomponent/351161/6 "2016-03-28T19:49:47Z")

</div>

You don’t.

It’s not supported (nor probably possible) to exchange dll’s between projects.

Copy your code from one project to another.

Otherwise, you may try to create a new Engine-level module or plugin out of the code shared by the projects:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

---

<div class="post-metadata">

**Author:** ![peicou](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@peicou](https://forums.unrealengine.com/u/peicou)\
**Post date:** [March 29, 2016, 12:29pm UTC](https://forums.unrealengine.com/t/how-can-i-create-a-generic-actorcomponent/351161/7 "2016-03-29T12:29:53Z")

</div>

Thank you for clarifying!
