# Location

> Represents the location of a reported issue.

## Definition

* **Type:** Class
* **Namespace:** [Unity.ProjectAuditor.Editor](/engine/6000.7/script-reference/unity/projectauditor/editor.md)
* **Assembly:** UnityEditor
* **Implements:** [ISerializationCallbackReceiver](/engine/6000.7/script-reference/unityengine/iserializationcallbackreceiver.md)

```csharp
public class Location : ISerializationCallbackReceiver
```

## Constructors

| Constructor                                                                                                                                 | Description                  |
| ------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- |
| [Location()](/engine/6000.7/script-reference/unity/projectauditor/editor/location/ctor.md#location\(\))                                     | Constructor                  |
| [Location(System.String)](/engine/6000.7/script-reference/unity/projectauditor/editor/location/ctor.md#location\(string\))                  | Constructor                  |
| [Location(System.String,System.Int32)](/engine/6000.7/script-reference/unity/projectauditor/editor/location/ctor.md#location\(string-int\)) | Constructor with line number |

## Properties

| Property                                                                                                       | Description                          |
| -------------------------------------------------------------------------------------------------------------- | ------------------------------------ |
| [Extension](/engine/6000.7/script-reference/unity/projectauditor/editor/location/extension.md)                 | File extension                       |
| [Filename](/engine/6000.7/script-reference/unity/projectauditor/editor/location/filename.md)                   | Filename                             |
| [FormattedFilename](/engine/6000.7/script-reference/unity/projectauditor/editor/location/formattedfilename.md) | Formatted filename with line number  |
| [FormattedPath](/engine/6000.7/script-reference/unity/projectauditor/editor/location/formattedpath.md)         | Formatted path with line number      |
| [IsValid](/engine/6000.7/script-reference/unity/projectauditor/editor/location/isvalid.md)                     | Checks whether the location is valid |
| [Line](/engine/6000.7/script-reference/unity/projectauditor/editor/location/line.md)                           | Line number                          |
| [Path](/engine/6000.7/script-reference/unity/projectauditor/editor/location/path.md)                           | Full path                            |

## Methods

| Method                                                                                                           | Description              |
| ---------------------------------------------------------------------------------------------------------------- | ------------------------ |
| [OnAfterDeserialize](/engine/6000.7/script-reference/unity/projectauditor/editor/location/onafterdeserialize.md) | Post-serialize callback. |
| [OnBeforeSerialize](/engine/6000.7/script-reference/unity/projectauditor/editor/location/onbeforeserialize.md)   | Pre-serialize callback.  |
