-
Notifications
You must be signed in to change notification settings - Fork 15
Description
Description
When passing exactly 256 rectangles to RectanglePacker.Pack, the method completes without throwing an exception, but the resulting positions are incorrect.
ex) RectanglePacker.Pack(rectangles, out _, PackingHints.FindBest, 1, 1, 1026,1026);
- rectangles.Length=256.
- All rectrangles are with W=50 and H=50.
All rectangles are returned with:
X = 0
Y = 0
Expected Behavior
Rectangles should be packed normally with valid X/Y coordinates.
Actual Behavior
No exception is thrown.
The method appears to succeed.
All rectangles have position (0, 0).
Observations
Works correctly with 257 rectangles.
Fails when the count is exactly 256.
Suggests a possible boundary/indexing issue.
Environment
Library version: 1.2.0
Unity version: 6000.3.3f1
Platform: Windows
Please let me know if a minimal reproducible example would be helpful.