Summary
Marks the currently generating asset as requiring the specified `dependancy` so that whenever either is
generated, the dependancy is generated first. Then returns the target asset of that `dependancy`.
This method can only be called while an asset is being generated. Otherwise it throws an
System.InvalidOperationException
.
- Assembly
- Weaver
.dll - Namespace
- Weaver
.Editor .Procedural - Containing Type
- ProceduralAsset
Syntax
public static T GrabDependancy<T>(MethodInfo dependancy)
Type Parameters
Name | Description |
---|---|
T |
Parameters
Name | Type | Description |
---|---|---|
dependancy | MethodInfo |
Return Value
Type | Description |
---|---|
T |