But it gives me the following error when I compile.
error C2440: '=': cannot convert from 'const AMyActor *' to 'AMyActor *'
If I remove the const, or remove the UFUNCTION, then it complies fine. So it must be Blueprint that doesn’t allow const pointers. Is that right? Any way around this?
“In order to return a pointer to a const object your function needs to be const as well.”
Can’t have a static const function ma friend… so not sure what your suggestion is. Also I don’t believe that is true in any case?
Having the same issue, looks like no one cares? Makes it very difficult to use config/settings objects in blueprint.