Instance Method

remove(_:)

Removes the specified individual behavior from the composite behavior.

Declaration

func remove(_ behavior: GKBehavior)

Parameters

behavior

An individual behavior in the composite behavior.

See Also

Managing the Individual Behaviors in a Composite Behavior

func setWeight(Float, for: GKBehavior)

Sets the weight for the specified individual behavior’s influence on agents, adding that behavior to the composite behavior if it is not already present.

func weight(for: GKBehavior) -> Float

Returns the weight for the specified individual behavior’s influence on agents.

func removeAllBehaviors()

Removes all individual behaviors from the composite behavior.

var behaviorCount: Int

The number of individual behaviors in the composite behavior.