---
title: behaviorCount
framework: gameplaykit
role: symbol
role_heading: Instance Property
path: gameplaykit/gkcompositebehavior/behaviorcount
---

# behaviorCount

The number of individual behaviors in the composite behavior.

## Declaration

```swift
var behaviorCount: Int { get }
```

## See Also

### Managing the Individual Behaviors in a Composite Behavior

- [setWeight(_:for:)](gameplaykit/gkcompositebehavior/setweight(_:for:).md)
- [weight(for:)](gameplaykit/gkcompositebehavior/weight(for:).md)
- [remove(_:)](gameplaykit/gkcompositebehavior/remove(_:).md)
- [removeAllBehaviors()](gameplaykit/gkcompositebehavior/removeallbehaviors().md)
