I would like to create runtime UMG animation (UWidgetAnimation) in C++. No BP at all!
For the sake of clarity, I keep my sample project as simple as possible. I have a button, and I would like to make it move (change location) on my UserWidget. So far, I have created the UserWidget and the button. Everything is perfect.
When I want to add animation code, things start to get strange. For example; I cannot create a new UMovieScene object.
UPROPERTY() UMovieScene* pMovieScene;
pMovieScene = NewObject<UMovieScene>(this);
Even though required headers are included, these lines give me “unresolved external symbol” error during compilation. What is the proper way of creating a new MovieScene object for UWidgetAnimation->MovieScene property?
And… Is there a tutorial or some kind of example snippet that entirely focuses on creating runtime UMG animation in C++? I searched the Internet thoroughly. So strange that there is almost no information available on this topic, except the following link:
Thanks in advance for any help you are able to provide.