Class DocumentationUtils
Set of utils for documentation
Inherited Members
Namespace: UnityEngine.Rendering
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(TEnum))
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 |
|---|---|
| Boolean | Returns true if the attribute is present, and false otherwise. |