Fix deprecation warnings

This commit is contained in:
Wojtek Figat
2026-03-07 23:17:42 +01:00
parent e7071fbe43
commit 3dc3e25649
2 changed files with 26 additions and 2 deletions

View File

@@ -1844,7 +1844,7 @@ API_STRUCT() struct FLAXENGINE_API ScreenSpaceReflectionsSettings : ISerializabl
/// The intensity of the temporal effect. Lower values produce reflections faster, but more noise.
/// </summary>
API_FIELD(Attributes="Limit(0, 20.0f, 0.5f), EditorOrder(55), PostProcessSetting((int)ScreenSpaceReflectionsSettingsOverride.TemporalScale)")
DEPRECATED("TemporalScale of SSR is unsued now.") float TemporalScale = 8.0f;
DEPRECATED("TemporalScale of SSR is unsued now.") float TemporalScale;
/// <summary>
/// Defines how quickly reflections blend between the reflection in the current frame and the history buffer. Lower values produce reflections faster, but with more jittering. If the camera in your game doesn't move much, we recommend values closer to 1.
@@ -1852,6 +1852,18 @@ API_STRUCT() struct FLAXENGINE_API ScreenSpaceReflectionsSettings : ISerializabl
API_FIELD(Attributes="Limit(0.05f, 1.0f, 0.01f), EditorOrder(60), PostProcessSetting((int)ScreenSpaceReflectionsSettingsOverride.TemporalResponse)")
float TemporalResponse = 0.8f;
public:
// Ignore deprecation warnings in defaults
PRAGMA_DISABLE_DEPRECATION_WARNINGS
ScreenSpaceReflectionsSettings()
{
TemporalScale = 8.0f;
}
ScreenSpaceReflectionsSettings(const ScreenSpaceReflectionsSettings& other) = default;
ScreenSpaceReflectionsSettings(ScreenSpaceReflectionsSettings&& other) = default;
ScreenSpaceReflectionsSettings& operator=(const ScreenSpaceReflectionsSettings& other) = default;
PRAGMA_ENABLE_DEPRECATION_WARNINGS
public:
/// <summary>
/// Blends the settings using given weight.

View File

@@ -148,7 +148,7 @@ DECLARE_SCRIPTING_TYPE_MINIMAL(CreateWindowSettings);
/// True if it's a regular window, false for tooltips, context menu and other utility windows.
/// [Deprecated in v1.12]
/// </summary>
API_FIELD() DEPRECATED("Use Type instead") bool IsRegularWindow = true;
API_FIELD() DEPRECATED("Use Type instead") bool IsRegularWindow;
/// <summary>
/// The type of window. The type affects the behaviour of the window in system level.
@@ -170,4 +170,16 @@ DECLARE_SCRIPTING_TYPE_MINIMAL(CreateWindowSettings);
/// The custom data (platform dependant).
/// </summary>
API_FIELD() void* Data = nullptr;
public:
// Ignore deprecation warnings in defaults
PRAGMA_DISABLE_DEPRECATION_WARNINGS
CreateWindowSettings()
{
IsRegularWindow = true;
}
CreateWindowSettings(const CreateWindowSettings& other) = default;
CreateWindowSettings(CreateWindowSettings&& other) = default;
CreateWindowSettings& operator=(const CreateWindowSettings& other) = default;
PRAGMA_ENABLE_DEPRECATION_WARNINGS
};