I hope this is the correct place where ask the question, otherwise I’m sorry.
I’ve a UMG Interface with a vertical box at center where to spawn alert messages (UTextBlock).
The alert messages must stay for 2 sec after this the message must fade out.
My idea is to do that with an animation, the problem is that the message (UTextBlock) is created using c++ and it’s added at runtime to the UVerticalBox.
I’ve tried to create animation using c++ for each message but I don’t know how it works and I’m stuck; here the code:
UWidgetAnimation* TestWidgetAnimation = NewObject<UWidgetAnimation>(this); UMovieScene* TestMovieScene = NewObject<UMovieScene>(this); FGuid AnimationTrackId; UMovieSceneColorTrack* Track = TestMovieScene->AddTrack<UMovieSceneColorTrack>( AnimationTrackId );
If I create a “static” animation with editor is it possible to use as Template?
Hope you can help me thanks in advance.