Search Issue Tracker
Duplicate
Votes
0
Found in
5.6.0f3
Issue ID
902322
Regression
No
Mathf.CeilToInt() returns incorrect value while debugging when breakpoint is set on line with this method
To reproduce:
1. Open project
2. Open 'TestScene'
3. Open 'DebugTestScript', set breakpoint to 15th line
4. Start debugging, press 'Update number' button in game view
5. Notice, that breakpoint is reached. Step over until 18th line, stop debugging
6. Play scene again without debugging script, press 'Update number' button
Expected: after 5 and 6 step, both times, number value will be 25
Actual: number value is set to 0 when debugging script
Reproduced on: 5.5.3p1, 5.6.0f3, p1, 2017.1.0b1
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
- An “Assertion failed on expression” error is thrown when building an AssetBundle and two assets have the same name
- Real delta time is different than deltaTime and uscaledDeltaTimeFixed when using multiple monitors with different refresh frequencies set in Windows options
- Persisted event listeners are reset when collapsing and expanding a component in the Inspector
- Floating Material Preview window has a burger icon button that does nothing when pressed
- TreeView drag and drop operation is not cancelled when a modal opens over it
This is a duplicate of issue #897134