Click or drag to resize

StandardLayer Class

A layer which combines all types of hit recognition into one: UI (Screen Space and World), 3D and 2D.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          TouchScript.LayersTouchLayer
            TouchScript.LayersStandardLayer

Namespace:  TouchScript.Layers
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public class StandardLayer : TouchLayer

The StandardLayer type exposes the following members.

Constructors
  NameDescription
Public methodStandardLayer
Initializes a new instance of the StandardLayer class
Top
Properties
  NameDescription
Public propertyDelegate
Gets or sets an object implementing ILayerDelegate to be asked for layer specific actions.
(Inherited from TouchLayer.)
Public propertyHit2DObjects
Indicates that the layer should look for 2D objects in the scene. Set this to false to optimize hit processing.
Public propertyHit3DObjects
Indicates that the layer should look for 3D objects in the scene. Set this to false to optimize hit processing.
Public propertyHitScreenSpaceUI
Indicates that the layer should look for Screen Space UI objects in the scene. Set this to false to optimize hit processing.
Public propertyHitWorldSpaceUI
Indicates that the layer should look for World UI objects in the scene. Set this to false to optimize hit processing.
Public propertyLayerMask
Gets or sets the layer mask which is used to select layers which should be touchable from this layer.
Public propertyUseHitFilters
Indicates that the layer should query for HitTest components on target objects. Set this to false to optimize hit processing.
Public propertyWorldProjectionNormal
Layers screen to world projection normal.
(Overrides TouchLayerWorldProjectionNormal.)
Top
Methods
  NameDescription
Protected methodaddPointer
Called when a pointer is added.
(Inherited from TouchLayer.)
Protected methodAwake
Unity Awake callback.
(Overrides TouchLayerAwake.)
Protected methodcancelPointer
Called when a pointer is cancelled.
(Inherited from TouchLayer.)
Protected methodcheckHitFilters
Checks the hit filters.
(Inherited from TouchLayer.)
Protected methodcreateProjectionParams
Creates projection parameters.
(Overrides TouchLayercreateProjectionParams.)
Public methodGetProjectionParams
Gets the projection parameters of this layer which might depend on a specific pointer data.
(Overrides TouchLayerGetProjectionParams(Pointer).)
Public methodHit
Checks if a point in screen coordinates hits something in this layer.
(Overrides TouchLayerHit(IPointer, HitData).)
Protected methodOnDestroy
Unity OnDestroy callback.
(Inherited from TouchLayer.)
Protected methodpressPointer
Called when a layer is pressed over an object detected by this layer.
(Inherited from TouchLayer.)
Protected methodreleasePointer
Called when a pointer is released.
(Inherited from TouchLayer.)
Protected methodremovePointer
Called when a pointer is removed.
(Inherited from TouchLayer.)
Protected methodsetName
Updates pointer layers's name.
(Overrides TouchLayersetName.)
Protected methodupdateCamera
Finds a camera.
Protected methodupdatePointer
Called when a pointer is moved.
(Inherited from TouchLayer.)
Top
Events
  NameDescription
Public eventPointerBegan
Occurs when layer determines that a pointer has hit something.
(Inherited from TouchLayer.)
Top
Fields
  NameDescription
Protected field_camera
Camera.
Protected fieldlayerProjectionParams
The layer projection parameters.
(Inherited from TouchLayer.)
Protected fieldmanager
Layer manager.
(Inherited from TouchLayer.)
Public fieldName
Pointer layer's name.
(Inherited from TouchLayer.)
Top
See Also