andydbc / unity-texture-packer

:hammer: Utility to combine color channels from different textures into a single output.
MIT License
673 stars 103 forks source link

Fix unused variable _textureFormat by getting rid of textureFormat #10

Closed JohannesDeml closed 4 years ago

JohannesDeml commented 4 years ago

Used to fire a warning in the editor: warning CS0414: The field 'TexturePackerWindow._textureFormat' is assigned but its value is never used

I chose to remove textureFormat, since I saw no usage of the public getter and it seemed more consistent to me, since all other variables are private too. Also, this way the default texture format can be set easily.