だらだら〜自由自在〜

インディーゲーム制作チーム GAME GABURI でプログラム担当してます

Unity Import前のTexutreサイズ

TextureをImportすると、512x512とか、2のべき乗の値にリサイズされてしまい、Texture.widthとかでオリジナルのサイズがとれない。という時。
TextureTypeをGUIでImportするとリサイズが行われないので、そのままですよ。という話。
http://unity3d.qatohost.com/questions/39497/non-power-of-2-textures-how-to-access-original-siz.html