GKBehavior.SetWeight(Single, GKGoal) 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.
Sets the weight
for goal
, potentially adding goal
to the GKBehavior.
[Foundation.Export("setWeight:forGoal:")]
public virtual void SetWeight (float weight, GameplayKit.GKGoal goal);
abstract member SetWeight : single * GameplayKit.GKGoal -> unit
override this.SetWeight : single * GameplayKit.GKGoal -> unit
Parameters
- weight
- Single
- goal
- GKGoal
- Attributes
Remarks
If goal
is not currently in the GKBehavior, this method will add it.