Item
Properties
Position
Item.Position:
Vector2
The position of the Item in a grid ItemManager.
PositionChanged
This item is read only and cannot be modified. Read OnlySignalItem.PositionChanged:
RBXScriptSignal
An event signal that fires every time the Item has it's position changed.
Size
Item.Size:
Vector2
The size of the Item in a grid ItemManager.
Rotation
This item is read only and cannot be modified. Read OnlyItem.Rotation:
number
The current rotation of the item. Use Item:Rotate()
to edit.
PotentialRotation
This item is read only and cannot be modified. Read OnlyItem.PotentialRotation:
number
The rotation that will be applied if a successful move goes through.
ItemManager
This item is read only and cannot be modified. Read OnlyItem.ItemManager:
ItemManagerObject?
The current ItemManger that the Item is in.
ItemManagerChanged
This item is read only and cannot be modified. Read OnlySignalItem.ItemManagerChanged:
RBXScriptSignal
An event signal that fires every time the Item is moved in a new ItemManager.
HoveringItemManager
This item is read only and cannot be modified. Read OnlyItem.HoveringItemManager:
ItemManagerObject?
The ItemManager that the Item is hovering over. ItemManagers need to be linked via TranferLinks to register as a hoverable ItemManager.
HoveringItemManagerChanged
This item is read only and cannot be modified. Read OnlySignalItem.HoveringItemManagerChanged:
RBXScriptSignal
An event signal that fires every time the Item is hovering over a new ItemManager.
MoveMiddleware
A callback function where you can do additional move checks. The Item will be automatically moved back if the callback function returns false.
Functions
new
Item.
new
(
properties:
Types.ItemProperties
) →
Types.ItemObject
Creates a new Item object.
Rotate
Item:
Rotate
(
quartersOf360:
number
) →
(
)
Rotates the Item, has to be dragged to be rotatable.
SetItemManager
Item:
SetItemManager
(
itemManager:
Types.ItemManagerObject
) →
(
)
Moves an item to a new ItemManager. This should only be used for transferring Items between ItemManagers that aren't linked using TranferLinks.
Destroy
Item:
Destroy
(
) →
(
)
Destroy the Item object.