OnWillCreateAsset(string)
Unity calls this method when it is about to create an Asset you haven't imported (for example,.meta files).
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEditor
OnWillCreateAsset()
public void OnWillCreateAsset(string arg0)
Parameters
Examples
using UnityEngine;public class CustomAssetModificationProcessor : UnityEditor.AssetModificationProcessor{ static void OnWillCreateAsset(string assetName) { Debug.Log("OnWillCreateAsset is being called with the following asset: " + assetName + "."); }}