Skip to content

Commit

Permalink
Fix issue with background color fill system
Browse files Browse the repository at this point in the history
  • Loading branch information
Happyrobot33 committed Jul 28, 2024
1 parent 7d668ed commit 9e31749
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public void Rebuild()
Texture2D atlas = new Texture2D(AtlasSize.x, AtlasSize.y);
//make the default color black
Profiler.BeginSample("Clear Texture");
var fillColorArray = atlas.GetPixelData<Color>(0);
var fillColorArray = atlas.GetPixelData<Color32>(0);
for (int i = 0; i < fillColorArray.Length; i++)
{
fillColorArray[i] = BackgroundColor;
Expand Down
2 changes: 1 addition & 1 deletion Packages/com.happyrobot33.atlasgenerator/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.happyrobot33.atlasgenerator",
"displayName": "Atlas Generator",
"version": "0.0.3",
"version": "0.0.4",
"unity": "2019.4",
"description": "This package provides a system to automatically generate atlases upon texture changes",
"author": {
Expand Down

0 comments on commit 9e31749

Please sign in to comment.