docs.unity3d.com
    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(UnityEngine.Component, UnityEngine.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(UnityEngine.Component target, UnityEngine.Component dependsOn)
    Parameters
    Type Name Description
    UnityEngine.Component target

    The Component that has a dependency.

    UnityEngine.Component dependsOn

    The Component that the target depends on.

    DeclareDependency(GameObject, UnityEngine.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, UnityEngine.Component dependsOn)
    Parameters
    Type Name Description
    GameObject target

    The GameObject that has a dependency.

    UnityEngine.Component dependsOn

    The Component that the target depends on.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023