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
- Memory leak when a lot of UI elements are spawned and despawned
- Warnings are not logged in the Console window when using external code analyzers
- Errors “TLS Allocator ALLOC_TEMP_TLS, underlying allocator ALLOC_TEMP_MAIN has unfreed allocations, size 288“ appear constantly when Prefab is open
- Crash on PPtr<Shader>::operator or NullException errors spammed in console when calling Dispose() on null GraphicsBuffer with baked Reflection Probes
- “EndRenderPass: Not inside a Renderpass” and other Render Graph errors in the Player when Render Graph is enabled and Overlay UI is used
Add comment