C# Class TouchScript.Behaviors.Visualizer.TouchProxyBase

Base class for TouchVisualizer cursors.
Inheritance: UnityEngine.MonoBehaviour
显示文件 Open project: TouchScript/TouchScript Class Usage Examples

Protected Properties

Property Type Description
rect UnityEngine.RectTransform
size int

Public Methods

Method 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.

Protected Methods

Method 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

Method Description
Awake ( ) : void

Method Details

Hide() public method

Hides this instance.
public Hide ( ) : void
return void

Init() public method

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

UpdateTouch() public method

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

hide() protected method

Hides (clears) this instance.
protected hide ( ) : void
return void

show() protected method

Shows this instance.
protected show ( ) : void
return void

update() public method

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

updateOnce() protected method

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

Property Details

rect protected_oe property

Cached RectTransform.
protected RectTransform,UnityEngine rect
return UnityEngine.RectTransform

size protected_oe property

Cursor size.
protected int size
return int