public static string UnityFriendlyMeshName(TmxMap map, string layerName, string imageName) { // Trying really hard to come up with a mesh-naming scheme that Unity won't rename on us // Using a combination of proper layer and image names won't work so stick with safe ascii and no spaces string meshName = map.GetMeshName(layerName, imageName); meshName = meshName.Replace(" ", "_"); return meshName; }
public static string UnityFriendlyMeshName(TmxMap map, string layerName, string imageName) { // Trying really hard to come up with a mesh-naming scheme that Unity won't rename on us // Using a combination of proper layer and image names won't work so stick with safe ascii and no spaces string meshName = map.GetMeshName(layerName, imageName); meshName = meshName.Replace(" ", "_"); return(meshName); }