Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
        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);
        }