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