Ejemplo n.º 1
0
        // Constructor
        protected LayoutGroup(GUIStyle style, bool ignoreConstaints)
        {
            Style = style;

            _hasBackground = style.normal.background != null;

            ContentOffset = new RectOffset();
            if (ignoreConstaints)
            {
                return;
            }
            ContentOffset.Accumulate(style.padding);
        }