Add content deprecation system that auto-saves assets in Editor that use old data format

This commit is contained in:
Wojtek Figat
2025-01-20 23:46:49 +01:00
parent 1497acef58
commit 8a7ceef288
67 changed files with 751 additions and 427 deletions

View File

@@ -156,17 +156,15 @@ public:
/// Loads the serialized timeline data.
/// </summary>
/// <returns>The output surface data, or empty if failed to load.</returns>
API_FUNCTION() BytesContainer LoadTimeline();
API_FUNCTION() BytesContainer LoadTimeline() const;
#if USE_EDITOR
/// <summary>
/// Saves the serialized timeline data to the asset.
/// </summary>
/// <param name="data">The timeline data container.</param>
/// <returns><c>true</c> failed to save data; otherwise, <c>false</c>.</returns>
API_FUNCTION() bool SaveTimeline(BytesContainer& data);
API_FUNCTION() bool SaveTimeline(const BytesContainer& data) const;
#endif
public:
@@ -243,6 +241,7 @@ public:
void InitAsVirtual() override;
#if USE_EDITOR
void GetReferences(Array<Guid>& assets, Array<String>& files) const override;
bool Save(const StringView& path = StringView::Empty) override;
#endif
protected: