public abstract class TouchLayer : MonoBehaviour
Thetype exposes the following members.
Gets or sets an object implementing ILayerDelegate to be asked for layer specific actions.
Layers screen to world projection normal.
Called when a pointer is added.
Unity Awake callback.
Called when a pointer is cancelled.
Checks the hit filters.
Creates projection parameters.
Gets the projection parameters of this layer which might depend on a specific pointer data.
Checks if a point in screen coordinates hits something in this layer.
Unity OnDestroy callback.
Called when a layer is pressed over an object detected by this layer.
Called when a pointer is released.
Called when a pointer is removed.
Updates pointer layers's name.
Called when a pointer is moved.
The layer projection parameters.
Pointer layer's name.
In TouchScript it's a layer's job to determine if a pointer on the screen hits anything in Unity's 3d/2d world.
ILayerManager keeps a sorted list of all layers in Layers which it queries when a new pointer appears. It's a layer's job to return Hit if this pointer hits an object. Layers can even be used to "hit" objects outside of Unity's 3d world, for example Scaleform integration is implemented this way.
If you want to route pointers and manually control which objects they should "pointer" it's better to create a new layer extending.