Sample assets (4.6 version) and nightmares projects cause UI exceptions on 5.0b9

Hello,

I’ve already reported a bug from nightmares on UI slider exception:

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

As well as this one on the event system:

MissingMethodException: Cannot find the requested method.
UnityEngine.CanvasGroup.IsRaycastLocationValid (Vector2 sp, UnityEngine.Camera eventCamera) (at C:/buildslave/unity/build/artifacts/EditorGenerated/CanvasGroupBindings.cs:65)
UnityEngine.UI.Graphic.Raycast (Vector2 sp, UnityEngine.Camera eventCamera) (at C:/buildslave/unity/build/Extensions/guisystem/guisystem/UI/Core/Graphic.cs:405)
UnityEngine.UI.GraphicRaycaster.Raycast (UnityEngine.Canvas canvas, UnityEngine.Camera eventCamera, Vector2 pointerPosition, System.Collections.Generic.List`1 results) (at C:/buildslave/unity/build/Extensions/guisystem/guisystem/UI/Core/GraphicRaycaster.cs:185)
UnityEngine.UI.GraphicRaycaster.Raycast (UnityEngine.EventSystems.PointerEventData eventData, System.Collections.Generic.List`1 resultAppendList) (at C:/buildslave/unity/build/Extensions/guisystem/guisystem/UI/Core/GraphicRaycaster.cs:104)
UnityEngine.EventSystems.EventSystem.RaycastAll (UnityEngine.EventSystems.PointerEventData eventData, System.Collections.Generic.List`1 raycastResults) (at C:/buildslave/unity/build/Extensions/guisystem/guisystem/EventSystem/EventSystem.cs:134)
UnityEngine.EventSystems.PointerInputModule.GetMousePointerEventData () (at C:/buildslave/unity/build/Extensions/guisystem/guisystem/EventSystem/InputModules/PointerInputModule.cs:145)
UnityEngine.EventSystems.StandaloneInputModule.ProcessMouseEvent () (at C:/buildslave/unity/build/Extensions/guisystem/guisystem/EventSystem/InputModules/StandaloneInputModule.cs:276)
UnityEngine.EventSystems.StandaloneInputModule.Process () (at C:/buildslave/unity/build/Extensions/guisystem/guisystem/EventSystem/InputModules/StandaloneInputModule.cs:159)
UnityEngine.EventSystems.EventSystem.Update () (at C:/buildslave/unity/build/Extensions/guisystem/guisystem/EventSystem/EventSystem.cs:228)

Since these all appear to be internal sealed component scripts, there isn’t a work around at this stage is there?

I also noticed that the physics are completely broken for the prop plane (sample assets) and several other rather major issues with the various scenes. Should I bother reporting all the errors or just wait for the next beta release? Maybe just wait for a fixed or updated version of those packages? :slight_smile:

Update: The nightmare spawns are broken too, as mobs can’t make it out or navigate. I’ve even re-baked the navmesh as I know that changed format.

Update2: I fixed the navigation issues by adding a mesh render to the floor object (only had a filter + collider) and removing the material and then re-baking. I also fixed the UI exceptions by removing the canvas group and graphic raycast components from the health slider. The physics on the sample assets are another problem all together.

There is a Unity 5 version of sample assets, see this post for details:

#468

@terravires

Missing method exception, this is the exact same issue I noticed soon as I loaded my game within Unity5, and got heat for mentioning it from the community. My only response which I do not find accurate is that they not ported all the b21 GUI system.

There’s official 5.0 versions of both Sample Assets and Nightmares coming before the official launch, although you can grab an early beta of the 5.0 sample assets from elbows’ link above. I’ll have an update for Nightmares to run in 4.6 later this week but for now the Asset Store versions of these projects are best used in 4.5.

The errors you’re seeing are indeed due to the 4.6 beta being ahead of the 5.0 beta GUI systems, as well as some changes of files behind the scenes in 5.0 which should be addressed soon in an update to the beta.

1 Like

I’ve submitted a couple of crash reports on the nightmare project as I find Unity 5b9 crashes a lot when I’m shooting up the zombies.

Nevermind - my bad. :stuck_out_tongue:
Thought it was a bug - overlooked a setting.

@the_motionblur What setting did you overlook?

And how can I fix this error?
@elbows @peteorstrike How can i use the Sample Assets to fix the errors?

@jsleek I had “apply root motion” checked in the character settings. Since this character isn’t driven by root motion it needs to be unchecked.

Hi @jsleek ! My response about Sample Assets was in regards to the original post where they mentioned that the 4.x Sample Assets scenes were broken in 5.0. There will be updated versions of that project that will work in 5.0 coming soon, although this has nothing which will help your current issue.

If you check the edits on the orginal post, @terravires ‘fixed’ the UI exceptions by removing the canvas group and graphic raycast components from the HUDCanvas and MenuCanvas GameObjects. This really just disables the broken stuff to stop the console spewing errors, though.

A fix should come once the latest UI changes from 4.6 make it into the 5.0 beta, although I don’t personally have an ETA on when that will be.