ScrollableContainerTag

scrollable-container

Adding page buttons

<bottom-button-panel>
  <button text="Page Up" tags="PageUpFor:id" />
  <button text="Page Down" tags="PageDownFor:id" />
</bottom-button-panel>

Simply by adding a tag of the form PageUpFor:{id} or PageDownFor:{id} to any button, the scroll view with the specified ID will find and manage those buttons. It will mark them intractable as appropriate, and if the scroll content is not large enough to need scrolling, it will disable them. Only the first button with the tag will be chosen for each.

Adding a scroll indicator

<scroll-indicator tags="IndicatorFor:id" />

Components and Properties

BSMLScrollableContainer

align-bottom

bool

Whether or not scrollable goes from bottom to top or top to bottom.

mask-overflow

bool

Whether or not to allow objects to extend past the container.

scroll-to-bottom-on-update

bool

Whether or not to scroll to the bottom of the list when data is updated rather than the top.

ContentSizeFitter

horizontal-fit

FitMode

How the width is controlled.

vertical-fit

FitMode

How the height is controlled.

HorizontalOrVerticalLayoutGroup

child-control-height

bool

Whether or not to control the height it’s children.

child-control-width

bool

Whether or not to control the width it’s children.

child-expand-height

bool

Whether or not to force the children to expand to fill additional available vertical space.

child-expand-width

bool

Whether or not to force the children to expand to fill additional available horizontal space.

spacing

float

Space between elements.

LayoutGroup

child-alignment

child-align

TextAnchor

The alignment to use for the child layout elements in the layout group.

padding

pad

int

Padding for all directions.

pad-bottom

int

Bottom padding.

pad-left

int

Left padding.

pad-right

int

Right padding.

pad-top

int

Top padding.

RectTransform

active

bool

Whether or not the GameObject this RectTransform belongs to is active.

anchor-max

Vector2

The anchor point for the upper right corner of the rectangle defined as a fraction of the size of the parent rectangle.

anchor-max-x

float

The normalized x position in the parent RectTransform that the upper right corner is anchored to.

anchor-max-y

float

The normalized y position in the parent RectTransform that the upper right corner is anchored to.

anchor-min

Vector2

The anchor point for the lower left corner of the rectangle defined as a fraction of the size of the parent rectangle.

anchor-min-x

float

The normalized x position in the parent RectTransform that the lower left corner is anchored to.

anchor-min-y

float

The normalized y position in the parent RectTransform that the lower left corner is anchored to.

anchored-position

Vector2

Position of the rectangle’s pivot point relative to the anchors.

anchored-position-x

anchor-pos-x

float

The x position of the pivot of this RectTransform relative to the anchor reference point.

anchored-position-y

anchor-pos-y

float

The y position of the pivot of this RectTransform relative to the anchor reference point.

hover-hint

string

Text that will appear when a pointer hovers over.

hover-hint-key

localization key

The localization key used for the hover hint text.

local-scale

scale

Vector3

Scale factor applied to the object in the X, Y and Z dimensions.

name

string

The name of the GameObject.

pivot

Vector2

The location around which the rectangle rotates.

pivot-x

float

Normalized x position to rotate around.

pivot-y

float

Normalized y position to rotate around.

size-delta

Vector2

The size added to the rectangle defined by the anchors.

size-delta-x

float

The width added to the rectangle defined by the anchors.

size-delta-y

float

The height added to the rectangle defined by the anchors.