文档

Unity Engine

Unity Engine

OnWillCreateAsset(string)

Unity calls this method when it is about to create an Asset you haven't imported (for example,.meta files).
阅读时间1 分钟最后更新于 1 个月前

Definition

OnWillCreateAsset()

public void OnWillCreateAsset(string arg0)

Parameters

arg0

Examples

using UnityEngine;public class CustomAssetModificationProcessor : UnityEditor.AssetModificationProcessor{ static void OnWillCreateAsset(string assetName) { Debug.Log("OnWillCreateAsset is being called with the following asset: " + assetName + "."); }}