Instance Property

isUserInteractionEnabled

A Boolean value that indicates whether the node receives touch events.

Declaration

var isUserInteractionEnabled: Bool { get set }

Discussion

The default value is false.

See Also

Handling User Input

Controlling User Interaction on Nodes

Enable your node to respond to user input, like touches or mouse clicks.

var focusBehavior: SKNodeFocusBehavior

The focus behavior for a node.