C# Class TouchScript.Behaviors.Visualizer.TouchProxyBase

Base class for TouchVisualizer cursors.
Inheritance: UnityEngine.MonoBehaviour
Afficher le fichier Open project: TouchScript/TouchScript Class Usage Examples

Protected Properties

Свойство Type Description
rect UnityEngine.RectTransform
size int

Méthodes publiques

Méthode Description
Hide ( ) : void

Hides this instance.

Init ( RectTransform parent, TouchPoint touch ) : void

Initializes (resets) the cursor.

UpdateTouch ( TouchPoint touch ) : void

Updates the touch. This method is called when the touch is moved.

update ( TouchPoint touch ) : void

This method is called every time when the touch changes.

Méthodes protégées

Méthode Description
hide ( ) : void

Hides (clears) this instance.

show ( ) : void

Shows this instance.

updateOnce ( TouchPoint touch ) : void

This method is called once when the cursor is initialized.

Private Methods

Méthode Description
Awake ( ) : void

Method Details

Hide() public méthode

Hides this instance.
public Hide ( ) : void
Résultat void

Init() public méthode

Initializes (resets) the cursor.
public Init ( RectTransform parent, TouchPoint touch ) : void
parent UnityEngine.RectTransform Parent container.
touch TouchPoint Touch this cursor represents.
Résultat void

UpdateTouch() public méthode

Updates the touch. This method is called when the touch is moved.
public UpdateTouch ( TouchPoint touch ) : void
touch TouchPoint Touch this cursor represents.
Résultat void

hide() protected méthode

Hides (clears) this instance.
protected hide ( ) : void
Résultat void

show() protected méthode

Shows this instance.
protected show ( ) : void
Résultat void

update() public méthode

This method is called every time when the touch changes.
public update ( TouchPoint touch ) : void
touch TouchPoint The touch.
Résultat void

updateOnce() protected méthode

This method is called once when the cursor is initialized.
protected updateOnce ( TouchPoint touch ) : void
touch TouchPoint The touch.
Résultat void

Property Details

rect protected_oe property

Cached RectTransform.
protected RectTransform,UnityEngine rect
Résultat UnityEngine.RectTransform

size protected_oe property

Cursor size.
protected int size
Résultat int