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
- [Tile Palette] Sprites not rendering when brush tool "Paint a filled box with active brush" is used for the first time
- Adding available Nodes with longer names in Fragment Context window overflow Fragment Context window in Shader Graph
- "Layer Palette Profile" Asset is automatically applied to the second Terrain but doesn't load any layers
- "Terrain Tools" shortcut conflicts with the Overlays shortcut by default
- Longer Shader Graph Property Reference names breaks VFX Graph Output Particle Node
Add comment