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