文档

Unity Engine


User Manual

Script Reference

Unity Engine


OnFinish(EditorActionResult)

Callback raised when the EditorAction is finished.
阅读时间1 分钟最后更新于 1 个月前

Definition

protected virtual void OnFinish(EditorActionResult result)

Parameters

The state that the EditorAction was finished in.

Remarks

This function is responsible for finalizing and cleaning up any state created by the EditorAction.
When the EditorActionResult is cancelled, remove any created artifacts from the scene. When the result is EditorActionResult.Success, clean up any temporary resources and commit the finalized objects to the scene.