MetaDataUtils.

GetMetaData<TAsset, TMeta>(TAsset, ConstructorInfo) Method

Summary

Gets the meta-data of the specified `asset`, either by passing it as a parameter into the specified `metaConstructor` or by accessing its Weaver.IMetaDataProvider`1.MetaData (if it can be cast).
Assembly
Weaver.dll
Namespace
Weaver.Editor
Containing Type
MetaDataUtils

Syntax

public static TMeta GetMetaData<TAsset, TMeta>(TAsset asset, ConstructorInfo metaConstructor)

Type Parameters

Name Description
TAsset
TMeta

Parameters

Name Type Description
asset TAsset
metaConstructor ConstructorInfo

Return Value

Type Description
TMeta