# How to add a Child Actor Component based on a blueprint that references scripts with relative paths?

**URL:** <https://forums.unrealengine.com/t/how-to-add-a-child-actor-component-based-on-a-blueprint-that-references-scripts-with-relative-paths/454856>\
**Category:** Plugins\
**Tags:** child-actor-componen, opencv, unreal-engine, Plugins, question, Blueprint\
**Created:** [September 4, 2019, 9:39pm UTC](https://forums.unrealengine.com/t/how-to-add-a-child-actor-component-based-on-a-blueprint-that-references-scripts-with-relative-paths/454856 "2019-09-04T21:39:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_5f8c82d81](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5f8c82d81](https://forums.unrealengine.com/u/anonymous_user_5f8c82d81)\
**Post date:** [September 4, 2019, 9:39pm UTC](https://forums.unrealengine.com/t/how-to-add-a-child-actor-component-based-on-a-blueprint-that-references-scripts-with-relative-paths/454856/1 "2019-09-04T21:39:55Z")

</div>

Let’s say I have an **Avatar** blueprint and a few body parts blueprints, like **Head** , **Leg** , **Arm** , etc. To add the body parts to the Avatar blueprint, I can simply open view port of the **Avatar** blueprint, then drag the body parts from the content browser. Now here’s the problem: one of these body parts is using an OpenCV plugin, which apparently references scripts with paths relative the blueprint, so it can’t find those scripts when it’s inside another blueprint, as a Child Actor Component.

When I add the body part blueprint to the map, in the editor, it works. When I add it as a child component to the Avatar blueprint, at first, it also works. Then, when I close the editor and open it again, it gives me a bunch of loading errors:

```
Fail to load /Script/OpenCV.WebcamReader Referenced by Billboard_GEN_VARIABLE
Fail to load /Script/OpenCV.WebcamReader Referenced by Billboard
Fail to load /Script/OpenCV.WebcamReader Referenced by K2Node_Event_3
Fail to load /Script/OpenCV.WebcamReader Referenced by K2Node_VariableGet_0
Fail to load /Script/OpenCV.WebcamReader Referenced by K2Node_VariableGet_1
Fail to load /Script/OpenCV.WebcamReader Referenced by K2Node_VariableGet_2
Fail to load /Script/OpenCV.WebcamReader Referenced by K2Node_VariableSet_0
Fail to load /Script/OpenCV.WebcamReader Referenced by PackageMetaData

```

What am I doing wrong?

Thank you for any help!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_5f8c82d81](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_5f8c82d81](https://forums.unrealengine.com/u/anonymous_user_5f8c82d81)\
**Post date:** [September 5, 2019, 12:09pm UTC](https://forums.unrealengine.com/t/how-to-add-a-child-actor-component-based-on-a-blueprint-that-references-scripts-with-relative-paths/454856/2 "2019-09-05T12:09:27Z")

</div>

Solution: change “LoadingPhase” from “Default” to “PreDefault” at OpenCV.uplugin
