# OnEnable()

> Unity calls this function when an asset is about to be created, allowing user to setup any actions that needs to be called during the asset creation process from the Project Browser.

## Definition

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

```csharp
public virtual void OnEnable()
```
