Let's say I want to publish my game on both Steam and Epic Games. Both have an SDK with certain services like matchmaking.
I don't want to make 2 projects and basically maintain both of them just to be able to achieve this. How do I activate/deactivate certain code depending on which version I'm building (the Steam one, or the Epic Games one). I read about #if directives, but those seem to work only when checking build target platform (Android, etc).
- Can I make use of these directives to achieve my goal?
- Can I include both sdks and check via code if it's the Steam or the Epic version and initialize the correct one accordingly some way?.