Skip to content

Commit

Permalink
#10 Unity 2022 Verified
Browse files Browse the repository at this point in the history
  • Loading branch information
mitay-walle committed Mar 23, 2022
1 parent ca31b16 commit e4143be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Runtime/GradientTexture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@ private void OnValidate()
if (_texture.width != _resolution.x ||
_texture.height != _resolution.y)
{
#if UNITY_2022_1_OR_NEWER
_texture.Reinitialize(_resolution.x, _resolution.y);
#else
_texture.Resize(_resolution.x, _resolution.y);
#endif
}

_texture.alphaIsTransparency = true;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.mitay-walle.gradient-texture",
"version": "1.0.4",
"version": "1.0.5",
"displayName": "Gradient Texture",
"description": "Unity Procedural gradient texture generator \n\nTexture2D-Gradient generated dynamicly at Editor-time, by ScriptableObject with Gradient-properties",
"unity": "2018.4",
Expand Down

0 comments on commit e4143be

Please sign in to comment.