ドキュメント

Unity Engine

Unity Engine

AssetModificationProcessor

AssetModificationProcessor lets you hook into saving of serialized assets and scenes which are edited inside Unity.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Class
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public class AssetModificationProcessor

Remarks

This lets you prevent writing of assets by Unity for integration with VCS solutions like Perforce which require locking of files.
This can be used as a callback to know when Assets are saved. You can then make actions such as run code generator.