Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


OnFinish(EditorActionResult)

Callback raised when the EditorAction is finished.
Read time 1 minuteLast updated 12 days ago

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.