Search Issue Tracker

Postponed means that the issue was either a feature request or something that requires major refactoring on our side. Since that makes the issue not actionable in the close future we choose to close it as Postponed and add it on our internal roadmaps and technical debt pages instead.

Postponed

Votes

0

Found in

5.3.4f1

Issue ID

793314

Regression

No

Data gets corrupted after passing it into a static method of the same struct

Mono

-

Steps to reproduce:
1) Extract and open the project attached by user (Corruption_Test.zip).
2) Open scene 'corruption.unity'.
3) Press 'Play'.
4) In the console, notice the debugged values differ.

Expected result: the debugged values are all equal to 1.
Actual result: he values passed into a static method of the same struct get corrupted.

*Note: if debugging the value directly from the struct (Debug.Log(gridObj.rect.x)) the value remains unchanged.

*Note#2: the corrupted values change every time the scene is stopped and played again.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.