Esempio n. 1
0
        private void createTexture()
        {
            MapCreater mapCreater = new MapCreater();

            mapCreater.Generate();

            var texture = mapCreater.Texture;
            var path    = Application.dataPath;

            mapCreater.SaveRenderTextureToPNG(texture, path, "noiseTest4");
            Debug.Log(path);
        }