Experimental: this API is experimental and might be changed or removed in the future.

AssetImporterEditor.needsApplyRevert

切换到手册
protected bool needsApplyRevert ;

描述

是否需要在检视面板中绘制 ApplyRevertGUI 方法。

大多数导入器会公开由用户更改的设置,并且要求按下 Apply/Revert 按钮才能更新设置更改。 某些导入器(如 MonoScriptImporter)不会公开设置并且不要求使用 ApplyRevertGUI 方法更新更改。 在不需要 ApplyRevertGUI 的情况下,可以覆盖 needApplyRevert 以返回 false。这可避免导入器检视面板在关闭时对资源进行不必要的检查。