Class DocumentationUtils
Set of utils for documentation
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public static class DocumentationUtils
Methods
GetHelpURL<TEnum>(TEnum)
Obtains the help url from an enum
Declaration
public static string GetHelpURL<TEnum>(TEnum mask = default) where TEnum : struct, IConvertible
Parameters
Type | Name | Description |
---|---|---|
TEnum | mask | [Optional] The current value of the enum |
Returns
Type | Description |
---|---|
string | The full url |
Type Parameters
Name | Description |
---|---|
TEnum | The enum with a HelpURLAttribute |
TryGetHelpURL(Type, out string)
Obtains the help URL from a type.
Declaration
public static bool TryGetHelpURL(Type type, out string url)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The type decorated with the HelpURL attribute. |
string | url | The full URL from the HelpURL attribute. If the attribute is not present, this value is null. |
Returns
Type | Description |
---|---|
bool | Returns true if the attribute is present, and false otherwise. |