No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AdaptivePerformanceConfigurationData.cs 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. namespace UnityEngine.AdaptivePerformance
  6. {
  7. /// <summary>
  8. /// This attribute is used to tag classes as providing build settings support for an Adaptive Performance provider. The unified setting system
  9. /// will present the settings as an inspectable object in the Project Settings window using the built-in inspector UI.
  10. ///
  11. /// The implementor of the settings is able to create their own custom UI and the Project Settings system will use that UI in
  12. /// place of the build-in one in the Inspector. See the <see href="https://docs.unity3d.com/Manual/ExtendingTheEditor.html">Extending the Editor</see>
  13. /// page in the Unity Manual for more information.
  14. /// </summary>
  15. [AttributeUsage(AttributeTargets.Class)]
  16. public sealed class AdaptivePerformanceConfigurationDataAttribute : Attribute
  17. {
  18. /// <summary>
  19. /// The display name that the user sees in the Project Settings window.
  20. /// </summary>
  21. public string displayName { get; set; }
  22. /// <summary>
  23. /// The key that will be used to store the singleton instance of these settings within EditorBuildSettings.
  24. /// For more information, see the <see href="https://docs.unity3d.com/ScriptReference/EditorBuildSettings.html">EditorBuildSettings</see> scripting
  25. /// API documentation.
  26. /// </summary>
  27. public string buildSettingsKey { get; set; }
  28. private AdaptivePerformanceConfigurationDataAttribute() {}
  29. /// <summary>Constructor for attribute</summary>
  30. /// <param name="displayName">The display name to use in the Project Settings window.</param>
  31. /// <param name="buildSettingsKey">The key to use to get or set build settings with.</param>
  32. public AdaptivePerformanceConfigurationDataAttribute(string displayName, string buildSettingsKey)
  33. {
  34. this.displayName = displayName;
  35. this.buildSettingsKey = buildSettingsKey;
  36. }
  37. }
  38. }