Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

UI Built in 4.6.0b15 Disappears In Later Versions

Discussion in 'UGUI & TextMesh Pro' started by ippdev, Sep 3, 2014.

  1. ippdev

    ippdev

    Joined:
    Feb 7, 2010
    Posts:
    3,789
    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?
     
  2. ortin

    ortin

    Joined:
    Jan 13, 2013
    Posts:
    221
    This topic clearly belongs to the beta list.
     
  3. ippdev

    ippdev

    Joined:
    Feb 7, 2010
    Posts:
    3,789
    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.
     
    Arowx likes this.
  4. ortin

    ortin

    Joined:
    Jan 13, 2013
    Posts:
    221
    Last edited: Sep 3, 2014
  5. StarManta

    StarManta

    Joined:
    Oct 23, 2006
    Posts:
    8,738
    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.
     
  6. ippdev

    ippdev

    Joined:
    Feb 7, 2010
    Posts:
    3,789
    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??
     
  7. Arowx

    Arowx

    Joined:
    Nov 12, 2009
    Posts:
    8,194
    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.
     
    Last edited: Sep 3, 2014
  8. ippdev

    ippdev

    Joined:
    Feb 7, 2010
    Posts:
    3,789
    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.<Rebuild>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
     
  9. MadAsAHatter

    MadAsAHatter

    Joined:
    Jan 28, 2014
    Posts:
    3
    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