You should include in CPP file. Also remeber to add āMovieSceneCoreā module in to PrivateDependencyModuleNames in build script of your module (C# file)
Of course I put include in cpp file, where code of my constructor is. When I added āMovieSceneCoreā to module dependencies it causes yet another compilation error:
C:\Program Files\Epic Games\4.8\Engine\Source\Editor/UMGEditor/Public/WidgetBlueprint.h(10): fatal error C1083: Cannot open include file: 'WidgetBlueprint.generated.h': No such file or directory
Iāam not shure if this module exsits because it is not present in modules list (accessed via Window->DeveloperTools->Modules from Editor). Iāve tried to add āMovieSceneToolsā module instead of āMovieSceneCoreā but again it causes strange compilation errors.
By the way: What is the difference brwn private and public modules ?
before I asked this question I didnāt know aboud modules and how to add them. To resolve my compiler errors I needed to add two module dependecies. First is UMGEditor so compiler will know UWidgetBlueprint type, second āMovieSceneCoreā so linker could locate IMovieScenePlayer.h file.