Performs any custom periodic actions defined by the component subclass.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
The time step to use for any time-dependent actions performed by this method (typically, the elapsed time since the previous call to this method).
Override this method to implement per-frame logic specific to your component class. GameplayKit calls this method when you call the
update(delta method of the entity owning a component, or when you call the
update(delta method of a
GKComponent object that manages all components of a specific
GKComponent subclass. Typically, you call one of those methods in response to a per-frame game loop method such as
update(_:) (SpriteKit) or