C# Class Book

Afficher le fichier Open project: Dandarawy/Unity3DBookPageCurl Class Usage Examples

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode 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

Méthode 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 méthode

public DragLeftPageToPoint ( Vector3 point ) : void
point Vector3
Résultat void

DragRightPageToPoint() public méthode

public DragRightPageToPoint ( Vector3 point ) : void
point Vector3
Résultat void

Flip() public méthode

public Flip ( ) : void
Résultat void

OnMouseDragLeftPage() public méthode

public OnMouseDragLeftPage ( ) : void
Résultat void

OnMouseDragRightPage() public méthode

public OnMouseDragRightPage ( ) : void
Résultat void

OnMouseRelease() public méthode

public OnMouseRelease ( ) : void
Résultat void

ReleasePage() public méthode

public ReleasePage ( ) : void
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

TweenBack() public méthode

public TweenBack ( ) : void
Résultat void

TweenForward() public méthode

public TweenForward ( ) : void
Résultat void

TweenTo() public méthode

public TweenTo ( Vector3 to, float duration, System onFinish ) : IEnumerator
to Vector3
duration float
onFinish System
Résultat IEnumerator

Update() public méthode

public Update ( ) : void
Résultat void

UpdateBook() public méthode

public UpdateBook ( ) : void
Résultat void

UpdateBookLTRToPoint() public méthode

public UpdateBookLTRToPoint ( Vector3 followLocation ) : void
followLocation Vector3
Résultat void

UpdateBookRTLToPoint() public méthode

public UpdateBookRTLToPoint ( Vector3 followLocation ) : void
followLocation Vector3
Résultat void

UpdateSprites() public méthode

public UpdateSprites ( ) : void
Résultat void

transformPoint() public méthode

public transformPoint ( Vector3 global ) : Vector3
global Vector3
Résultat Vector3

Property Details

ClippingPlane public_oe property

public Image ClippingPlane
Résultat Image

Left public_oe property

public Image Left
Résultat Image

LeftNext public_oe property

public Image LeftNext
Résultat Image

NextPageClip public_oe property

public Image NextPageClip
Résultat Image

OnFlip public_oe property

public UnityEvent OnFlip
Résultat UnityEvent

Right public_oe property

public Image Right
Résultat Image

RightNext public_oe property

public Image RightNext
Résultat Image

Shadow public_oe property

public Image Shadow
Résultat Image

ShadowLTR public_oe property

public Image ShadowLTR
Résultat Image

background public_oe property

public Sprite background
Résultat Sprite

bookPages public_oe property

public Sprite[] bookPages
Résultat Sprite[]

canvas public_oe property

public Canvas canvas
Résultat Canvas

currentPage public_oe property

public int currentPage
Résultat int

enableShadowEffect public_oe property

public bool enableShadowEffect
Résultat bool

interactable public_oe property

public bool interactable
Résultat bool