C# Class UIDragPanelContents, Prototype

Inheritance: MonoBehaviour
显示文件 Open project: Lifespark/Prototype Class Usage Examples

Public Properties

Property Type Description
draggablePanel UIDraggablePanel,

Public Methods

Method Description
Awake ( ) : void

Backwards compatibility.

OnDrag ( Vector2, delta ) : void

Drag the object along the plane.

OnPress ( bool pressed ) : void

Create a plane on which we will be performing the dragging.

OnScroll ( float delta ) : void

If the object should support the scroll wheel, do it.

Start ( ) : void

Automatically find the draggable panel if possible.

Method Details

Awake() public method

Backwards compatibility.
public Awake ( ) : void
return void

OnDrag() public method

Drag the object along the plane.
public OnDrag ( Vector2, delta ) : void
delta Vector2,
return void

OnPress() public method

Create a plane on which we will be performing the dragging.
public OnPress ( bool pressed ) : void
pressed bool
return void

OnScroll() public method

If the object should support the scroll wheel, do it.
public OnScroll ( float delta ) : void
delta float
return void

Start() public method

Automatically find the draggable panel if possible.
public Start ( ) : void
return void

Property Details

draggablePanel public_oe property

This panel's contents will be dragged by the script.
public UIDraggablePanel, draggablePanel
return UIDraggablePanel,