docs.unity.cn
    Show / Hide Table of Contents

    Method DependsOn

    DependsOn<T>(T)

    This will take a dependency on Object of type T.

    Declaration
    public T DependsOn<T>(T dependency)
        where T : Object
    Parameters
    Type Name Description
    T dependency

    The Object to take a dependency on.

    Returns
    Type Description
    T

    The Object of type T if a dependency was taken, null otherwise.

    Type Parameters
    Name Description
    T

    The type of the object. Must be derived from UnityEngine.Object.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023