Search Unity

Question about Layout Element & Ignore Layout

Discussion in 'UGUI & TextMesh Pro' started by Stephan-B, Jul 10, 2015.

  1. Stephan-B

    Stephan-B

    Joined:
    Feb 23, 2011
    Posts:
    2,269
    Are child objects of a parent which has Ignore Layout set to true, still suppose to be getting the callbacks on CalculateLayoutInputHorizontal() & CalculateLayoutInputVertical()?

    They are currently getting those callbacks which seems wrong given the parent is set to ignore layout.

    Is the working as intended or a bug? If working as intended, can we get some insight on this behavior?
     
    rainbowegg and tayl0r like this.
  2. ortin

    ortin

    Joined:
    Jan 13, 2013
    Posts:
    221
  3. rainbowegg

    rainbowegg

    Joined:
    May 6, 2014
    Posts:
    12
    Any information on this?
     
  4. tayl0r

    tayl0r

    Joined:
    Jan 6, 2012
    Posts:
    85
  5. Stephan-B

    Stephan-B

    Joined:
    Feb 23, 2011
    Posts:
    2,269
    I guess it is my turn to bump this...
     
  6. ortin

    ortin

    Joined:
    Jan 13, 2013
    Posts:
    221
  7. runevision

    runevision

    Joined:
    Nov 28, 2007
    Posts:
    1,892
    Hi, back from vacation.

    I'd say in general I would not expect any UI elements in a sub-hierarchy of an element set to ignore layout to get layout callbaks, unless any element in that sub-hierarchy itself has layout components on it, such as LayoutGroups, ContextSizeFitter, AspectRatioFitter or similar. If they do, then this forms their own little sub auto-layout hierarchy with its own calculations, but which is still ignored by the parent auto-layout hierarchy (and not affecting it).

    I'd need more details about the specific setup to be able to determine if there's a bug or if things are working as intended.