I have a released plugin that currently supports 5.0, 5.1, and 5.2, and exposes blueprint functions that use double parameters.
I have a very reasonable request from a potential customer to backport my plugin to support 4.27. I think to myself, “no prob, I’ll just conditionally compile out the UFUNCTIONs that use double if ENGINE_MAJOR_VERSION is less than 5.”
Except that doesn’t work. UHT doesn’t like UFUNCTIONs inside conditional compilation blocks.
So…
How do I make my plugin code base support both 4.27 and 5.x in this case, without creating duplicate plugin code to maintain?