C# Class TouchScript.Layers.CameraLayer2D

Inheritance: TouchScript.Layers.CameraLayerBase
Mostra file Open project: TouchScript/TouchScript

Protected Methods

Method Description
OnEnable ( ) : void

Unity OnEnable callback.

castRay ( Ray ray, TouchScript.Hit.TouchHit &hit ) : LayerHitResult

Private Methods

Method Description
doHit ( RaycastHit2D raycastHit, TouchScript.Hit.TouchHit &hit ) : HitTest.ObjectHitResult
sortHits ( RaycastHit2D hits ) : void

Method Details

OnEnable() protected method

Unity OnEnable callback.
protected OnEnable ( ) : void
return void

castRay() protected method

protected castRay ( Ray ray, TouchScript.Hit.TouchHit &hit ) : LayerHitResult
ray UnityEngine.Ray
hit TouchScript.Hit.TouchHit
return LayerHitResult