Brandon-Wilson / OpenCV-Plugin

A simple OpenCV plugin that integrates the OpenCV library into UE4. The plugin includes some blueprint classes that demonstrate how OpenCV can interact with the engine.
BSD 2-Clause "Simplified" License
88 stars 57 forks source link

Reference problem when using WebcamReader in child component #2

Closed bernardodesousa closed 5 years ago

bernardodesousa commented 5 years ago

I'm getting reference errors when adding a blueprint derived from WebcamReader to a blueprint derived from a Character, as a child component. The association works at first. The reference errors only appear when I restart the editor.

If that's the expected behavior, can you help me understand what am I doing wrong?

To replicate the problem:

  1. Follow the instructions at README to install the plugin
  2. Follow the blueprint part of the tutorial to create the billboard with the webcam feed.
  3. Add the billboard blueprint as a child component to a pawn/character (which is spawned when game starts)
  4. Restart the engine

I'm using Windows 10, 64 bits, with UE4 4.22.3 built from source. Here's the project, with the working billboard: https://github.com/alloy-city/AViS/tree/dev

Thank you very much for any help!

bernardodesousa commented 5 years ago

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