Quantity Block
Allows the user to select a quantity.

The Quantity Block allows the user to select a quantity for an action. It functions similarly to the Confirmation Block: confirming the selected quantity also confirms the action, while closing the Quantity Block cancels the action.
You can add the default design to your scene by right-clicking in the hierarchy and navigating to Inventool > Blocks > Windows > Quantity Block.
Check out its scripting section to learn about its full potential.
Quantity BlockProperties
Content
The object that contains all content.
Close On Cache
If the window should be closed on cache (usually on awake).
Blocks To Refresh
A list of blocks that should refresh along with the window.
On Open
A callback for when this window is opened.
On Close
A callback for when this window is closed.
Dont Destroy On Load
If this window should not be destroyed when a new scene is loaded.
Title Label
A block that displays the title.
Icon Display
The block that displays the target item graphic.
Preferred Sprite Identifier
The identifier of the preferred item sprite to display.
Amount Slider
A slider that sets the amount.
Amount Input
An input field that sets the amount.
Cancel Button
A button block that cancels the action.
Confirm Button
A button block that presents general text or a stack price and triggers confirmation of the action.
Last updated