diff --git a/Packages/com.happyrobot33.atlasgenerator/Editor/AtlasInformation.cs b/Packages/com.happyrobot33.atlasgenerator/Editor/AtlasInformation.cs index 1b5278d..ceb348f 100644 --- a/Packages/com.happyrobot33.atlasgenerator/Editor/AtlasInformation.cs +++ b/Packages/com.happyrobot33.atlasgenerator/Editor/AtlasInformation.cs @@ -301,6 +301,12 @@ public override void OnInspectorGUI() { AtlasInformation atlasInformation = (AtlasInformation)target; + //make sure the textuers list is not null + if (atlasInformation.Textures == null) + { + atlasInformation.Textures = new List(); + } + //make sure the list is the total size of the grid if (atlasInformation.Textures.Count != atlasInformation.Grid.x * atlasInformation.Grid.y) { diff --git a/Packages/com.happyrobot33.atlasgenerator/package.json b/Packages/com.happyrobot33.atlasgenerator/package.json index 20d95a7..e1d23b0 100644 --- a/Packages/com.happyrobot33.atlasgenerator/package.json +++ b/Packages/com.happyrobot33.atlasgenerator/package.json @@ -1,7 +1,7 @@ { "name": "com.happyrobot33.atlasgenerator", "displayName": "Atlas Generator", - "version": "0.0.2", + "version": "0.0.3", "unity": "2019.4", "description": "This package provides a system to automatically generate atlases upon texture changes", "author": {