diff --git a/package.json b/package.json index 9cb6168..667a164 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "displayName": "DragonECS-Unity", "description": "Integration with Unity for DragonECS", "unity": "2021.2", - "version": "0.3.20", + "version": "0.3.21", "repository": { "type": "git", "url": "https://github.com/DCFApixels/DragonECS-Unity.git" diff --git a/src/Internal/Utils/RectUtility.cs b/src/Internal/Utils/RectUtility.cs index 82e033e..1e7e65f 100644 --- a/src/Internal/Utils/RectUtility.cs +++ b/src/Internal/Utils/RectUtility.cs @@ -67,7 +67,7 @@ namespace DCFApixels.DragonECS.Unity.Internal { Rect result = rect; result.center += addVector; - return rect; + return result; } public static Rect Move(in this Rect rect, float addX, float addY) {