Widget Object reference is not compatible with Widget Object Reference (by ref)

I’m using Unreal 5.2.1.

I have create a Widget:

When I try to add it to this array:

I get this error:

I don’t know which option to choose when I select WBP_Configuration declaring the Items variable.

How can I fix this problem?

Thanks!

You’re trying to add a WBP Location widget to an array of WBP Configuration widgets- they aren’t the same type.

Either make the array be of type WBP Location, or if you want both to be able to be in the array, set the type to a common parent class that both of those classes share.

1 Like

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