Creates a behavior with the specified goals.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
An array of goal objects.
A new behavior object. To assign a set of goals to an agent, use its
The new behavior contains the specified goals, each with a weight of
1. To change a goal’s weight after creating the behavior, keep a reference to that goal and use the