Creates a behavior with the specified goals and weights.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
An array of goal objects.
An array of numbers, each the weight to be applied to the goal at the corresponding index in the
A new behavior object. To assign a set of goals to an agent, use its