UIDragDetector
A drag detection component for UI elements.
Properties
| Property | Type | Default |
|---|---|---|
Name | string | "UIDragDetector" |
isDragging | boolean | false |
RespectScreenBounds | boolean | true |
dragOffset | Vector3 | Vector3.new(0, 0, 0) |
Functions
makeRect
Arguments
x, y, width, heightReturns
This function returns nothing.
mouseInRect
Arguments
rectReturns
This function returns nothing.
getParentMetrics
Arguments
parent, windowReturns
This function returns nothing.
propTable.render
Arguments
lib, object, dt, structs, rendererReturns
This function returns nothing.
API
instance:makeRect(x, y, width, height)
instance:mouseInRect(rect)
instance:getParentMetrics(parent, window)
instance:render(lib, object, dt, structs, renderer)