# OnWillCreateAsset(string)

> Unity calls this method when it is about to create an Asset you haven't imported (for example,.meta files).

## Definition

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

## OnWillCreateAsset()

```csharp
public void OnWillCreateAsset(string arg0)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)):&#x20;

### Examples

```csharp

using UnityEngine;

public class CustomAssetModificationProcessor : UnityEditor.AssetModificationProcessor
{
    static void OnWillCreateAsset(string path)
    {
        Debug.Log("Asset is being created at: " + path);
    }
}
```
