Method MapEditorTypeToRuntimeType
MapEditorTypeToRuntimeType(Type, bool)
Maps an editor-only asset type (e.g. SceneAsset, MonoScript) to its
corresponding runtime type (e.g. SceneInstance, MonoBehaviour).
Returns t unchanged if it is already a valid runtime type.
Declaration
public static Type MapEditorTypeToRuntimeType(Type t, bool allowFolders)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | t | The type to map. May be |
| bool | allowFolders | Whether |
Returns
| Type | Description |
|---|---|
| Type | The runtime type to use for catalog entries, or |