Table of Contents
ModHelperComponent for a background panel
public class ModHelperScrollPanel : BTD_Mod_Helper.Api.Components.ModHelperPanel
Inheritance UnityEngine.MonoBehaviour ModHelperComponent ModHelperPanel ModHelperScrollPanel
The ContentSizeFitter component which makes sure that the ScrollContent
is the right size to hold all the scrollable items.
public ContentSizeFitter ContentSizeFitter { get; set; }
UnityEngine.UI.ContentSizeFitter
The Mask component which prevents overflow of rendering outside the scroll area
public Mask Mask { get; }
The ScrollContent object. This is the object that the children are actually part of,
and is what actually moves up and down when scrolling.
public BTD_Mod_Helper.Api.Components.ModHelperPanel ScrollContent { get; }
The ScrollRect component which controls many aspects of scrolling
public ScrollRect ScrollRect { get; }
Adds a child to the ScrollContent of this panel
public void AddScrollContent(BTD_Mod_Helper.Api.Components.ModHelperComponent child);
child
ModHelperComponent
By default, ModHelperScrollPanels use themselves as the scroll viewport. This method separates it into
two different objects. Useful for having the viewport change size based on scrollbar presence.
public void UseInnerViewport();