Assets.Editor.FilePathExporter.GetFolderPathMap C# (CSharp) Метод

GetFolderPathMap() публичный Метод

public GetFolderPathMap ( string fileName ) : string
fileName string
Результат string
        public string GetFolderPathMap(string fileName)
        {
            return Path.Combine(GetMapPath(), fileName);
        }

Usage Example

Пример #1
0
        public void Finish()
        {
            var filePath = _mapFileName.EndsWith(".json", StringComparison.OrdinalIgnoreCase)
                ? _mapFileName
                : _mapFileName + ".json";

            File.WriteAllText(_filePathExporter.GetFolderPathMap(filePath), JsonUtility.ToJson(_mapModel, true));
        }