Files
HX_MapEditor/Assets/Scripts/Utils/PathUtil.cs
2025-06-14 13:46:24 +08:00

21 lines
466 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.IO;
using UnityEngine;
public class PathUtil
{
//地形贴图挂件texture 路径
public static string GetTexture(int mapId, string name, string suffix)
{
return $"{Application.dataPath}/GameAssets/Maps/{mapId}/Texture/{name}.{suffix}";
}
#region XML
public static string GetXmlPath(int mapId, string fileName)
{
return $"{Application.dataPath}/GameAssets/Maps/{mapId}/XML/{fileName}.xml";
}
#endregion
}