Editor Utility Widgets Feedback

Is there currently a way for a Utility Widget to detect whether the world type is in Editor, PIE, or Game Instance? Or to disable a utility widget while in PIE or Game Instance mode?

Currently, I have a tick event used to detect whether the scene or selection set has become dirty since last frame.

Without events for these things, the tick hits utility functions like GetAllLevelActors and spams a LogEditorScripting error.

I have tried 's blueprint functions that return what world mode the logic is running in. This returns true for editor always, and false for PIE always from within the Utility Widget.

Getting the GameInstance (via GetGameInstance) always returns none.

In fact, trying to get any actor by class returns none.

I just need a way to escape the Utility Widget’s tick while in either PIE or Game Instance or otherwise disable the Utility Widget during these modes.

Any ideas?