Add serialization of game settings for proper upgrade when loading deprecated data
This commit is contained in:
@@ -60,11 +60,6 @@ void StreamingSettings::Apply()
|
||||
TextureGroupSamplers.Resize(TextureGroups.Count(), false);
|
||||
}
|
||||
|
||||
void StreamingSettings::Deserialize(DeserializeStream& stream, ISerializeModifier* modifier)
|
||||
{
|
||||
DESERIALIZE(TextureGroups);
|
||||
}
|
||||
|
||||
StreamableResource::StreamableResource(StreamingGroup* group)
|
||||
: _group(group)
|
||||
, _isDynamic(true)
|
||||
|
||||
@@ -10,9 +10,10 @@
|
||||
/// </summary>
|
||||
API_CLASS(sealed, Namespace="FlaxEditor.Content.Settings", NoConstructor) class FLAXENGINE_API StreamingSettings : public SettingsBase
|
||||
{
|
||||
DECLARE_SCRIPTING_TYPE_MINIMAL(StreamingSettings);
|
||||
public:
|
||||
DECLARE_SCRIPTING_TYPE_MINIMAL(StreamingSettings);
|
||||
API_AUTO_SERIALIZATION();
|
||||
|
||||
public:
|
||||
/// <summary>
|
||||
/// Textures streaming configuration (per-group).
|
||||
/// </summary>
|
||||
@@ -20,7 +21,6 @@ public:
|
||||
Array<TextureGroup, InlinedAllocation<32>> TextureGroups;
|
||||
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Gets the instance of the settings asset (default value if missing). Object returned by this method is always loaded with valid data to use.
|
||||
/// </summary>
|
||||
@@ -28,5 +28,4 @@ public:
|
||||
|
||||
// [SettingsBase]
|
||||
void Apply() override;
|
||||
void Deserialize(DeserializeStream& stream, ISerializeModifier* modifier) final override;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user