> For the complete documentation index, see [llms.txt](https://kinematicsoup.gitbook.io/scene-fusion/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kinematicsoup.gitbook.io/scene-fusion/api-reference/ks.scenefusion.client.unity.editor/ks.scenefusion.client.unity.editor.sfactivityindicator.md).

# Class sfActivityIndicator

Namespace: [KS.SceneFusion.Client.Unity.Editor](/scene-fusion/api-reference/ks.scenefusion.client.unity.editor.md)\
Assembly: KSUnity-Source.dll

Spinning activity indicator for the scene view.

```csharp
public class sfActivityIndicator : sfIActivityIndicator
```

#### Inheritance

object ← [sfActivityIndicator](/scene-fusion/api-reference/ks.scenefusion.client.unity.editor/ks.scenefusion.client.unity.editor.sfactivityindicator.md)

#### Implements

[sfIActivityIndicator](/scene-fusion/api-reference/ks.scenefusion.client/ks.scenefusion.client.sfiactivityindicator.md)

## Properties

### Showing <a href="#ks_scenefusion_client_unity_editor_sfactivityindicator_showing" id="ks_scenefusion_client_unity_editor_sfactivityindicator_showing"></a>

Is the activity indicator showing?

```csharp
public bool Showing { get; }
```

#### Property Value

bool

## Methods

### AddTask() <a href="#ks_scenefusion_client_unity_editor_sfactivityindicator_addtask" id="ks_scenefusion_client_unity_editor_sfactivityindicator_addtask"></a>

Increments the task count. The spinner is visible while the task count is greater than zero.

```csharp
public void AddTask()
```

### ClearProgressBar() <a href="#ks_scenefusion_client_unity_editor_sfactivityindicator_clearprogressbar" id="ks_scenefusion_client_unity_editor_sfactivityindicator_clearprogressbar"></a>

Hides the progress bar.

```csharp
public void ClearProgressBar()
```

### ClearTasks() <a href="#ks_scenefusion_client_unity_editor_sfactivityindicator_cleartasks" id="ks_scenefusion_client_unity_editor_sfactivityindicator_cleartasks"></a>

Sets the task count to zero and hides the spinner.

```csharp
public void ClearTasks()
```

### RemoveTask() <a href="#ks_scenefusion_client_unity_editor_sfactivityindicator_removetask" id="ks_scenefusion_client_unity_editor_sfactivityindicator_removetask"></a>

Decrements the task count if it is greater than zero. The spinner is visible while the task count is greater than zero.

```csharp
public void RemoveTask()
```

### ShowProgressBar(string, float) <a href="#ks_scenefusion_client_unity_editor_sfactivityindicator_showprogressbar_system_string_system_single" id="ks_scenefusion_client_unity_editor_sfactivityindicator_showprogressbar_system_string_system_single"></a>

Shows a progress bar with a message.

```csharp
public void ShowProgressBar(string message, float progress)
```

#### Parameters

`message` string

Message to show with progress bar

`progress` float

Progress from 0 to 1.
