I want to play matinee with C++,but when I use Play() function in MatineeActor.h,I can’t compile my code.How to play matinee in C++?
Here is my code.
.h file
UPROPERTY(EditDefaultsOnly,Category = “Matinee”)
AMatineeActor* Matinee_Start;
.cpp flie
void ALevel_CV1::BeginPlay()
{
Super::BeginPlay();
Matinee_Start->Play();
}
Output
G:\UE4Projects\WeepingDoll_02\Source\WeepingDoll_02\Oculus\Level_CV1.cpp(32): error C2027: use of undefined type ‘AMatineeActor’
1> D:\Programs\Epic Games\4.11\Engine\Source\Runtime\Engine\Classes\Engine/World.h(29): note: see declaration of ‘AMatineeActor’
1>G:\UE4Projects\WeepingDoll_02\Source\WeepingDoll_02\Oculus\Level_CV1.cpp(32): error C2227: left of ‘->Play’ must point to class/struct/union/generic type