Compiling error with children class assigned to parent reference

Hello,

I’m having a strange error while packaging a project.

I have an UMG widget (PanelUIBP) with some functions declared. Then I have some other widget that inherit from that widget (i.e. SaveLayoutUIBP) to reuse that functions functionality.

Everything works fine in editor, with no issues. But when I package the project, an error arises:

LogBlueprint:Error: [compiler GameUIBP] Error COMPILER ERROR: failed building connection with 'Save Layout UIBP Reference is not compatible with Panel UIBP Reference.' at  Create Widget

Of course, SaveLayoutUIBP is a direct class children of PanelUIBP. As a workaround, I can cast the reference to PanelUIBP, and then I can package the project. But then I have a warning which is somewhat annoying:

LogBlueprint:Warning: [compiler GameUIBP] Warning 'ReturnValue' is already a 'Save Layout UIBP' (which inherits from 'Panel UIBP'), so you don't need  Cast To PanelUIBP .

Hello ,

I have a few questions for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

  1. Can you reproduce this issue in clean project?
  2. If so, could you provide a detailed set of steps to reproduce this issue on our end?
  3. Could you provide an code and/or screen shots of a blueprints that may be involved with this issue?

You are right, I should have tried this in an clean project first. I will try to reproduce it and send it to you :wink:

Hello ,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thank you.