OnFinish(EditorActionResult)
Callback raised when the EditorAction is finished.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Actions
- Assembly: UnityEditor.CoreModule
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.