> 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.sfannotationutils.md).

# Class sfAnnotationUtils

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

Utils class to check if a game object has a component with an icon in the scene view.

```csharp
public class sfAnnotationUtils
```

#### Inheritance

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

## Constructors

### sfAnnotationUtils() <a href="#ks_scenefusion_client_unity_editor_sfannotationutils__ctor" id="ks_scenefusion_client_unity_editor_sfannotationutils__ctor"></a>

Constructor

```csharp
public sfAnnotationUtils()
```

## Methods

### Get() <a href="#ks_scenefusion_client_unity_editor_sfannotationutils_get" id="ks_scenefusion_client_unity_editor_sfannotationutils_get"></a>

```csharp
public static sfAnnotationUtils Get()
```

#### Returns

[sfAnnotationUtils](/scene-fusion/api-reference/ks.scenefusion.client.unity.editor/ks.scenefusion.client.unity.editor.sfannotationutils.md)

singleton instance.

### HasComponentIcon(GameObject) <a href="#ks_scenefusion_client_unity_editor_sfannotationutils_hascomponenticon_unityengine_gameobject" id="ks_scenefusion_client_unity_editor_sfannotationutils_hascomponenticon_unityengine_gameobject"></a>

Checks if the game object has a component with an icon in the scene view.

```csharp
public bool HasComponentIcon(GameObject gameObject)
```

#### Parameters

`gameObject` GameObject

#### Returns

bool

true if the game object has a component with an icon in the scene view.

### UpdateAnnotationCache() <a href="#ks_scenefusion_client_unity_editor_sfannotationutils_updateannotationcache" id="ks_scenefusion_client_unity_editor_sfannotationutils_updateannotationcache"></a>

Fetches the annotations if the cache is null or the annotation window was opened and closed since last time. Returns true if the annotations cache is updated.

```csharp
public bool UpdateAnnotationCache()
```

#### Returns

bool
