UIScaleDetector
A modifier class that detects scale changes on a GUI element.
Properties
| Property | Type | Default |
|---|---|---|
Name | string | "UIScaleDetector" |
isResizing | boolean | false |
activeHandle | any | nil |
MinSize | Vector2 | Vector2.new(40, 40) |
RespectScreenBounds | boolean | true |
newSizeCallback | any | nil |
_startMouse | Vector3 | Vector3.new(0, 0, 0) |
_startAbsPos | Vector2 | Vector2.new(0, 0) |
_startAbsSz | Vector2 | Vector2.new(0, 0) |
Functions
getParentMetrics
Arguments
parentReturns
This function returns nothing.
getHandleRect
Arguments
key, absPos, absSizeReturns
This function returns nothing.
API
instance:getParentMetrics(parent)
instance:getHandleRect(key, absPos, absSize)