# GetFilePath()

> Get the file path where this ScriptableSingleton is saved to.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.7/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
protected static string GetFilePath()
```

### Returns

| Type                                                           | Description                                               |
| -------------------------------------------------------------- | --------------------------------------------------------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | The file path where this ScriptableSingleton is saved to. |

### Remarks

If you call this function and your class has no [FilePathAttribute](/engine/6000.7/script-reference/unityeditor/filepathattribute.md), then an empty string is returned.
