Share via


GKBehavior.FromGoals Method

Definition

Overloads

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

Applies to