【Unity】TextureImporter でテクスチャの幅と高さを取得する方法
ソースコード
textureImporter.GetSourceTextureWidthAndHeight
(
out var width,
out var height
);
Debug.Log( width );
Debug.Log( height );
textureImporter.GetSourceTextureWidthAndHeight
(
out var width,
out var height
);
Debug.Log( width );
Debug.Log( height );