GKBehavior.FromGoals Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| FromGoals(NSDictionary<GKGoal,NSNumber>) | |
| FromGoals(GKGoal[]) | |
| FromGoals(GKGoal[], NSNumber[]) |
FromGoals(NSDictionary<GKGoal,NSNumber>)
[Foundation.Export("behaviorWithWeightedGoals:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static GameplayKit.GKBehavior FromGoals(Foundation.NSDictionary<GameplayKit.GKGoal,Foundation.NSNumber> weightedGoals);
[<Foundation.Export("behaviorWithWeightedGoals:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member FromGoals : Foundation.NSDictionary<GameplayKit.GKGoal, Foundation.NSNumber> -> GameplayKit.GKBehavior
Parameters
- weightedGoals
- NSDictionary<GKGoal,NSNumber>
Returns
- Attributes
Applies to
FromGoals(GKGoal[])
[Foundation.Export("behaviorWithGoals:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static GameplayKit.GKBehavior FromGoals(GameplayKit.GKGoal[] goals);
[<Foundation.Export("behaviorWithGoals:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member FromGoals : GameplayKit.GKGoal[] -> GameplayKit.GKBehavior
Parameters
- goals
- GKGoal[]
Returns
- Attributes
Applies to
FromGoals(GKGoal[], NSNumber[])
[Foundation.Export("behaviorWithGoals:andWeights:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static GameplayKit.GKBehavior FromGoals(GameplayKit.GKGoal[] goals, Foundation.NSNumber[] weights);
[<Foundation.Export("behaviorWithGoals:andWeights:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member FromGoals : GameplayKit.GKGoal[] * Foundation.NSNumber[] -> GameplayKit.GKBehavior
Parameters
- goals
- GKGoal[]
- weights
- NSNumber[]
Returns
- Attributes