
I updated everything to the latest Unity Editor. Also realized I had the wrong shaders on my hairs, those are fixed and the hairs look MUCH better!
23 lines
870 B
C#
23 lines
870 B
C#
using System.Runtime.CompilerServices;
|
|
|
|
[assembly: InternalsVisibleTo("Unity.ShaderGraph.Editor.Tests")]
|
|
|
|
namespace UnityEngine.Rendering.ShaderGraph
|
|
{
|
|
//Need to live in Runtime as Attribute of documentation is on Runtime classes \o/
|
|
class Documentation : DocumentationInfo
|
|
{
|
|
//This must be used like
|
|
//[HelpURL(Documentation.baseURL + Documentation.version + Documentation.subURL + "some-page" + Documentation.endURL)]
|
|
//It cannot support String.Format nor string interpolation
|
|
internal const string baseURL = "https://docs.unity3d.com/Packages/com.unity.shadergraph@";
|
|
internal const string subURL = "/manual/";
|
|
internal const string endURL = ".html";
|
|
|
|
internal static string GetPageLink(string pageName)
|
|
{
|
|
return baseURL + version + subURL + pageName + endURL;
|
|
}
|
|
}
|
|
}
|