docs.unity.cn
    Show / Hide Table of Contents

    Method TryGetDisplayContent

    TryGetDisplayContent<T>(out T)

    Tries to get the target of the content as an instance of type .

    Declaration
    public readonly bool TryGetDisplayContent<T>(out T content)
    Parameters
    Type Name Description
    T content

    The content, if it succeeds; langword_csharp_default otherwise.

    Returns
    Type Description
    Boolean

    true if content was of the correct type; false otherwise.

    Type Parameters
    Name Description
    T

    The type of the content.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, July 6, 2022
    Terms of use