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. |