using System; using System.Collections; using System.Collections.Generic; using UnityEngine; namespace UnityEngine.AdaptivePerformance { /// /// This attribute is used to tag classes as providing build settings support for an Adaptive Performance provider. The unified setting system /// will present the settings as an inspectable object in the Project Settings window using the built-in inspector UI. /// /// The implementor of the settings is able to create their own custom UI and the Project Settings system will use that UI in /// place of the build-in one in the Inspector. See the Extending the Editor /// page in the Unity Manual for more information. /// [AttributeUsage(AttributeTargets.Class)] public sealed class AdaptivePerformanceConfigurationDataAttribute : Attribute { /// /// The display name that the user sees in the Project Settings window. /// public string displayName { get; set; } /// /// The key that will be used to store the singleton instance of these settings within EditorBuildSettings. /// For more information, see the EditorBuildSettings scripting /// API documentation. /// public string buildSettingsKey { get; set; } private AdaptivePerformanceConfigurationDataAttribute() {} /// Constructor for attribute /// The display name to use in the Project Settings window. /// The key to use to get or set build settings with. public AdaptivePerformanceConfigurationDataAttribute(string displayName, string buildSettingsKey) { this.displayName = displayName; this.buildSettingsKey = buildSettingsKey; } } }