docs.unity.cn
    Show / Hide Table of Contents

    Class DocumentationUtils

    Set of utils for documentation

    Inheritance
    Object
    DocumentationUtils
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 31 July 2023