public void SetTextureTo(Texture2D tex) {
/*
Material newMat = new Material(Shader.Find("Unlit/Transparent Colored"));
newMat.mainTexture = tex;
_tex.material = newMat;
*/
_tex.mainTexture = tex;
_tex.width = tex.width;
_tex.height = tex.height;
_tex.MarkAsChanged();
}