Texture2D getCenterClippedTexture(Texture2D texture) { Color[] pixel; Texture2D clipTex; int textureWidth = texture.width; int textureHeight = texture.height; if (textureWidth == textureHeight) return texture; if (textureWidth > textureHeight) { // 横の方が長い int x = (textureWidth - textureHeight) / 2; // GetPixels (x, y, width, height) で切り出せる pixel = texture.GetPixels(x, 0, textureHeight, textureHeig