- Home /
Question by
rob-whitten · Mar 10, 2014 at 04:22 AM ·
preprocessor
64bit vs 32bit Architecture Preprocessor
Is there a preprocessor for checking if you are building 32bit vs 64bit? I have some plugins that are built out as MyPlugin.dll and MyPlugin_64.dll and I would like load the correct plugin based on what architecture is set in the build settings.
Comment
Best Answer
Answer by Sildaekar · Mar 10, 2014 at 05:28 AM
While I can certainly see where this would be useful, at this point there is not a preprocessor directive for determining architecture. All of Unity's preprocessor directives may be found HERE.
You could always try to do some nifty work with C# to check, here is one solution I found:
IsWow64Process (kernel32)
If this answers your questions please don't forget to mark this answer :)