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.0f4
Issue ID
772980
Regression
No
After changing type from GameObject to Transform inspector field for that property still has object reference as GameObject
Steps to reproduce:
1. Open attached project
2. Open scene "testScene"
3. In hierarchy, select ScriptHolder GO and notice that Cube is passed as type of GameObject (indicated by the icon)
4. Run scene and notice that position is printed correctly
5. Open LogPositionOfTransform.cs script
6. In line 6, change type of targetObject from GameObject to Transform
7. In hierarchy, select ScriptHolder GO and notice that Cube is still passed as GameObject (indicated by icon)
8. Run scene
9. Notice that instead of printing coordinates MissingReferenceException is thrown
Expected result: Field of LogPositionOfTransform in inspector changes to "Type mismatch"
Note: After doing steps 1-6, re-assign Cube to ScriptHolder and notice that it is passed as Transform. Then in LogPositionOfTransform change type of targetObject back to GameObject. In inspector, inspect ScriptHolder GO and notice that field IS updated to "Type mismatch"
Reproduced with: 5.1.4f1, 5.4.2f1, 5.3.2p4, 5.4.0b7
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment