using System; using System.Diagnostics; using System.Reflection; using UnityEngine; using UnityEngine.Rendering; namespace UnityEditor.VFX { /// /// Attribute to define the help url /// /// /// [VFXHelpURLAttribute("Context-Initialize")] /// class VFXBasicInitialize : VFXContext /// [Conditional("UNITY_EDITOR")] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Enum)] internal class VFXHelpURLAttribute : CoreRPHelpURLAttribute { public VFXHelpURLAttribute(string pageName, string pageHash = "") : base(pageName, pageHash, Documentation.packageName) { } } internal class Documentation : DocumentationInfo { /// /// The name of the package /// public const string packageName = "com.unity.visualeffectgraph"; /// /// Generates a Visual Effect Graph help url for the given page name /// /// The page name /// The full url. public static string GetPageLink(string pageName) => GetPageLink(packageName, pageName); /// /// Generates a default Visual Effect Graph help url /// /// The full url to the index page. public static string GetDefaultPackageLink() => GetDefaultPackageLink(packageName); } }