Banbury / UnityPsdImporter

Advanced PSD importer for Unity3D
Other
167 stars 65 forks source link

Installation Help #10

Closed jaxily closed 9 years ago

jaxily commented 9 years ago

Hello, I am having difficulty getting this to work. I put the two files in the root directory of the Unity Project, but still getting the error below.

Assets/PhotoShopFileType/PsdFile/Util.cs(130,7): error CS0227: Unsafe code requires the `unsafe' command line option to be specified

jaxily commented 9 years ago

Do you have a sample project that you can share? That would be great, thanks

playemgames commented 9 years ago

From the readme:

"To compile the Unity PSD Importer in the Unity3D Editor you must have the files gmcs.rsp and smcs.rsp with "-unsafe" in the first line of the files in the root directory of your project. Otherwise you can compile the code as a DLL and it will also work in the editor."

jaxily commented 9 years ago

The files are in the root directory of the project so not sure what I am missing

Regards, Jake

On Mar 3, 2015, at 8:41 AM, playemgames notifications@github.com wrote:

From the readme:

"To compile the Unity PSD Importer in the Unity3D Editor you must have the files gmcs.rsp and smcs.rsp with "-unsafe" in the first line of the files in the root directory of your project. Otherwise you can compile the code as a DLL and it will also work in the editor."

— Reply to this email directly or view it on GitHub.

playemgames commented 9 years ago

Try looking at how I created a project here:

https://www.youtube.com/watch?v=bsd8lpesiTE&feature=player_detailpage#t=140