As the title says, my custom log categories (defined in Gamename.h and Gamename.cpp) are not recognized inside method definitions of a newly created class. Works perfectly inside the rest of the project. What factors could be affecting this? Not default Visual Studio IntelliSense nor Resharper’s IntelliSense can’t detect it.
// Gamename.h DECLARE_LOG_CATEGORY_EXTERN(LogVision, Log, All); // Gamename.cpp DEFINE_LOG_CATEGORY(LogVision); // MyNewClass.cpp UE_LOG(LogVision, Warning, TEXT("Random text msg")); // Cannot resolve symbol 'LogVision'
Edit: I’m able to compile. It’s just IntelliSense that is broken and anything I can think of to clear caches (Generate Visual Studio project files, delete binaries and intermediate and rebuild, stop and resume ReSharper, etc.) has no effect. Why is it so consistently broken on this specific file?