/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 and there is a layer above/below the current setting
true if it can execute.
static bool CanMoveSelectionToDifferent2DLayer ( bool bGoingUp )