using System;
using System.Diagnostics;
using UnityEngine.Rendering;
namespace UnityEngine.Rendering.Universal
{
///
/// Attribute to define the help URL for Universal Render Pipeline classes.
///
///
/// The page name is treated as a path relative to the Unity Manual root
/// (https://docs.unity3d.com/<version>/Documentation/Manual/). Most URP
/// pages live under the urp/ subfolder, so callers typically pass a path of
/// the form "urp/<page>", but pages elsewhere in the Manual (for
/// example shared content) can also be linked. The URL is built by
/// in the core package.
///
///
///
/// [URPHelpURL("urp/Volumes")]
/// public class VolumeProfile : ScriptableObject { /* ... */ }
///
///
[Conditional("UNITY_EDITOR")]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Enum, AllowMultiple = false)]
internal class URPHelpURLAttribute : HelpURLAttribute
{
///
/// Creates a help URL attribute for a page in the Unity Manual.
///
/// The page path relative to the Manual root, without the .html extension (for example "urp/Volumes").
/// Optional section anchor on the page, with or without the leading #.
public URPHelpURLAttribute(string pageName, string pageHash = "")
: base(DocumentationInfo.GetManualLink(pageName, pageHash))
{
}
}
}