> 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.sfeventmap-2.md).

# Class sfEventMap\<K, T>

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

Maps Keys of type K to event handlers of delegate type T.

```csharp
public class sfEventMap<K, T> where T : class
```

#### Type Parameters

`K`

`T`

#### Inheritance

object ← [sfEventMap\<K, T>](/scene-fusion/api-reference/ks.scenefusion.client.unity.editor/ks.scenefusion.client.unity.editor.sfeventmap-2.md)

## Fields

### m\_map <a href="#ks_scenefusion_client_unity_editor_sfeventmap_2_m_map" id="ks_scenefusion_client_unity_editor_sfeventmap_2_m_map"></a>

```csharp
protected Dictionary<K, ksEvent<T>> m_map
```

#### Field Value

Dictionary\<K, ksEvent\<T>>

## Properties

### this\[K] <a href="#ks_scenefusion_client_unity_editor_sfeventmap_2_item__0" id="ks_scenefusion_client_unity_editor_sfeventmap_2_item__0"></a>

Gets the event for a key.

```csharp
public ksEvent<T> this[K key] { get; set; }
```

#### Property Value

ksEvent\<T>

## Methods

### GetHandlers(K) <a href="#ks_scenefusion_client_unity_editor_sfeventmap_2_gethandlers__0" id="ks_scenefusion_client_unity_editor_sfeventmap_2_gethandlers__0"></a>

Gets a delegate that combines all event handlers for a key.

```csharp
public virtual T GetHandlers(K key)
```

#### Parameters

`key` K

key to get handlers for.

#### Returns

T

delegate for the handlers, or null if the key has no handlers.
