// Copyright (c) 2012-2022 Wojciech Figat. All rights reserved. namespace FlaxEditor.Content.Settings { /// /// The base class for all the settings assets. /// public abstract class SettingsBase { } partial class GraphicsSettings { /// /// Initializes a new instance of the . /// public GraphicsSettings() { // Initialize PostFx settings with default options (C# structs doesn't support it) PostProcessSettings = FlaxEngine.PostProcessSettings.Default; } } } namespace FlaxEngine { partial struct PostProcessSettings { private static PostProcessSettings _default; /// /// The default . /// public static PostProcessSettings Default { get { if (!_default.AmbientOcclusion.Enabled) { object obj = _default; Utils.InitStructure(obj, typeof(PostProcessSettings)); _default = (PostProcessSettings)obj; } return _default; } } } }