Allows dragging of the specified target object by mouse or touch, optionally limiting it to be within the UIPanel's clipped rectangle.
More...
|
Vector3 | scale = new Vector3(1f, 1f, 0f) |
|
|
Vector3 | dragMovement [get, set] |
| Scale value applied to the drag delta. Set X or Y to 0 to disallow dragging in that direction. More...
|
|
Allows dragging of the specified target object by mouse or touch, optionally limiting it to be within the UIPanel's clipped rectangle.
Enumerator |
---|
None |
|
Momentum |
|
MomentumAndSpring |
|
void UIDragObject.CancelMovement |
( |
| ) |
|
void UIDragObject.CancelSpring |
( |
| ) |
|
Cancel the spring movement.
UIRect UIDragObject.contentRect = null |
Rectangle to be used as the draggable object's bounds. If none specified, all widgets' bounds get added up.
DragEffect UIDragObject.dragEffect = DragEffect.MomentumAndSpring |
Effect to apply when dragging.
float UIDragObject.momentumAmount = 35f |
How much momentum gets applied when the press is released after dragging.
bool UIDragObject.restrictWithinPanel = false |
Whether the dragging will be restricted to be within the parent panel's bounds.
Vector3 UIDragObject.scale = new Vector3(1f, 1f, 0f) |
|
protected |
Vector3 UIDragObject.scrollMomentum = Vector3.zero |
Momentum added from the mouse scroll wheel.
Transform UIDragObject.target |
Target object that will be dragged.
Vector3 UIDragObject.dragMovement |
|
getset |
Scale value applied to the drag delta. Set X or Y to 0 to disallow dragging in that direction.
The documentation for this class was generated from the following file: