Unity3D2Babylon.ExporterWindow.SaveSettings C# (CSharp) Method

SaveSettings() public method

public SaveSettings ( bool refresh = false ) : void
refresh bool
return void
        public void SaveSettings(bool refresh = false)
        {
            if (refresh) GetSceneInfomation(false);
            string apath = Application.dataPath.Replace("/Assets", "");
            string ufile = Path.Combine(apath, "UnityBabylonOptions.ini");
            var settings = new DataWriterSettings() { PrettyPrint = true };
            var jsWriter = new JsonWriter(settings);
            File.WriteAllText(ufile, jsWriter.Write(exportationOptions));
        }