Search Issue Tracker
By Design
Votes
0
Found in
2021.2
2022.1
2022.2
2022.2.0a9
Issue ID
1417785
Regression
No
Button On Click () field event functions have invalid missing object type entries when copied and pasted
How to reproduce:
1. Open the user's attached project "My project (71).zip"
2. Select the Button GameObject in the Scene view
3. In the Inspector window locate the On Click () field
4. Right-click on an event function and copy it
5. Right-click on another event function and try pasting it
Expected result: Copied event function is pasted successfully
Actual result: Pasted event function has invalid "<Missing Texture2D..." entry
Reproducible with: 2021.2.19f1, 2022.1.0b16, 2022.2.0a10
Could not test with: 2019.4.38f1, 2020.3.33f1 (No Copy/Paste action)
Add comment
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
Resolution Note:
The copy command will only copy the method to be executed, it does not copy the target object. You need to also copy the target or it will be attempting to find a method on an object that does not have one.