I have some assets which are not within the Resources directory, as I don't want the files to get bundled up in in the generated resource output.
Anyway due to this I have a line in a configuration file which reads like:
However this only works within the Unity Editor, when the build is done the data is not copied automatically so its a manual step and it ends up just being located at:
So is there any pragma directive available to work out if it is running as a release or not?
asked Aug 18 '12 at 09:31 AM
You can use preprocessor tags like this:
See the Platform Dependent Compilation page in the manual
But like JD said, Application.dataPath is the easiest way.