I’m following the Unreal C++ course, and I’m doing it in VS2019 instead of VSC. I’m specifically at the part about writing a lerp method for the door.
My problem is, even though I declared private variables in the OpenDoor.h header file, they’re not being color coded in the cpp file. As seen here:
The code compiles and runs fine, but I don’t like how the CurrentYaw, InitialYaw and TargetYaw variables remain white. They were declared as float variables in the header, just like in the video.
Every time I declare a variable in the cpp file, it gets color coded properly (see int testvariable), but it doesn’t seem to want to for the header.
Is there a way to fix this?