/// <summary> /// Creates a new instance of <see cref="InspectorElement"/> with the provided target value. /// </summary> /// <param name="value">The target.</param> /// <typeparam name="TValue">The target type.</typeparam> /// <returns>The new instance.</returns> public static InspectorElement MakeWithValue <TValue>(TValue value) { var element = new InspectorElement(); element.SetTarget(value); return(element); }
void OnUndoRedo() { Target.Load(); m_RootElement?.SetTarget(target); }