Documentation.cs 858 B

12345678910111213141516171819202122232425262728
  1. using System.Diagnostics;
  2. namespace UnityEngine.Rendering.Universal
  3. {
  4. [Conditional("UNITY_EDITOR")]
  5. internal class URPHelpURLAttribute : CoreRPHelpURLAttribute
  6. {
  7. public URPHelpURLAttribute(string pageName)
  8. : base(pageName, Documentation.packageName)
  9. {
  10. }
  11. }
  12. internal class Documentation : DocumentationInfo
  13. {
  14. /// <summary>
  15. /// The name of the package
  16. /// </summary>
  17. public const string packageName = "com.unity.render-pipelines.universal";
  18. /// <summary>
  19. /// Generates a help url for the given package and page name
  20. /// </summary>
  21. /// <param name="pageName">The page name</param>
  22. /// <returns>The full url page</returns>
  23. public static string GetPageLink(string pageName) => GetPageLink(packageName, pageName);
  24. }
  25. }