I have a function like this.
UFUNCTION(BlueprintPure, Category = "Misc") static const AMyActor* GetByID(const int32 ID);
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?