Эх сурвалжийг харах

[csharp] Added getter accessors for Atlas.Pages and Atlas.Regions as they were missing (only enumeration of regions or access by name was possible).

Harald Csaszar 4 жил өмнө
parent
commit
dc8b249999

+ 3 - 0
spine-csharp/src/Atlas.cs

@@ -58,6 +58,9 @@ namespace Spine {
 		}
 		#endregion
 
+		public List<AtlasRegion> Regions { get { return regions; } }
+		public List<AtlasPage> Pages { get { return pages; } }
+
 		#if !(IS_UNITY)
 		#if WINDOWS_STOREAPP
 		private async Task ReadFile(string path, TextureLoader textureLoader) {