暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Documentation.cs 870B

12345678910111213141516171819202122
  1. using System.Runtime.CompilerServices;
  2. [assembly: InternalsVisibleTo("Unity.ShaderGraph.Editor.Tests")]
  3. namespace UnityEngine.Rendering.ShaderGraph
  4. {
  5. //Need to live in Runtime as Attribute of documentation is on Runtime classes \o/
  6. class Documentation : DocumentationInfo
  7. {
  8. //This must be used like
  9. //[HelpURL(Documentation.baseURL + Documentation.version + Documentation.subURL + "some-page" + Documentation.endURL)]
  10. //It cannot support String.Format nor string interpolation
  11. internal const string baseURL = "https://docs.unity3d.com/Packages/com.unity.shadergraph@";
  12. internal const string subURL = "/manual/";
  13. internal const string endURL = ".html";
  14. internal static string GetPageLink(string pageName)
  15. {
  16. return baseURL + version + subURL + pageName + endURL;
  17. }
  18. }
  19. }