<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameplayKit",
  "identifier" : "/documentation/GameplayKit/GKRule/salience",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "GameplayKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKRule(py)salience"
  },
  "title" : "salience"
}
-->

# salience

The importance of the rule relative to others in a rule system’s agenda.

```
var salience: Int { get set }
```

## Discussion

A [`GKRuleSystem`](/documentation/GameplayKit/GKRuleSystem) object evaluates the rules in its [`agenda`](/documentation/GameplayKit/GKRuleSystem/agenda) list in order of decreasing salience.

Typically, you set the salience of a rule before calling the [`add(_:)`](/documentation/GameplayKit/GKRuleSystem/add(_:)-76jb5) or [`add(_:)`](/documentation/GameplayKit/GKRuleSystem/add(_:)-7u5zw) method, so that the system can insert the new rule into its agenda at the proper position. Changing the salience of a rule already in a rule system does not affect its order in the current agenda, but it does affect the order of the new agenda the rule system builds when you call its [`reset()`](/documentation/GameplayKit/GKRuleSystem/reset()) method.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)