public static void OnSelectionChange() { IToolModeOwner toolModeOwner = InternalEditorUtility.GetObjectFromInstanceID(EditMode.ownerID) as IToolModeOwner; if (toolModeOwner == null || !toolModeOwner.ModeSurvivesSelectionChange((int)EditMode.s_EditMode)) { EditMode.QuitEditMode(); } }
public static void OnSelectionChange() { EditMode.QuitEditMode(); }