Hi there,
All the images that I have used the Scale9 Slice tool on in Flash are turning into black squares when run on an iOS device. This doesn't happen in the Unity editor, or when the files are exported as swf instead of gfx. Any help would be appreciated.
Solved! Go to Solution.
Solved by adam.petrone. Go to Solution.
Hello,
How are you creating your GFx? If it's via GFxExport, what does your command line look like?
With the .gfx, are you deploying the .pvr for iphone as well as the fallback TGAs ?
I'm using the Scaleform Exporter tool, and the log outputs this for the executed commands.
LevelWindows.swf -p Level_ -packsize 1024 -d C:\Desktop\LevelWindows -platform iphone -c -sd -pack -pu
I'm only using the uncompressed TGAs, because the pvr looks like garbage.
Is the resulting TGA(s) NPOT (Non power of two) dimensions? This is something we need to fix in the plugin. In the meantime, you can try exporting the images as square to mitigate this.
LevelWindows.swf -p Level_ -packsize 1024 -d C:\Desktop\LevelWindows -c -sd -sq -pack -ptresize mult4
The platform iphone and -pu arguments don't make sense, since you're only using the TGAs anyhow.
I've added the -sq and -ptresize options to have it make a square texture.
Let me know if this doesn't work for you.
Thanks,
Adam