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

# Class ksPaths

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

Provides static access to paths used throughout the project.

```csharp
[InitializeOnLoad]
public static class ksPaths
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) â† [ksPaths](/reactor/api-reference/ks.reactor.client.unity.editor/ks.reactor.client.unity.editor.kspaths.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)

## Properties

### AssetBundles <a href="#ks_reactor_client_unity_editor_kspaths_assetbundles" id="ks_reactor_client_unity_editor_kspaths_assetbundles"></a>

Path to folder containing entity data files for asset bundles.

```csharp
public static string AssetBundles { get; }
```

#### Property Value

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

### AssetIdData <a href="#ks_reactor_client_unity_editor_kspaths_assetiddata" id="ks_reactor_client_unity_editor_kspaths_assetiddata"></a>

Asset storing asset ids for Unity assets used as proxy assets.

```csharp
public static string AssetIdData { get; }
```

#### Property Value

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

### BuildToolsDir <a href="#ks_reactor_client_unity_editor_kspaths_buildtoolsdir" id="ks_reactor_client_unity_editor_kspaths_buildtoolsdir"></a>

Reactor build tools directory

```csharp
public static string BuildToolsDir { get; }
```

#### Property Value

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

### ClientScripts <a href="#ks_reactor_client_unity_editor_kspaths_clientscripts" id="ks_reactor_client_unity_editor_kspaths_clientscripts"></a>

Default location for client scripts.

```csharp
public static string ClientScripts { get; }
```

#### Property Value

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

### ClusterDir <a href="#ks_reactor_client_unity_editor_kspaths_clusterdir" id="ks_reactor_client_unity_editor_kspaths_clusterdir"></a>

Reactor cluster directory.

```csharp
public static string ClusterDir { get; }
```

#### Property Value

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

### CommonFolders <a href="#ks_reactor_client_unity_editor_kspaths_commonfolders" id="ks_reactor_client_unity_editor_kspaths_commonfolders"></a>

List of folders containing common scripts.

```csharp
public static List<string> CommonFolders { get; }
```

#### Property Value

[List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)<[string](https://learn.microsoft.com/dotnet/api/system.string)>

### CommonScripts <a href="#ks_reactor_client_unity_editor_kspaths_commonscripts" id="ks_reactor_client_unity_editor_kspaths_commonscripts"></a>

Default location for common scripts.

```csharp
public static string CommonScripts { get; }
```

#### Property Value

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

### CommonScriptsAsmDef <a href="#ks_reactor_client_unity_editor_kspaths_commonscriptsasmdef" id="ks_reactor_client_unity_editor_kspaths_commonscriptsasmdef"></a>

Asmdef file for common scripts.

```csharp
public static string CommonScriptsAsmDef { get; }
```

#### Property Value

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

### Config <a href="#ks_reactor_client_unity_editor_kspaths_config" id="ks_reactor_client_unity_editor_kspaths_config"></a>

Reactor config file.

```csharp
public static string Config { get; }
```

#### Property Value

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

### DefaultConvergingInputPredictor <a href="#ks_reactor_client_unity_editor_kspaths_defaultconverginginputpredictor" id="ks_reactor_client_unity_editor_kspaths_defaultconverginginputpredictor"></a>

```csharp
public static string DefaultConvergingInputPredictor { get; }
```

#### Property Value

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

### DefaultLinearPredictor <a href="#ks_reactor_client_unity_editor_kspaths_defaultlinearpredictor" id="ks_reactor_client_unity_editor_kspaths_defaultlinearpredictor"></a>

```csharp
public static string DefaultLinearPredictor { get; }
```

#### Property Value

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

### External <a href="#ks_reactor_client_unity_editor_kspaths_external" id="ks_reactor_client_unity_editor_kspaths_external"></a>

```csharp
public static string External { get; }
```

#### Property Value

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

### GameConfig <a href="#ks_reactor_client_unity_editor_kspaths_gameconfig" id="ks_reactor_client_unity_editor_kspaths_gameconfig"></a>

Game config file.

```csharp
public static string GameConfig { get; }
```

#### Property Value

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

### GeometryFile <a href="#ks_reactor_client_unity_editor_kspaths_geometryfile" id="ks_reactor_client_unity_editor_kspaths_geometryfile"></a>

Reactor geometry data file.

```csharp
public static string GeometryFile { get; }
```

#### Property Value

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

### ImageDir <a href="#ks_reactor_client_unity_editor_kspaths_imagedir" id="ks_reactor_client_unity_editor_kspaths_imagedir"></a>

Reactor build directory.

```csharp
public static string ImageDir { get; }
```

#### Property Value

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

### LocalServerRuntimeDll <a href="#ks_reactor_client_unity_editor_kspaths_localserverruntimedll" id="ks_reactor_client_unity_editor_kspaths_localserverruntimedll"></a>

Local server runtime dll.

```csharp
public static string LocalServerRuntimeDll { get; }
```

#### Property Value

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

### LogDir <a href="#ks_reactor_client_unity_editor_kspaths_logdir" id="ks_reactor_client_unity_editor_kspaths_logdir"></a>

Reactor log directory.

```csharp
public static string LogDir { get; }
```

#### Property Value

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

### OperatingSystem <a href="#ks_reactor_client_unity_editor_kspaths_operatingsystem" id="ks_reactor_client_unity_editor_kspaths_operatingsystem"></a>

Current operating system.

```csharp
public static string OperatingSystem { get; }
```

#### Property Value

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

### ProjectRoot <a href="#ks_reactor_client_unity_editor_kspaths_projectroot" id="ks_reactor_client_unity_editor_kspaths_projectroot"></a>

Root of the Unity project.

```csharp
public static string ProjectRoot { get; }
```

#### Property Value

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

### Proxies <a href="#ks_reactor_client_unity_editor_kspaths_proxies" id="ks_reactor_client_unity_editor_kspaths_proxies"></a>

Default location for server proxy scripts.

```csharp
public static string Proxies { get; }
```

#### Property Value

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

### ReactorRoot <a href="#ks_reactor_client_unity_editor_kspaths_reactorroot" id="ks_reactor_client_unity_editor_kspaths_reactorroot"></a>

Root location of Reactor assets.

```csharp
public static string ReactorRoot { get; }
```

#### Property Value

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

### ReactorScripts <a href="#ks_reactor_client_unity_editor_kspaths_reactorscripts" id="ks_reactor_client_unity_editor_kspaths_reactorscripts"></a>

Folder containing developer Reactor scripts.

```csharp
public static string ReactorScripts { get; }
```

#### Property Value

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

### ServerDir <a href="#ks_reactor_client_unity_editor_kspaths_serverdir" id="ks_reactor_client_unity_editor_kspaths_serverdir"></a>

Reactor server directory.

```csharp
public static string ServerDir { get; }
```

#### Property Value

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

### ServerFolders <a href="#ks_reactor_client_unity_editor_kspaths_serverfolders" id="ks_reactor_client_unity_editor_kspaths_serverfolders"></a>

List of folders containing server scripts.

```csharp
public static List<string> ServerFolders { get; }
```

#### Property Value

[List](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1)<[string](https://learn.microsoft.com/dotnet/api/system.string)>

### ServerRuntimeDll <a href="#ks_reactor_client_unity_editor_kspaths_serverruntimedll" id="ks_reactor_client_unity_editor_kspaths_serverruntimedll"></a>

Server runtime dll.

```csharp
public static string ServerRuntimeDll { get; }
```

#### Property Value

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

### ServerRuntimeProject <a href="#ks_reactor_client_unity_editor_kspaths_serverruntimeproject" id="ks_reactor_client_unity_editor_kspaths_serverruntimeproject"></a>

Server runtime project.

```csharp
public static string ServerRuntimeProject { get; }
```

#### Property Value

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

### ServerRuntimeProjectDir <a href="#ks_reactor_client_unity_editor_kspaths_serverruntimeprojectdir" id="ks_reactor_client_unity_editor_kspaths_serverruntimeprojectdir"></a>

Server runtime project build directory

```csharp
public static string ServerRuntimeProjectDir { get; }
```

#### Property Value

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

### ServerScripts <a href="#ks_reactor_client_unity_editor_kspaths_serverscripts" id="ks_reactor_client_unity_editor_kspaths_serverscripts"></a>

Server scripts folder.

```csharp
public static string ServerScripts { get; }
```

#### Property Value

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

### ServerScriptsAsmDef <a href="#ks_reactor_client_unity_editor_kspaths_serverscriptsasmdef" id="ks_reactor_client_unity_editor_kspaths_serverscriptsasmdef"></a>

Asmdef file for server scripts.

```csharp
public static string ServerScriptsAsmDef { get; }
```

#### Property Value

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

### TempMetafiles <a href="#ks_reactor_client_unity_editor_kspaths_tempmetafiles" id="ks_reactor_client_unity_editor_kspaths_tempmetafiles"></a>

Location of temporary proxy meta files.

```csharp
public static string TempMetafiles { get; }
```

#### Property Value

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

### Textures <a href="#ks_reactor_client_unity_editor_kspaths_textures" id="ks_reactor_client_unity_editor_kspaths_textures"></a>

Location of textures.

```csharp
public static string Textures { get; }
```

#### Property Value

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

## Methods

### FindCommonAndServerFolders() <a href="#ks_reactor_client_unity_editor_kspaths_findcommonandserverfolders" id="ks_reactor_client_unity_editor_kspaths_findcommonandserverfolders"></a>

Builds the lists of [CommonFolders](#KS_Reactor_Client_Unity_Editor_ksPaths_CommonFolders) and [ServerFolders](#KS_Reactor_Client_Unity_Editor_ksPaths_ServerFolders) by finding all asmref files that reference the [CommonScriptsAsmDef](#KS_Reactor_Client_Unity_Editor_ksPaths_CommonScriptsAsmDef) and [ServerScriptsAsmDef](#KS_Reactor_Client_Unity_Editor_ksPaths_ServerScriptsAsmDef) asmdefs. Folders containing an asmref referencing [CommonScriptsAsmDef](#KS_Reactor_Client_Unity_Editor_ksPaths_CommonScriptsAsmDef) are common folders and folders containing an asmref referencing [ServerScriptsAsmDef](#KS_Reactor_Client_Unity_Editor_ksPaths_ServerScriptsAsmDef) are server folders.

```csharp
public static void FindCommonAndServerFolders()
```

### GetAssetDataPath(string) <a href="#ks_reactor_client_unity_editor_kspaths_getassetdatapath_system_string" id="ks_reactor_client_unity_editor_kspaths_getassetdatapath_system_string"></a>

Gets the path to the file mapping IDs to assets for an asset bundle.

```csharp
public static string GetAssetDataPath(string assetBundle)
```

#### Parameters

`assetBundle` [string](https://learn.microsoft.com/dotnet/api/system.string)

Name to get file for, or null or empty string for resource assets.

#### Returns

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

Path to asset data file.

### GetEntityType(string, string) <a href="#ks_reactor_client_unity_editor_kspaths_getentitytype_system_string_system_string" id="ks_reactor_client_unity_editor_kspaths_getentitytype_system_string_system_string"></a>

Converts a prefab path to an entity type.

```csharp
public static string GetEntityType(string assetPath, string assetBundle = null)
```

#### Parameters

`assetPath` [string](https://learn.microsoft.com/dotnet/api/system.string)

Asset path to prefab.

`assetBundle` [string](https://learn.microsoft.com/dotnet/api/system.string)

AssetBundle the prefab belongs to, or null or empty string if it is not part of an AssetBundle.

#### Returns

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

Entity type

### IsCommonPath(string) <a href="#ks_reactor_client_unity_editor_kspaths_iscommonpath_system_string" id="ks_reactor_client_unity_editor_kspaths_iscommonpath_system_string"></a>

Checks if a path is in one of the [CommonFolders](#KS_Reactor_Client_Unity_Editor_ksPaths_CommonFolders) containing common scripts.

```csharp
public static bool IsCommonPath(string path)
```

#### Parameters

`path` [string](https://learn.microsoft.com/dotnet/api/system.string)

Path to check.

#### Returns

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

True if the path is in one of the [CommonFolders](#KS_Reactor_Client_Unity_Editor_ksPaths_CommonFolders).

### IsServerPath(string) <a href="#ks_reactor_client_unity_editor_kspaths_isserverpath_system_string" id="ks_reactor_client_unity_editor_kspaths_isserverpath_system_string"></a>

Checks if a path is in one of the [ServerFolders](#KS_Reactor_Client_Unity_Editor_ksPaths_ServerFolders) containing server scripts.

```csharp
public static bool IsServerPath(string path)
```

#### Parameters

`path` [string](https://learn.microsoft.com/dotnet/api/system.string)

Path to check.

#### Returns

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

True if the path is in one of the [ServerFolders](#KS_Reactor_Client_Unity_Editor_ksPaths_ServerFolders).

### IterateCommonAndServerFolders() <a href="#ks_reactor_client_unity_editor_kspaths_iteratecommonandserverfolders" id="ks_reactor_client_unity_editor_kspaths_iteratecommonandserverfolders"></a>

Iterates the [CommonFolders](#KS_Reactor_Client_Unity_Editor_ksPaths_CommonFolders) and [ServerFolders](#KS_Reactor_Client_Unity_Editor_ksPaths_ServerFolders).

```csharp
public static IEnumerable<string> IterateCommonAndServerFolders()
```

#### Returns

[IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)<[string](https://learn.microsoft.com/dotnet/api/system.string)>

Iterator

### SceneConfigFile(string) <a href="#ks_reactor_client_unity_editor_kspaths_sceneconfigfile_system_string" id="ks_reactor_client_unity_editor_kspaths_sceneconfigfile_system_string"></a>

Reactor scene config file for the active scene.

```csharp
public static string SceneConfigFile(string scene)
```

#### Parameters

`scene` [string](https://learn.microsoft.com/dotnet/api/system.string)

Scene name

#### Returns

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

Scene config file path.

### SceneGeometryFile(string) <a href="#ks_reactor_client_unity_editor_kspaths_scenegeometryfile_system_string" id="ks_reactor_client_unity_editor_kspaths_scenegeometryfile_system_string"></a>

Reactor scene geometry file for the active scene.

```csharp
public static string SceneGeometryFile(string scene)
```

#### Parameters

`scene` [string](https://learn.microsoft.com/dotnet/api/system.string)

Scene name

#### Returns

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

Scene geometry file path.
