ProceduralAsset.

GrabDependancy<T>(Delegate) Method

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>(Delegate dependancy)

Type Parameters

Name Description
T

Parameters

Name Type Description
dependancy Delegate

Return Value

Type Description
T