UWidgetStateSettings::GetEnumStateIndex

Get Index corresponding to this enum state, which may dynamically change - but not within a game session.