文档

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.