﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;   //for AssetDatabase.CreateAsset


public class BGRA32TextureCreator : MonoBehaviour
{
    public int TextureWidth;
    public int TextureHeight;

    // Start is called before the first frame update
    void Start()
    {
        RenderTexture newTexture2DInBGRA32 = new RenderTexture(TextureWidth, TextureHeight, 0, RenderTextureFormat.BGRA32);
        AssetDatabase.CreateAsset(newTexture2DInBGRA32, "Assets/newTexture2DInBGRA32.texture2D");
    }

    // Update is called once per frame
    void Update()
    {

    }
}
