docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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 null (returns null).

    bool allowFolders

    Whether DefaultAsset (folder) entries are permitted.

    Returns
    Type Description
    Type

    The runtime type to use for catalog entries, or null if the type cannot be mapped.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)