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
- Inaccurate Box Collider boundaries on a rotated child Cube when the parent GameObject Scale is non-uniform
- [Android] "SHADOWS_SCREEN" set as shader Keyword when no "_ShadowMapTexture" is bound leads to freeze on a build on some Mali GPU devices
- Constant console errors when using Min/Max Slider in PlayMode
- The global scene list is overridden in a project built with command line when the Override Global Scene List setting is disabled in the build profile
- [Linux] AutoLocale log is logged when opening a project
Add comment