Search Issue Tracker
By Design
By Design in 3.1.X
Votes
1
Found in [Package]
3.1.4
Issue ID
CMCL-1707
Regression
No
Cinemachine Confiner 2D InvalidateBoundingShapeCache() fails when scaling Bounding Shape at runtime
Reproduction steps:
1. Open the attached “IN-109223.zip” project
2. Open the “SampleScene”
3. Enter Play mode
4. Move with “A” or “D” keys to red or green point
5. Observe the CM Camera Confiner after scaling
Expected result: The Confiner adjusts accordingly
Actual result: The Confiner breaks
Reproducible with: 3.0.1, 3.1.4 (6000.0.54f1, 6000.1.13f1, 6000.2.0b10, 6000.3.0a3)
Reproducible on: Windows 11
Not reproducible on: No other environment tested
Note:
- Using {{confiner.InvalidateBoundingShapeCache();}} before or after scaling has no difference in result
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Package signature validation unexpectedly return an invalid signature status if the validation check is done after the code signing certificate validaty range has passed
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
Resolution Note:
User error: the polygon's localScale.z was being set to 0 by user code. It should remain at 1.
In ScaleBorderMask.cs line 30, code reads transform.localScale = new Vector2(x, y);
when it should read transform.localScale = new Vector3(x, y, 1);
Resolution Note (3.1.X):
User error: the polygon's localScale.z was being set to 0 by user code. It should remain at 1.
In ScaleBorderMask.cs line 30, code reads transform.localScale = new Vector2(x, y);
when it should read transform.localScale = new Vector3(x, y, 1);