UI Built in 4.6.0b15 Disappears In Later Versions

I have a heavily UI based app I started building early on in the beta cycle. I got up to beta 15 and have been stuck there as my UI disappears in each subsequent release from b16-b18. It does show back up in 5.0.0b2 but some plugins I use do not work in 5.0 yet and I have to finish the 1.0 version of the app in 4.6.x.

From what I can figure out it has something to do with HorizontalLayout and may involve the issue of setting a RectTransform GridLayout object as a GameObject (for turning panels off and on using .SetActive()) and Transform (to implement my own scrolling based on scrollbar value) in the class vars to work around ScrollRect and ContentSizeFitter issues where it would not resize after dynamically adding child prefab UI element contents. I can file a bug report if and when I get a chance as I am under the deadline gun currently, but am thinking it may be solvable without doing so. Have other devs ran into this?

This topic clearly belongs to the beta list.

Really? This is a public beta. It has to do with a current public release and I have been told prior, being on the beta list since 2010 that public releases were handled in public and keep them off the beta list. This is about 4.6.b18 and the only reason 5.x was referred to was to define that whatever broke my UI in b18 is not breaking it in 5.x. I think that tidbit of info is quite helpful to Unity techs who may be able to resolve it with a simple do this to that component. I note you do not have a Unity tech badge beside your name. Am I mistaken in thinking your assumptions carry little weight? If Rune weighs in for example and tells me to get my arse to the beta list I will certainly do so post haste. Because this is the fellow that told me to address public release stuff on the forums prior.

1 Like
  1. Public beta is b17, your problems began with b16. Why would anyone here care about obsolete stuff?
  2. Only reason it works in 5.0.0 b2 is because it’s based on 4.6 b15 (It doesn’t hurt to read those messages in beta list you know).

Edit: What happened to drop down list? - Unity Engine - Unity Discussions

Not really. This is “about” 4.6b15. You’ll probably have difficulty getting anyone to prioritize this issue because it’s not going to affect anyone who has only used the public beta or public releases.

It’s the risk you take when you use beta software in anything where you’re going to be under the gun to produce results.

Yeah guys…whatever. It is about b18 and my component settings. Does typing a GridLayout as a Transform affect visibility? Does setting a type to a Panel as GameObject affect visibility. It shouldn’t. There are all kinds of use cases for typing UI components as either the parent Transform or GameObject… Seems to me to be a b18 issue. I am spotting issues in other threads regardless. Thanks for your magnanimous opinions which have been duly noted. I love the helpfulness of this community…sometimes. Others times it gets a little too snippy for my personal tastes. @ortin … what has a thread with a drop down list got to do with this?? I don’t have a dropdown list in my UI. Just GridLayout. ScrollRect, Scrollbar and buttons and toggles… BTW… Neither of you are named Rune…nor have a Unity tech badge so what is yer point??

I think this could be very pertinent as most 4.6x users would like to know that their GUI’s will work and migrate to 5.x.

Also 4.x adopters would like to have the fully working GUI they were promised buy UT.

Note there is a hierarchy issue with UI elements that effect their occlusion, in effect elements must be subbed from a canvas.

I finally fired b18 back up and this is the error message I receive. I am not using a Scrollbar but a paging system and do not need a Scrollbar. I am also using a GridLayout with a scrollrect mask. I suspect this to be the culprit but I want a paging system and not a scrollbar whilst still making use of the Mask. What needs adjusting here? Am I tied to a Scrollbar component and why would this make my UI disappear? Again…it works dandy in b15 and in 5.x.beta currently.

NullReferenceException: Object reference not set to an instance of an object
UnityEngine.UI.LayoutGroup.CalculateLayoutInputHorizontal () (at /Applications/buildAgent/work/d63dfc6385190b60/Extensions/guisystem/guisystem/UI/Core/Layout/LayoutGroup.cs:44)
UnityEngine.UI.HorizontalLayoutGroup.CalculateLayoutInputHorizontal () (at /Applications/buildAgent/work/d63dfc6385190b60/Extensions/guisystem/guisystem/UI/Core/Layout/HorizontalLayoutGroup.cs:12)
UnityEngine.UI.LayoutRebuilder.m__6 (UnityEngine.Component e) (at /Applications/buildAgent/work/d63dfc6385190b60/Extensions/guisystem/guisystem/UI/Core/Layout/LayoutRebuilder.cs:27)
UnityEngine.UI.LayoutRebuilder.PerformLayoutCalculation (UnityEngine.RectTransform rect, UnityEngine.Events.UnityAction`1 action) (at /Applications/buildAgent/work/d63dfc6385190b60/Extensions/guisystem/guisystem/UI/Core/Layout/LayoutRebuilder.cs:88)
UnityEngine.UI.LayoutRebuilder.UnityEngine.UI.ICanvasElement.Rebuild (CanvasUpdate executing) (at /Applications/buildAgent/work/d63dfc6385190b60/Extensions/guisystem/guisystem/UI/Core/Layout/LayoutRebuilder.cs:27)
UnityEngine.UI.CanvasUpdateRegistry.PerformUpdate () (at /Applications/buildAgent/work/d63dfc6385190b60/Extensions/guisystem/guisystem/UI/Core/CanvasUpdateRegistry.cs:68)
UnityEngine.Canvas.SendWillRenderCanvases ()
UnityEngine.Canvas.ForceUpdateCanvases ()
UnityEngine.UI.ScrollRect.OnEnable () (at /Applications/buildAgent/work/d63dfc6385190b60/Extensions/guisystem

Hello ippdev,

I have the same issue in my Project. Whenn I disable my grid the UI Works perfectly fine.
So your suggestion is correct.
Did you manage to handle this, or is waiting for an fix from UT side the only option?

Greetings