Files
com.misaki.hdrp-toon/Runtime/UTSHelpURLAttribute.cs
Misaki a7a9ad16b5 Updated namespace;
Added UTSPass;
Chnaged the RTHanlde _HairShadowMap to not reallocate when screen resolution decreased;
2025-01-08 22:19:04 +09:00

38 lines
925 B
C#

using UnityEngine;
#if UNITY_EDITOR
#endif
namespace Misaki.HdrpToon
{
#if UNITY_2021_1_OR_NEWER
internal class UTSHelpURLAttribute : HelpURLAttribute
{
internal const string fallbackVersion = "0.7";
internal static string version
{
get
{
return fallbackVersion;
}
}
const string url = "https://docs.unity3d.com/Packages/{0}@{1}/manual/{2}.html";
internal UTSHelpURLAttribute(string pageName, string packageName = "com.unity.toonshader")
: base(GetPageLink(packageName, pageName))
{
}
internal static string GetPageLink(string packageName, string pageName) => string.Format(url, packageName, version, pageName);
}
#else
internal class UTSHelpURLAttribute : System.Attribute
{
internal UTSHelpURLAttribute(string name)
{
}
}
#endif
}