Unity3D2Babylon.ExporterWindow.CreateSettings C# (CSharp) 메소드

CreateSettings() 공개 메소드

public CreateSettings ( ) : ExportationOptions
리턴 ExportationOptions
        public ExportationOptions CreateSettings()
        {
            ExportationOptions result = new ExportationOptions();
            string apath = Application.dataPath.Replace("/Assets", "");
            string ufile = Path.Combine(apath, "UnityBabylonOptions.ini");
            if (File.Exists(ufile))
            {
                var readText = File.ReadAllText(ufile);
                var jsReader = new JsonReader();
                result = jsReader.Read<ExportationOptions>(readText);
            }
            return result;
        }