<!--
{
  "availability" : [
    "Reality Composer Pro: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "ComputeGraph",
  "identifier" : "/documentation/ComputeGraph/group/maximumGroupsInSystem",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Compute Graph"
    ],
    "preciseIdentifier" : "group::maximumGroupsInSystem"
  },
  "title" : "group::maximumGroupsInSystem"
}
-->

# group::maximumGroupsInSystem

Returns the maximum number of groups allowed in the particle system.

```
int group::maximumGroupsInSystem()
```

## Return Value

The total number of groups that can exist in the system

## Discussion

Use this function to determine the total capacity of groups in the system,
which is useful for normalizing group indices or creating group-based patterns.

> Visual: ![Graph](group__maximumGroupsInSystem)

---

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)