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

@@ -166,7 +166,7 @@ public:
/// </summary>
/// <param name="index">The chunk index.</param>
/// <returns>Flax Chunk object (may be null if asset storage doesn't allow to add new chunks).</returns>
FlaxChunk* GetOrCreateChunk(int32 index);
FlaxChunk* GetOrCreateChunk(int32 index) const;
/// <summary>
/// Determines whether the specified chunk exists.
@@ -238,14 +238,14 @@ public:
/// </summary>
/// <param name="chunkIndex">The chunk index to load.</param>
/// <returns>True if failed, otherwise false.</returns>
bool LoadChunk(int32 chunkIndex);
bool LoadChunk(int32 chunkIndex) const;
/// <summary>
/// Loads the chunks (synchronous, blocks current thread).
/// </summary>
/// <param name="chunks">The chunks to load (packed in a flag).</param>
/// <returns>True if failed, otherwise false.</returns>
bool LoadChunks(AssetChunksFlag chunks);
bool LoadChunks(AssetChunksFlag chunks) const;
#if USE_EDITOR
/// <summary>