Add serialization of game settings for proper upgrade when loading deprecated data

This commit is contained in:
Wojtek Figat
2025-01-20 23:47:51 +01:00
parent 8a7ceef288
commit d4a5c76c82
12 changed files with 113 additions and 19 deletions

View File

@@ -143,7 +143,7 @@ public:
float TriangleMeshTriangleMinAreaThreshold = 5.0f;
/// <summary>
/// If enabled, any Raycast or other scene query that intersects with a Collider marked as a Trigger will returns with a hit. Individual raycasts can override this behavior.
/// If enabled, any Raycast or other scene query that intersects with a Collider marked as a Trigger will return with a hit. Individual raycasts can override this behavior.
/// </summary>
API_FIELD(Attributes="EditorOrder(1200), EditorDisplay(\"Other\")")
bool QueriesHitTriggers = true;
@@ -166,5 +166,8 @@ public:
// [SettingsBase]
void Apply() override;
#if USE_EDITOR
void Serialize(SerializeStream& stream, const void* otherObj) override;
#endif
void Deserialize(DeserializeStream& stream, ISerializeModifier* modifier) final override;
};