From 74bdcf074946f7ad76858f8c85b4741b49d7be93 Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Thu, 16 Feb 2023 19:08:24 -0600 Subject: [PATCH] Fix not serializing post FX script fields. --- Source/Engine/Graphics/PostProcessEffect.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/Engine/Graphics/PostProcessEffect.h b/Source/Engine/Graphics/PostProcessEffect.h index a8355ed8e..2e444c0ea 100644 --- a/Source/Engine/Graphics/PostProcessEffect.h +++ b/Source/Engine/Graphics/PostProcessEffect.h @@ -17,23 +17,24 @@ struct RenderContext; /// API_CLASS(Abstract) class FLAXENGINE_API PostProcessEffect : public Script { + API_AUTO_SERIALIZATION(); DECLARE_SCRIPTING_TYPE(PostProcessEffect); public: /// /// Effect rendering location within rendering pipeline. /// - API_FIELD() PostProcessEffectLocation Location = PostProcessEffectLocation::Default; + API_FIELD(Attributes="EditorDisplay(\"Post Process Effect\"), ExpandGroups") PostProcessEffectLocation Location = PostProcessEffectLocation::Default; /// /// True whether use a single render target as both input and output. Use this if your effect doesn't need to copy the input buffer to the output but can render directly to the single texture. Can be used to optimize game performance. /// - API_FIELD() bool UseSingleTarget = false; + API_FIELD(Attributes="EditorDisplay(\"Post Process Effect\")") bool UseSingleTarget = false; /// /// Effect rendering order. Post effects are sorted before rendering (from the lowest order to the highest order). /// - API_FIELD() int32 Order = 0; + API_FIELD(Attributes="EditorDisplay(\"Post Process Effect\")") int32 Order = 0; public: ///