Const Prop Omitted from UHT for Class Member Vars
Looking at the UHT parsing code, it cannot handle Const UProp declarations in member vars. I am under the assumption that this is a bug since none of the documentation mentions this restriction. I checked the version of the HeaderParser file available on GitHub and it appears that it has not been addressed, yet.
What property type are you trying to declare? We do support:
We do not support (but we do handle it in UHT with a message 'Inappropriate keyword 'const' on variable of type...')
We're aware there's an issue with (as in it doesn't tell you what's wrong exactly, there's a ticket to fix thius):
Unfortunately we're probably never going to make UHT as good as any C++ compiler, there's some limitations we're aware of but we're trying to make it better. Also note that 'const' values do not necessarily mean much when it comes to UObjects, You will always be able to set them through reflection (UProperties etc). We only care for VisibleAnywhere, EditAnywhere UPROPERTY keywords in the editor.
answered Jun 10 '14 at 10:43 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here