> For the complete documentation index, see [llms.txt](https://kinematicsoup.gitbook.io/reactor/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/reactor/api-reference/ks.reactor.client.unity.editor/ks.reactor.client.unity.editor.ksinitializer.md).

# Class ksInitializer

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

Performs initialization logic when the Unity editor loads.

* Loads Reactor configs.
* Checks Reactor package versions.
* Prepares caches.
* Attaches Reactor scripts to game objects.
* Initializes UI windows.

```csharp
[InitializeOnLoad]
public class ksInitializer
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) â† [ksInitializer](/reactor/api-reference/ks.reactor.client.unity.editor/ks.reactor.client.unity.editor.ksinitializer.md)

#### Inherited Members

[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)), [object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)), [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode), [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype), [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone), [object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals), [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Methods

### CreateReactorConfig() <a href="#ks_reactor_client_unity_editor_ksinitializer_createreactorconfig" id="ks_reactor_client_unity_editor_ksinitializer_createreactorconfig"></a>

Create a [ksReactorConfig](/reactor/api-reference/ks.reactor.client.unity/ks.reactor.client.unity.ksreactorconfig.md) asset if one does not already exist.

```csharp
public static bool CreateReactorConfig()
```

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

Returns true if a new Reactor config was created.
