Image import not working

0
Botteu posted this 06 October 2015

Hi!

I recently bought Picavoxel and have had a lot of fun with it so far. Great product! One thing though: I can't import images. In the file selection dialog .png and .jpg images are greyed out, so I can't even select them…

I'm on Mac OS X 10.11 with Unity 5.2.1.

Hope you can help :)

1 Comments
Order By: Standard | Newest | Votes
0
GarethIW posted this 06 October 2015

So I'm not near a Mac right now to test this, but I bet this is an issue with the file extension filtering on MacOS. I've got something you can try for now.

In PicaVoxel/Scripts/Editor/ImageImportWindow.cs line 47:

string fn = UnityEditor.EditorUtility.OpenFilePanel("Import Image", "", ";*.png;*.jpg;*.jpeg");

try getting rid of the filter as follows:

string fn = UnityEditor.EditorUtility.OpenFilePanel("Import Image", "", "");

I'll try this for myself later.


Our 125 members have posted 459 times in 111 discussions