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

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

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

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

                VerticalScrollbar.Dispose();

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