> For the complete documentation index, see [llms.txt](https://kb.heathen.group/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.heathen.group/old-kb/old-toolkit-for-steamworks/unity/objects/ui-components/clan-chat-member-counter.md).

# Clan Chat Member Counter

{% hint style="success" %}

#### Like what your seeing?

Support us as a [GitHub Sponsor](/old-kb/where-to-buy/become-a-sponsor.md) and get instant access to all our assets, exclusive tools and assets, escalated support and issue tracking and our gratitude.\
\
These articles are made possible by our [GitHub Sponsors](/old-kb/where-to-buy/become-a-sponsor.md) ... become a sponsor today!
{% endhint %}

## Introduction

Maintains a display of the number of users in a clan chat.

```csharp
namespace HeathenEngineering.SteamworksIntegration.UI
```

```csharp
public class ClanChatMemberCounter : MonoBehaviour
```

## Fields and Attributes

### Clan Id

Can only be set in the Unity Editor

The ID of the clan to monitor

```csharp
[SerializeField]
private ulong clanId;
```

### Prefix

Can only be set in the Unity Editor

The prefix to assign to the text label before the number of users

```csharp
[SerializeField]
internal string prefix;
```

### Suffix

Can only be set in the Unity Editor

The suffix to assign to the text label after the number of users

```csharp
[SerializeField]
internal string suffix;
```

### Clan

Exposes the [ClanData ](/old-kb/old-toolkit-for-steamworks/unity/objects/classes/clan-data.md)that this object is linked to and can be assigned to update which clan is monitored

```csharp
public ClanData Clan { get; set; }
```

## Methods

### Apply

Apply the clan, this is done for you when you assign the Clan field

```csharp
public void Apply(ClanData clan)
```

### Refresh

Refresh the value, this updates the text label, this is in general called for you

```csharp
public void Refresh()
```
