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
- Asset list items fail to load content when scrolling through the List view in Asset Store Search
- Uninitialized variable warning appears in the Inspector of a custom shader when the variable is initialized
- "Failed creating toolbar element from ID..." error is thrown when resetting the Scene view Overlay layout while an Asset Transformer Toolbox overlay is active
- Entity ID for Font Assets is serialized twice which throws an error when using Debug Inspector
- Play Mode can be entered when disabling Adaptive Performance and pressing either the Play Mode button or the keyboard shortcut to enter Play Mode before recompilation leading to errors and warnings thrown
Add comment