TextureImporter.SetPlatformTextureSettings requiring a boolean as 4th parameter

“TextureImpoter.SetPlatformTextureSettings” requires a 4th parameter which is a boolean. Checked in the API and there is no “Boolean” value in the function.

And also on previous versions there are no boolean values as parameter in the function.

In looking, that was added for the ETC1 compression for sprite atlases on Android. Letting the dev know to update docs.

The bool in question is: allowsAlphaSplit which only has impact for the Android situation.

hey @ ,

you are actually changing the API here, breaking backwards compatibility :/, why dont you guys just let the 3 method version have by default “false” the 4th parameter and create other function?

I know I can use editor defines per version but its just not ideal.

Thanks a lot.

The plan is to make the bool default to standard (previous) behavior. So, things should be addressed soon.

As Alex said, we have made the fourth parameter default (to maintain backward compatibility).
The feature was designed in a way that existing code needs not to be changed, but new code that wants to use this new feature (ETC1 compression) needed to turn the flag on.

The fix to code and documentation is on its way.
Thanks for pointing this out :slight_smile:

<3 thanks to you as well guys :slight_smile: