I am creating an Editor Utility Widget
and constructing a Viewport
as child on a SizeBox
via Blueprint. When closing the window I’m getting a warning:
LogWorld: Warning: UWorld::CleanupWorld called on a world that has begun play, missing call to EndPlay (World_1)
What code is needed to close this EUW-window properly without getting this warning? As far as I understand the viewport data stays in memory when not close correctly. I also spawned an actor inside which created more warnings with any new launch. This I could solve with Destroy Actor
on Event Destruct
, but the quoted warning happens even on empty viewports and just increment the world number (World_1)
.
It also makes no difference if I use a custom viewport blueprint class or not. Since UMG.Viewport
is an experimental class, it could also be a bug, but it already exists since UE4.22 I read, so first I want to think it is my own failure.