EditorAction.OnFinish

Declaration

protected void OnFinish(Actions.EditorActionResult result);

Parameters

result The state that the EditorAction was finished in.

Description

Callback raised when the EditorAction is finished.

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.


Did you find this page useful? Please give it a rating: