# Asset

> This class containes information about the version control state of an asset.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor.VersionControl](/engine/6000.5/script-reference/unityeditor/versioncontrol.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public class Asset
```

## Properties

| Property                                                                                                     | Description                                                                                                                                     |
| ------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| [assetPath](/engine/6000.5/script-reference/unityeditor/versioncontrol/asset/assetpath.md)                   | Gets the path of the Asset relative to the project root. If the Asset is a meta file, the path to the meta file is returned.                    |
| [fullName](/engine/6000.5/script-reference/unityeditor/versioncontrol/asset/fullname.md)                     | Gets the full name of the asset including extension.                                                                                            |
| [isFolder](/engine/6000.5/script-reference/unityeditor/versioncontrol/asset/isfolder.md)                     | Returns true if the asset is a folder.                                                                                                          |
| [isInCurrentProject](/engine/6000.5/script-reference/unityeditor/versioncontrol/asset/isincurrentproject.md) | Returns true if the asset file exists and is in the current project.                                                                            |
| [isMeta](/engine/6000.5/script-reference/unityeditor/versioncontrol/asset/ismeta.md)                         | Returns true if the instance of the Asset class actually refers to a .meta file.                                                                |
| [locked](/engine/6000.5/script-reference/unityeditor/versioncontrol/asset/locked.md)                         | Returns true if the asset is locked by the version control system.                                                                              |
| [metaPath](/engine/6000.5/script-reference/unityeditor/versioncontrol/asset/metapath.md)                     | Gets the path of the meta file for this Asset relative to the project root. If the Asset is a meta file, the path to the meta file is returned. |
| [name](/engine/6000.5/script-reference/unityeditor/versioncontrol/asset/name.md)                             | Get the name of the asset.                                                                                                                      |
| [path](/engine/6000.5/script-reference/unityeditor/versioncontrol/asset/path.md)                             | Gets the path of the asset.                                                                                                                     |
| [readOnly](/engine/6000.5/script-reference/unityeditor/versioncontrol/asset/readonly.md)                     | Returns true is the asset is read only.                                                                                                         |
| [state](/engine/6000.5/script-reference/unityeditor/versioncontrol/asset/state.md)                           | Gets the version control state of the asset.                                                                                                    |

## Methods

| Method                                                                                             | Description                                                                             |
| -------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
| [Edit](/engine/6000.5/script-reference/unityeditor/versioncontrol/asset/edit.md)                   | Opens the assets in an associated editor.                                               |
| [IsOneOfStates](/engine/6000.5/script-reference/unityeditor/versioncontrol/asset/isoneofstates.md) | Returns true if the version control state of the assets is one of the input states.     |
| [IsState](/engine/6000.5/script-reference/unityeditor/versioncontrol/asset/isstate.md)             | Returns true if the version control state of the asset exactly matches the input state. |
| [Load](/engine/6000.5/script-reference/unityeditor/versioncontrol/asset/load.md)                   | Loads the asset to memory.                                                              |

## Enums

| Enum                                                                                       | Description                                                     |
| ------------------------------------------------------------------------------------------ | --------------------------------------------------------------- |
| [Asset.States](/engine/6000.5/script-reference/unityeditor/versioncontrol/asset/states.md) | Describes the various version control states an asset can have. |
