UMediaPlayer InComplete Type

#include “Runtime/MediaAssets/Public/MediaPlayer.h” // in the .cpp

PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "MediaAssets" }); // In the Build.CS


UMedia * PlayTest; // In the .cpp

 PlayTest-> // Incomplete class type not allowed

So i’ve added all the includes that the documentation deemed necessary. I’m curious what the issue here is? Thank you.

I followed from this thread actually.

Okay, so in case anybody is running into this problem whether it’s with this or other files then here is what you do.

  1. Go to the .uproject file and right click it to Generate Visual Studio Files.

  2. Go ahead and write #include “MediaPlayer.h” or #include “Public/MediaPlayer.h”

  3. Success!