com.wallstop-studios.unity-helpers 2.0.0-rc73.6 → 2.0.0-rc73.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Editor/AnimationCreator.cs +3 -4
- package/Editor/FitTextureSizeWindow.cs +8 -8
- package/Editor/SpriteCropper.cs +109 -127
- package/Runtime/Core/DataStructure/Circle.cs +1 -1
- package/Runtime/Core/DataStructure/QuadTree.cs +4 -4
- package/Runtime/Core/Extension/ColorExtensions.cs +5 -5
- package/Runtime/Core/Extension/IEnumerableExtensions.cs +1 -1
- package/Runtime/Core/Extension/UnityExtensions.cs +14 -14
- package/Runtime/Core/Helper/Helpers.cs +9 -9
- package/Runtime/Core/Helper/Logging/UnityLogTagFormatter.cs +31 -8
- package/Runtime/Core/Helper/Partials/ObjectHelpers.cs +2 -2
- package/Runtime/Core/Random/DotNetRandom.cs +1 -1
- package/Runtime/Core/Random/SplitMix64.cs +1 -1
- package/Runtime/Core/Random/SquirrelRandom.cs +7 -7
- package/Runtime/Core/Random/ThreadLocalRandom.cs +1 -1
- package/Runtime/Core/Random/WyRandom.cs +1 -1
- package/Runtime/Tags/EffectHandler.cs +1 -1
- package/Runtime/UI/LayeredImage.cs +305 -159
- package/Runtime/Utils/AnimatorEnumStateMachine.cs +1 -1
- package/Runtime/Utils/SetTextureImportData.cs +1 -1
- package/Runtime/Utils/TextureScale.cs +4 -4
- package/package.json +3 -1
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
}
|
|
55
55
|
else
|
|
56
56
|
{
|
|
57
|
-
ratioX = (
|
|
58
|
-
ratioY = (
|
|
57
|
+
ratioX = (float)tex.width / newWidth;
|
|
58
|
+
ratioY = (float)tex.height / newHeight;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
w = tex.width;
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
int y2 = (yFloor + 1) * w;
|
|
124
124
|
int yw = y * w2;
|
|
125
125
|
|
|
126
|
-
for (
|
|
126
|
+
for (int x = 0; x < w2; x++)
|
|
127
127
|
{
|
|
128
128
|
int xFloor = (int)Mathf.Floor(x * ratioX);
|
|
129
129
|
float xLerp = x * ratioX - xFloor;
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
{
|
|
156
156
|
int thisY = (int)(ratioY * y) * w;
|
|
157
157
|
int yw = y * w2;
|
|
158
|
-
for (
|
|
158
|
+
for (int x = 0; x < w2; x++)
|
|
159
159
|
{
|
|
160
160
|
newColors[yw + x] = texColors[(int)(thisY + ratioX * x)];
|
|
161
161
|
}
|
package/package.json
CHANGED