/Engine/Source/Editor/LevelEditor/Public/LevelEditorActions.h
Checks to see if at least a single actor is selected and the 2D editor mode is enabled
true if it can execute.
static bool CanSnapTo2DLayer()