---
title: "group::maximumGroupsInSystem"
framework: Compute Graph
role: symbol
role_heading: Function
platforms: [iOS 27.0+, iPadOS 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: computegraph/group/maximumgroupsinsystem
---

# group::maximumGroupsInSystem

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

## Declaration

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

## Return Value

Return Value The total number of groups that can exist in the system

## Discussion

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. note:
