Determine current editor mode?

Hey all,

How can I determine what the current editor mode is? In one of my plugins I need to do something based on whether the Foliage mode is active or not, and I can’t find a way to determine that.

Thanks!


GLevelEditorModeTools().IsModeActive(FBuiltinEditorModes::EM_Foliage)

Thank you!