using System; namespace UnityEngine.XR.ARFoundation { /// /// Helper for compile-time constant strings for the [HelpURL](xref:UnityEngine.HelpURLAttribute) attribute. /// /// When a relevant manual page exists, that is normally the best link to use. class HelpURLAttribute : UnityEngine.HelpURLAttribute { const string k_Version = "6.1"; const string k_BaseURL = "https://docs.unity3d.com/Packages/com.unity.xr.arfoundation"; /// /// Links to the Script Reference page for the specified type. /// /// The name of the type. public HelpURLAttribute(Type type) : base($"{k_BaseURL}@{k_Version}/api/{type.FullName}.html") { } /// /// Links to a manual page. /// /// The file name of the page without extension. Include folders relative to the package `Documentation~ /// folder, separated with a forward slash (/). public HelpURLAttribute(string manualPage) : base($"{k_BaseURL}@{k_Version}/manual/{manualPage}.html") { } /// /// Links to a manual page with anchor. /// /// The file name of the page without extension. Include folders relative to the package `Documentation~ /// folder, separated with a forward slash (/). /// An anchor on the page (without the # symbol). public HelpURLAttribute(string manualPage, string anchor) : base($"{k_BaseURL}@{k_Version}/manual/{manualPage}.html#{anchor}") { } } }