Mediaplayer.generated.h : no such file or directory

Hi.

I made a project with c++ third person template, and made a c++ actor.
I wrote just

#include "Runtime/MediaAssets/Public/MediaPlayer.h"

in cpp file. And when I compile in editor, it occurs an error:

I didn’t add any plugins, assets, made other class. Only made a c++ actor class, wrote only one sentence.

How can I fix this problem? Sorry about my bad English.

You have to add “MediaAssets” module to your Build.cs file in the Private Module List array

Then include it relative to the Public folder

#include "MediaPlayer.h"
1 Like

It works! Thank you very much :slight_smile:

Awesome! Please set the question as answered so it can be closed

this is not work.