VisibleDefaultsOnly is EditDefaultsOnly are specifiers which set access property in property editor, you can’t use both of them is same time, you need to pick one of them.
Visible* = Read-only
Edit* = Read-Write
In other words you trying to make your property Read-Only and Read-Write in same time Considering you trying to use “EditDefaultsOnly” means you just need this one, so remove “VisibleDefaultsOnly”
There are a couple problems here. The first is that you are setting both an Edit and a Visibility UProperty for the variable. You are only able to have one or the other in the UProperty list (just an FYI, the EditDefaultsOnly flag includes the VisibleDefaultsOnly tag).
The second issue is that the TSubobjectPtr variable you are implementing the UProperty flags for (if I found the same tutorial that you were looking at) cannot be set to editable, so you will only be able to use the VisibleDefaultsOnly flag.
I had this same issue. So is the tutorial wrong? If so Epic should not be letting people follow it if its wrong, it should be removed or correct it. Unless this is some kind of test
Can just place a comment in the video at the point. The developer pasted in the code as the video progressed, so I figured it was compiled and work. And it might have worked in the older release, and you guys probably just changed something.
We have added some annotations to the video with the correct code to be included in the two spots where the code in the video will no longer work correctly.