Skip to content

CLASS

TargetIconNode

public class TargetIconNode: SKSpriteNode

Properties

fillRatio

public var fillRatio: CGFloat = 0.75

Methods

update(_:)

public func update(_ icon: String)

Updates the icon of the node. Automatically resizes and positions it in the center of the target.

  • Parameter icon: The icon to update to

Parameters

Name Description
icon The icon to update to