Is it possible to have a Platform Define >=

Is it possible to include all Unity Engine Versions above a version in a platform define?

like,

#if >= UNITY_4_0
    // Do code for all versions of the unity engine above 4.0
#endif

I wouldn’t like to have to write: UNITY_4_0 || UNITY_4_0_1 || UNITY_4_1
each time.

And then have to update this everywhere the next time Unity updates. Is there a quick work around?

Thanks

If you have arrived here from the future, this is now possible.

e.g.

#if UNITY_2018_1_OR_NEWER
// some new API
#elif UNITY_2017_OR_NEWER
// some experimental/beta API
#else
// some older API
#endif

No, this is not possible. Compile defines are not numeric, they’re strings.

Having major release version defines (e.g. UNITY_4 or UNITY_4_X) is something that’s been requested a few times - make your voice heard to the Unity folks if you want it.