Exemple #1
0
        public override void Dispose()
        {
            Panel.Dispose();

            if (HorizontalScrollbar != null)
            {
                HorizontalScrollbar.Dispose();
            }

            if (VerticalScrollbar != null)
            {
                VerticalScrollbar.Dispose();
            }
        }
Exemple #2
0
        private void RemoveHorizontalScrollbar()
        {
            Panel.HorizontalScrollbar = null;

            if (HorizontalScrollbar != null)
            {
                Panel.Height += HorizontalScrollbar.Height;

                HorizontalScrollbar.Dispose();

                GameObject.DestroyImmediate(HorizontalScrollbar.Control.GameObject);
                HorizontalScrollbar = null;
            }
        }