// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved.
using System.Collections.Generic;
using System.Linq;
using FlaxEngine;
namespace FlaxEditor.CustomEditors
{
///
/// Synchronizes objects modifications and records undo operations.
/// Allows to override undo action target objects for the part of the custom editors hierarchy.
///
///
[HideInEditor]
public class SyncPointEditor : CustomEditor
{
private object[] _snapshotUndoInternal;
///
/// The 'is dirty' flag.
///
protected bool _isDirty;
///
/// The cached token used by the value setter to support batching Undo actions (eg. for sliders or color pickers).
///
protected object _setValueToken;
///
/// Gets the undo objects used to record undo operation changes.
///
public virtual IEnumerable