How to log Errors to Play In Editor Message Log

I wanted to throw an error when a pointer is null in C++, but without crashing the editor. The point is to make very obvious that something is wrong (I find logs not as flashy as I’d this kind of errors to be). Something like the “None” logs in BPs, that pop up a window when an object is null.

So far, the best I managed to do was the AddOnScreenDebugMessage()

well for logging information to the console you should be using UE_LOG() and use warning’s for yellow text or error’s for red

You can open a Dialog with SGenericDialogWidget::OpenDialog()

https://docs.unrealengine.com/4.26/en-US/API/Editor/UnrealEd/Dialogs/SGenericDialogWidget/