The focus behavior for a node.
SDKs
- iOS 11.0+
- Mac Catalyst 13.0+
- tvOS 11.0+
Framework
- Sprite
Kit
Declaration
var focusBehavior: SKNode Focus Behavior { get set }
The focus behavior for a node.
SDKs
Framework
var focusBehavior: SKNode Focus Behavior { get set }
Enable your node to respond to user input, like touches or mouse clicks.
var is User Interaction Enabled: Bool
A Boolean value that indicates whether the node receives touch events.