Unable to Create Widget For Template

Having a weird issue. Using 4.16, I never had this issue, but since upgrading to 4.17, I have on specific UI blueprint that when I try to compile I get an Unable to Create Template For Widget error. It is not finding the textblocks I put on top of buttons for some reason. So, if I delete the buttons, and textblocks, and then recreate them, it compile fine, and runs perfectly fine.

I save everything, and close/reopen the project, and the UI blueprint wont compile anymore. It gives me the same error, and I can fix it the same way, but it is only for that session. I am at a total loss as to why this started happening.

I have nothing insane going on, it is a simple UI with 4 buttons, with textblocks on them. THey are clickable, with very basic code in the OnClicked function. It never had an issue until 4.17.

Does anybody have this same issue, or have any idea how I can fix it?

I am beginning to think this might be a bug. Has nobody had this issue? No comment from a UE individual either? Hmm…

I have recreated the entire blueprint after removing it entirely. I then compile it and it is fine. I reload my project and it is broken again. Same blueprint and it is telling me that it cannot find a variable for a TextBlock. I can mark it as not a variable and it’s still complaining it can’t find it in the template. So, I rename the variable, and it is still looking for TextBlock_323 instead of TXT_ActionBtn which is what I renamed it to. Either way, it is not a variable, and should not be causing a compile error. It is a simple text box placed on a button, and no matter which button class I use, included one, or custom, it still breaks. However, I don’t think it is the button class either because it works fine on other UI screens.

Recreated the widget from the ground up, no copying, no pasting. It worked and then stopped working again. If I use Asset Actions → Reload, it works for the session, but when I reload the project it is still failing to compile. It is telling me it cannot find the TextBox variables in the template.

Makes no sense that it would work when I reload it, but not on initial load of the project.

I’m experiencing a similar problem. My local copy is fine, however our automated tests are tripping over it with the same compile error, where it is finding to find text blocks.

This is a bug in the editor.
Enable all elements Visibility in the hierarchy. (The eye icon to the right in the designer hierarchy)

Also try renaming all problem elements. Autogenerated names seem problematic.

将子类的CanvasPanel设置成变量(在右上角 is Variable)