Exemple #1
0
        public static Texture MA_Scale2(this Texture texture, float newWidth, float newHeight)
        {
            Texture2D texture2D = (Texture2D)MA_TextureUtils.ConvertToReadableTexture(texture);

            texture = texture2D.MA_Scale22D(newWidth, newHeight);

            return(texture);
        }
Exemple #2
0
        public static Texture MA_Combine(this Texture texture, Texture combineTexture, int offsetX, int offsetY)
        {
            Texture2D texture2D        = (Texture2D)MA_TextureUtils.ConvertToReadableTexture(texture);
            Texture2D combineTexture2D = (Texture2D)MA_TextureUtils.ConvertToReadableTexture(combineTexture);

            texture = texture2D.MA_Combine2D(combineTexture2D, offsetX, offsetY);

            return(texture);
        }
Exemple #3
0
        public static Texture MA_Save(this Texture texture, string name, string savePath)
        {
            Texture2D texture2D = (Texture2D)MA_TextureUtils.ConvertToReadableTexture(texture);

            texture2D.MA_Save2D(name, savePath);

            texture = texture2D;

            return(texture);
        }
Exemple #4
0
        public static Texture MA_Scale(this Texture texture, int width, int height, TextureScaleMode scaleMode)
        {
            Texture2D texture2D = (Texture2D)MA_TextureUtils.ConvertToReadableTexture(texture);

            texture2D.MA_Scale2D(width, height, scaleMode);

            texture = texture2D;

            return(texture);
        }