i tried to resize the texture with size and width and its showing index out of width/height
the texture need to be resized because i'm using it on other texture to apply on particular co-ordinates so i'm not able to resize the texture graphics is my texture2D
graphics.Resize((horizontalx - horizontaly), (verticalx - verticaly), TextureFormat.RGBA32, false);//creating texture with height and width
SetPixels32 can only be called on a RGBA32 or BGRA32 texture but is being called on TextureFormat(12) UnityEngine.Texture2D:SetPixels32(Color32[])