Error - Child and Parent widget both have a widget hierarchy?

I’m using 4.27. I have a widget that I made into a child of another widget by using the re-parent blueprint command. Now when I compile, I get an error “This widget and parent class widget both have a widget hierarchy, which is not supported. Only one of them should have a widget tree.”

I don’t know what this is saying or how to fix it. I searched google and found the UE4 doc on Widget tree, but it’s a bunch of code stuff that I don’t understand. Is there a simple way to fix this?

I figured out that it was due to the fact that the parent widget had a canvas panel in it. As soon as I deleted this, the error went away.

1 Like

Thank you, had the same problem and your follow-up answer helped me solve it in no time. Cheers.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.