C# Class Book

Mostra file Open project: Dandarawy/Unity3DBookPageCurl Class Usage Examples

Public Properties

Property Type Description
ClippingPlane Image
Left Image
LeftNext Image
NextPageClip Image
OnFlip UnityEvent
Right Image
RightNext Image
Shadow Image
ShadowLTR Image
background Sprite
bookPages Sprite[]
canvas Canvas
currentPage int
enableShadowEffect bool
interactable bool

Public Methods

Method Description
DragLeftPageToPoint ( Vector3 point ) : void
DragRightPageToPoint ( Vector3 point ) : void
Flip ( ) : void
OnMouseDragLeftPage ( ) : void
OnMouseDragRightPage ( ) : void
OnMouseRelease ( ) : void
ReleasePage ( ) : void
Start ( ) : void
TweenBack ( ) : void
TweenForward ( ) : void
TweenTo ( Vector3 to, float duration, System onFinish ) : IEnumerator
Update ( ) : void
UpdateBook ( ) : void
UpdateBookLTRToPoint ( Vector3 followLocation ) : void
UpdateBookRTLToPoint ( Vector3 followLocation ) : void
UpdateSprites ( ) : void
transformPoint ( Vector3 global ) : Vector3

Private Methods

Method Description
Calc_C_Position ( Vector3 followLocation ) : Vector3
Calc_T0_T1_Angle ( Vector3 c, Vector3 bookCorner, Vector3 &t1 ) : float
normalizeT1X ( float t1, Vector3 corner, Vector3 sb ) : float

Method Details

DragLeftPageToPoint() public method

public DragLeftPageToPoint ( Vector3 point ) : void
point Vector3
return void

DragRightPageToPoint() public method

public DragRightPageToPoint ( Vector3 point ) : void
point Vector3
return void

Flip() public method

public Flip ( ) : void
return void

OnMouseDragLeftPage() public method

public OnMouseDragLeftPage ( ) : void
return void

OnMouseDragRightPage() public method

public OnMouseDragRightPage ( ) : void
return void

OnMouseRelease() public method

public OnMouseRelease ( ) : void
return void

ReleasePage() public method

public ReleasePage ( ) : void
return void

Start() public method

public Start ( ) : void
return void

TweenBack() public method

public TweenBack ( ) : void
return void

TweenForward() public method

public TweenForward ( ) : void
return void

TweenTo() public method

public TweenTo ( Vector3 to, float duration, System onFinish ) : IEnumerator
to Vector3
duration float
onFinish System
return IEnumerator

Update() public method

public Update ( ) : void
return void

UpdateBook() public method

public UpdateBook ( ) : void
return void

UpdateBookLTRToPoint() public method

public UpdateBookLTRToPoint ( Vector3 followLocation ) : void
followLocation Vector3
return void

UpdateBookRTLToPoint() public method

public UpdateBookRTLToPoint ( Vector3 followLocation ) : void
followLocation Vector3
return void

UpdateSprites() public method

public UpdateSprites ( ) : void
return void

transformPoint() public method

public transformPoint ( Vector3 global ) : Vector3
global Vector3
return Vector3

Property Details

ClippingPlane public_oe property

public Image ClippingPlane
return Image

Left public_oe property

public Image Left
return Image

LeftNext public_oe property

public Image LeftNext
return Image

NextPageClip public_oe property

public Image NextPageClip
return Image

OnFlip public_oe property

public UnityEvent OnFlip
return UnityEvent

Right public_oe property

public Image Right
return Image

RightNext public_oe property

public Image RightNext
return Image

Shadow public_oe property

public Image Shadow
return Image

ShadowLTR public_oe property

public Image ShadowLTR
return Image

background public_oe property

public Sprite background
return Sprite

bookPages public_oe property

public Sprite[] bookPages
return Sprite[]

canvas public_oe property

public Canvas canvas
return Canvas

currentPage public_oe property

public int currentPage
return int

enableShadowEffect public_oe property

public bool enableShadowEffect
return bool

interactable public_oe property

public bool interactable
return bool