The current actor is placed on the level or is displayed in the preview scene in actor blueprint?

How to know in С++ : the current actor is placed on the level or is displayed in the preview scene in actor blueprint.

I would like to draw some information for the scene preview,
but I need to distinguish a preview of the world from the world in level. How?

i think one belongs to the MainFrame,the other belongs to the BlueprintEditor,you can use Widget Reflector to check the diffrent between the two viewport. According to that,you can find the solution.