Search Issue Tracker
By Design
Votes
0
Found in
5.0.0b14
Issue ID
650641
Regression
No
OnClick() area doesnt recheck functions, after changing script, and then gives Exeption
OnClick() area doesn't recheck functions, after changing script
2) How can we reproduce it using the example you attached
Please see attached video
1 Create new project
2 Add Menu->GameObject->UI->Button
3 Assign script with public function to any GameObject
public void Test1(string text)
{
Debug.Log ("Test1: " text);
}
4 Add this function to OnClick() event using UI (in Inspector)
5 Change function to
public int Test1(string text)
{
Debug.Log ("Test1: " text);
return 0;
}
Actual result: the function is still assigned in Inspector, but is not available anymore to choose
Question: Should it be reset to No Function or throw warning after script reload?
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Object reference not set to an instance of an object" is thrown when destroying a GameObject with a Camera Component
- [Android] The error message "OPENGL NATIVE PLUG-IN ERROR: GL_OUT_OF_MEMORY:" is thrown when the video is playing
- [IL2CPP] Build fails with the error "[1mcannot convert 'Nullable_1_tEA06D91799914C5C8830F83CE2A8395868C14F02' to 'int32_t' (aka 'int') without a conversion operator" when IL2CPP is used as the Scripting Backend
- Rigidbody interpolation is performed after the next frame's FixedUpdate() when using Rigidbody2D
- OnAudioFilterRead not working as expected for generator scripts
Add comment