Property | Type | Description | |
---|---|---|---|
dragEffect | UIDragObject.DragEffect | ||
momentumAmount | float | ||
rootForBounds | Transform | ||
scale | Vector2 | ||
scrollWheelFactor | float | ||
smoothDragStart | bool |
Method | Description | |
---|---|---|
Awake ( ) : void |
Cache the common components.
|
|
ConstrainToBounds ( bool immediate ) : bool |
Constrain the current camera's position to be within the viewable area's bounds.
|
|
Drag ( Vector2 delta ) : void |
Drag event receiver.
|
|
Press ( bool isPressed ) : void |
Calculate the bounds of all widgets under this game object.
|
|
Scroll ( float delta ) : void |
If the object should support the scroll wheel, do it.
|
|
Start ( ) : void |
Cache the root.
|
|
Update ( ) : void |
Apply the dragging momentum.
|
Method | Description | |
---|---|---|
CalculateConstrainOffset ( ) : Vector3 |
Calculate the offset needed to be constrained within the panel's bounds.
|
public ConstrainToBounds ( bool immediate ) : bool | ||
immediate | bool | |
return | bool |
public UIDragObject.DragEffect dragEffect | ||
return | UIDragObject.DragEffect |