Workaround for "FindObject" in Object Class
Hey guys, I want to get the name of an enum inside of a normal object class, but I get an error using FindObject in there. So my Question is: Is there any other way of getting the const UEnum* or another workaround for it?
asked Dec 25 '17 at 08:42 PM in C++ Programming
Ok, few notes:
answered Dec 25 '17 at 10:14 PM
First thing to note here is that in the code you posted, in the 2nd line of your function
Note that they should be marked by the macro
See that static_cast difference between the two version of Enums for this case? You do not need to include anything for this code to work as long as you have CoreMinimal.h included in your header file. However if the intellisense still fails to catch up and keeps giving you false warnings, you can
Hope this answered your question.
Follow this question
Once you sign in you will be able to subscribe for any updates here