浏览代码

[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 年之前
父节点
当前提交
dc8b249999
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      spine-csharp/src/Atlas.cs

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

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