docs.unity3d.com
Search Results for

    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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)