MetaDataUtils Class

Summary

[Editor-Only] Various utilities for managing meta-data.
Assembly
Weaver.dll
Namespace
Weaver.Editor
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["MetaDataUtils"] class Type type-node

Syntax

public static class MetaDataUtils

Methods

Name Value Summary
GetMetaData<TAsset, TMeta>(TAsset, ConstructorInfo) TMeta
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).
static
GetMetaDataTypes(Type) List<Type>
Returns a list of all potential meta-data types of the specified `type`.
static
GetSingleParameterConstructor(Type, Type) ConstructorInfo
Returns a constructor of the specified `type` which takes a single `parameterType` parameter (or null).
static