UI.Selectable.OnCanvasGroupChanged Missing (B12)

Hi,

I’m slightly confused, does the latest build include the Unity 4.6 GUI system?
Currently using 4.6Beta21 and decided to move to Unity 5.0 with project.

If so, I’m getting this error:

MissingMethodException: Cannot find the requested method.
UnityEngine.UI.Selectable.OnCanvasGroupChanged () (at /Users/builduser/buildslave/unity/build/Extensions/guisystem/guisystem/UI/Core/Selectable.cs:136)

Thank you.

They said here Unity 5 Canvas Scaler - Unity Engine - Unity Discussions
that the changes for the ui haven’t made it into the 5 beta since it takes someone time to manually do it and they don’t have the time yet.

But 4.6 Beta 20 worked fine also, I need official comments from Unity team?

Archania is correct. 4.6b21 is the latest build of the UI, But Unity 5 only has the UI from b19 or b20 - just as superpig says.

Yes I understand this, if it has UI from b19 and b20 then it should still work.
I started using Unity 4.6 since the public beta to make my uGUI and it has worked throughout versions.
I didnt start on B21, so technically should not get this error

Edit: Seems this is solved - Final answer 4.6 on a different branch and UI stuff missing in Unity 5, other users please be aware

1 Like

I have the same problem since I moved from unity 4.6 b20 to Unity 5.0 b9. I event tried 5.0 b11 but the problem is still here. Can you please tell me how did you solve this? You reverted to Unity 4.6?

Yes I had no choice but to revert to Unity 4.6, not sure whats going on to be honest.

Ok thx for the information ! Guess we will have to wait for the next unity 5 beta :wink:

Edit : I think it is just a problem with canvasgroup, it is not related with the update of the project. When i create an empty project and i put a canvasgroup on the canvas, the same problem appears…

Hi, we are going to be doing a pass on 5.0 specific UI bugs very soon :slight_smile:

3 Likes

Yes I did not suggest its a issue with individuals project as project works fine in 4.6 etc.
Can you test with the official beta 11 release and see if you get same results as this just been released this morning.
And also are you getting same error message as me or something different?

With the beta 11 I still have the same problem as in beta 9 :
MissingMethodException: Cannot find the requested method.
UnityEngine.UI.Selectable.OnCanvasGroupChanged ()

It seems it will be fixed in the next betas

Thank you for testing this, saved me much time needed to install and reinstall Unity builds etc.
I hope it makes it to beta 12 or a work around provided.

Just installed Beta 12 and again same issue, some official comments from Unity staff would be most helpful

MissingMethodException: Cannot find the requested method.
UnityEngine.UI.Selectable.OnCanvasGroupChanged () (at /Users/builduser/buildslave/unity/build/Extensions/guisystem/guisystem/UI/Core/Selectable.cs:136)

Yes I had the same problem.
I hope it will be fixed in the next beta but we have no have no choice but to be patient anyway :). I am sure that the unity guys have a bunch of things to fix, and it seems that this one is not one of the highest priority (it didn’t find any other posts concerning this bug, except the ones you posted in)
They said “very soon”, not “in the next beta” (unfortunately)

Yes but if I knew what is causing this and what this error means I can do a work around, right now I have not idea what setting is causing it, I dont think Im even using this feature of the GUI

The only workaround you could use right now is, i guess, not use canvasgroups until the bug is fixed. If you have no canvasgroup it should not try to call this method.
You could disable the canvas instead, or something like that

1 Like

Thanks dude, btw are you using NGUI by any chance in your project?

I don’t, sorry

1 Like

Yup, ran into this error while creating a new test project from the Survival shooter (aka Nightmares) project. I removed the canvasgroups and there errors are gone.

Guess we’ll wait and hope it makes it into beta 13 :frowning:

This bug is causing us headaches too. I hope the fix makes it into beta 13.