Source/Assets/TouchScript/Scripts/Layers/TouchLayer.cs
/// <summary>
/// Checks if a point in screen coordinates hits something in this layer.
/// </summary>
/// <param name="position">Position in screen coordinates.</param>
/// <param name="hit">Hit result.</param>
/// <returns><see cref="LayerHitResult.Hit"/>, if an object is hit, <see cref="LayerHitResult.Miss"/> or <see cref="LayerHitResult.Error"/> otherwise.</returns>
Checks if a point in screen coordinates hits something in this layer.
Checks if a point in screen coordinates hits something in this layer .
public virtual LayerHitResult Hit(Vector2 position, out TouchHit hit)
        {
            hit = default(TouchHit);
            if (enabled == false || gameObject.activeInHierarchy == false) return LayerHitResult.Miss;
            return LayerHitResult.Error;
        }
public virtual LayerHitResult Hit ( Vector2 position , out TouchHit hit ) { hit = default ( TouchHit ) ; if ( enabled == false || gameObject . activeInHierarchy == false ) return LayerHitResult . Miss ; return LayerHitResult . Error ; }
Checks if a point in screen coordinates hits something in this layer.
Checks if a point in screen coordinates hits something in this layer .
, if an object is hit,  or  otherwise.
if an object is hit or otherwise .
position
Vector2
Position in screen coordinates.
Position in screen coordinates .
TouchHit
out
hit
None