List Block

A block that can list any Inventool object.

The List Block can list Inventool objects. Only one Inventool object type is supported per list, and the type is derived from the Info Block Prefab.

You can add the default design to your scene by right-clicking in the hierarchy and navigating to Inventool > Blocks > List > List Block.

Check out its scripting section to learn about its full potential.

List Blockchevron-right

Properties

Components & Prefabs

Name
Description

Scroll Rect

The scroll rect that handles list scrolling.

Grid Layout Group

The grid layout group that handles the positioning of all instantiated objects.

Info Block Prefab

The block to instantiate for each list item.

Layout

Name
Description

Alignment Axis

The axis used to align the items.

Axis Count

The number of rows or columns.

Alignment Anchor

The anchor to align the items towards.

Cell Size

The size of each cell.

Spacing

The spacing between each list item.

Padding

Padding that decreases the cell size of each element from each side. Useful for when some spacing is required from edges when fit width or fit height is enabled.

Stretch Width

When enabled, automatically scales the width of each cell in every row so that each row attempts to fit the parent container's total width.

Stretch Height

When enabled, automatically scales the height of each cell in every column so that each column attempts to fit the parent container's total height.

List

Name
Description

Order Mode

Controls the ordering of the objects in the list.

List Type

Controls what objects are included in the list.

Included Objects

A list that appears when the list type is set to "List Specified Only."

Last updated