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

AssetImporterEditor.ApplyButton

切换到手册
protected bool ApplyButton ();
protected bool ApplyButton (string buttonText);

参数

buttonText 要在按钮上显示的文本。

返回

bool 如果新设置应用成功,则返回 true。

描述

实现 Inspector 的“Apply”按钮。

“Apply”按钮可保存对您的自定义导入器中的值的任何更改,并使用这些新设置重新导入资源。您可以更改按钮上显示的文本,但不能更改按钮的功能。