docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetEntryAssetType

    SetEntryAssetType(TableEntryReference, Type)

    The type of asset that is expected by this entry. By default this is determined by the first asset that is added in the Editor however this can be used to override it so it always expects this asset type instead of reverting back to Object when the last asset is removed.

    Declaration
    public void SetEntryAssetType(TableEntryReference tableEntry, Type assetType)
    Parameters
    Type Name Description
    TableEntryReference tableEntry

    The entry to set the asset type for.

    Type assetType

    The asset type to expect for this entry. To reset the override and allow the Editor to control the type pass null or typeof(Object).

    In This Article
    Back to top
    Copyright © 2024 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)