Search Issue Tracker
Not Reproducible
Votes
0
Found in
5.0.0b21
Issue ID
668986
Regression
Yes
Assigning a canvas to an OnClick () event on the button changes the reference from a canvas to an object
To reproduce:
- Enter play mode
- Try the "Show / Hide" button on the text panel (this will work as intended hiding/showing the canvas).
- Exit play mode
- Re-assign the TextPanel canvas to the On Click () event on the "TextPanelButton" (drag it on)
- You will see the (Canvas) reference changed to an Object reference instead
- Enter play mode
- Try the "Show / Hide" button again
- Observe the Null exception error
Workaround is possible by dragging the canvas component to the OnClick() event instead of the whole object
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Android ] "AndroidJNI.ToBooleanArray" returns a random non-zero value instead of "IntPtr.Zero" when the method argument is null
- Non-HDR color picker opens when selecting material color with HDR enabled
- Crash on EditorApplication:Internal_CallUpdateFunctions when pushing property block by index to SpriteShapeRenderer
- Depth Texture Mode "After Opaques" breaks when "Full Screen Pass Renderer Feature" is added
- The Code Previews panel is initially opened in a slightly minimized state
Add comment