docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CanEnableSchema

    CanEnableSchema()

    Determines whether the ContentDirectorySchema can be enabled or not. A ContentDirectorySchema can be enabled if there are no other buildable schemas (such as a Content Packing & Loading Schema) enabled. Used e.g. when adding a schema via Add Schema so the new schema is defaulted to disabled when the other is already enabled. The user can still manually enable both in the inspector; the group inspector then shows an error.

    Declaration
    public override string CanEnableSchema()
    Returns
    Type Description
    string

    Returns an empty string if enabling is valid, or an error/warning string if another buildable schema is already enabled.

    Overrides
    AddressableAssetGroupSchema.CanEnableSchema()
    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)