private void CreateGradient()
 {
     if (isSquare)
     {
         TextureRamp.Create(gradient, textureName, size);
     }
     else
     {
         TextureRamp.Create(gradient, textureName, xSize, ySize);
     }
 }
        public static void Create(Gradient grd, string name, int width, int height)
        {
            //generate the path
            string path = PathAsking(name);

            if (path == null || path == string.Empty)
            {
                Debug.Log("TextureRamp creation have been cancel");
                return;
            }
            //Creating The texture
            Texture2D texture = TextureRamp.Generate(grd, width, height);

            //Check for copy
            DeleteCopy(path);

            //create the asset
            AssetCreation(path, texture);

            //Debug.log the test
            TestResult(path);
        }