docs.unity.cn
    Show / Hide Table of Contents

    Method DeclareDependency

    DeclareDependency(GameObject, GameObject)

    Declares that the conversion result of the target GameObject depends on another GameObject. Any changes to the dependency should trigger a reconversion of the dependent GameObject.

    Declaration
    public void DeclareDependency(GameObject target, GameObject dependsOn)
    Parameters
    Type Name Description
    GameObject target

    The GameObject that has a dependency.

    GameObject dependsOn

    The GameObject that the target depends on.

    DeclareDependency(Component, Component)

    Declares that the conversion result of the target Component depends on another component. Any changes to the dependency should trigger a reconversion of the dependent component.

    Declaration
    public void DeclareDependency(Component target, Component dependsOn)
    Parameters
    Type Name Description
    Component target

    The Component that has a dependency.

    Component dependsOn

    The Component that the target depends on.

    DeclareDependency(GameObject, Component)

    Declares that the conversion result of the target GameObject depends on another component. Any changes to the dependency should trigger a reconversion of the dependent component.

    Declaration
    public void DeclareDependency(GameObject target, Component dependsOn)
    Parameters
    Type Name Description
    GameObject target

    The GameObject that has a dependency.

    Component dependsOn

    The Component that the target depends on.

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