# assetPath

> The path name of the asset being imported.

## Definition

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

```csharp
public string assetPath { get; set; }
```

### Examples

```csharp
using UnityEngine;
using UnityEditor;

// Automatically sets Textures settings upon first import and prints the
// path from  where is being imported

class CustomImportSettings : AssetPostprocessor
{
    // Increment the version number, when the AssetPostprocessors code/behavior is changed
    static readonly uint k_Version = 0;
    public override uint GetVersion() { return k_Version; }

    void OnPreprocessTexture()
    {
        Debug.Log("Importing texture to: " + assetPath);
        TextureImporter importer  = (TextureImporter)assetImporter;
        importer.textureFormat = TextureImporterFormat.ARGB32;
        importer.isReadable = true;
        importer.mipmapEnabled = false;
    }
}
```
