docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ContentDirectoryGroupSchema

    Schema for configuring groups to be built as Content Directories. Content Directories provide an alternative to AssetBundles for organizing and loading addressable content.

    Inheritance
    object
    Object
    ScriptableObject
    AddressableAssetGroupSchema
    ContentDirectoryGroupSchema
    Implements
    ISerializationCallbackReceiver
    Inherited Members
    AddressableAssetGroupSchema.m_SchemaIsEnabled
    AddressableAssetGroupSchema.Group
    AddressableAssetGroupSchema.OnSetGroup(AddressableAssetGroup)
    AddressableAssetGroupSchema.SetDirty(bool)
    AddressableAssetGroupSchema.ShowAllProperties()
    AddressableAssetGroupSchema.ShowMixedValue(SerializedProperty, List<AddressableAssetGroupSchema>, Type, string)
    AddressableAssetGroupSchema.Compare(AddressableAssetGroupSchema, AddressableAssetGroupSchema)
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.InstantiateAsync<T>(T)
    Object.InstantiateAsync<T>(T, Transform)
    Object.InstantiateAsync<T>(T, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int)
    Object.InstantiateAsync<T>(T, int, Transform)
    Object.InstantiateAsync<T>(T, int, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>)
    Object.InstantiateAsync<T>(T, int, Transform, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int, Transform, Vector3, Quaternion, CancellationToken)
    Object.InstantiateAsync<T>(T, int, Transform, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>)
    Object.InstantiateAsync<T>(T, int, Transform, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>, CancellationToken)
    Object.InstantiateAsync<T>(T, InstantiateParameters, CancellationToken)
    Object.InstantiateAsync<T>(T, int, InstantiateParameters, CancellationToken)
    Object.InstantiateAsync<T>(T, Vector3, Quaternion, InstantiateParameters, CancellationToken)
    Object.InstantiateAsync<T>(T, int, Vector3, Quaternion, InstantiateParameters, CancellationToken)
    Object.InstantiateAsync<T>(T, int, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>, InstantiateParameters, CancellationToken)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Scene)
    Object.Instantiate<T>(T, InstantiateParameters)
    Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, bool)
    Object.FindObjectsByType(Type, FindObjectsSortMode)
    Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsByType<T>(FindObjectsSortMode)
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindFirstObjectByType<T>()
    Object.FindAnyObjectByType<T>()
    Object.FindFirstObjectByType<T>(FindObjectsInactive)
    Object.FindAnyObjectByType<T>(FindObjectsInactive)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindFirstObjectByType(Type)
    Object.FindAnyObjectByType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.FindFirstObjectByType(Type, FindObjectsInactive)
    Object.FindAnyObjectByType(Type, FindObjectsInactive)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: UnityEditor.AddressableAssets.Settings.GroupSchemas
    Assembly: Unity.Addressables.Editor.dll
    Syntax
    [AddressablesHelpURL("GroupSchemas.html")]
    public class ContentDirectoryGroupSchema : AddressableAssetGroupSchema, ISerializationCallbackReceiver

    Properties

    Name Description
    BuildPath

    The path to copy the built content directory to.

    CatalogId

    Gets or sets the catalog identifier for this content directory group. Groups with the same CatalogId will be built into the same catalog.

    GroupAssetEntryProviderType

    The provider type to use for loading entries from group root assets.

    IncludeAddressesForFolderChildren

    Gets or sets whether assets inside an addressable folder keep their own individual address in the catalog, in addition to the folder's shared key (see IncludeFolderKeysInCatalog). GUIDs are unaffected. Only takes effect when IncludeFolderKeysInCatalog is enabled. Disable to reduce catalog size when assets are always loaded via the folder key.

    IncludeFolderKeysInCatalog

    Gets or sets whether each addressable folder's own address is included as an extra shared key on every asset within that folder. This allows loading every asset in an addressable folder with a single call, for example Addressables.LoadAssetsAsync(folderAddress, ...), similar to Resources.LoadAll.

    IncludeInBuild

    If true, the group's content will be included in the Addressables build.

    IncludeLabelsInCatalog

    Gets or sets whether labels are included in the content catalog for this content directory group. This is required if labels are used at runtime to load assets.

    IsEnabled

    Determines whether a given schema will be included in a Schema Driven build. This is particularly useful if you want to alternate between building AssetBundles and ContentDirectories. Only one buildable schema can be enabled on a group at a time. If you attempt to enable multiple at once, an error will be thrown.

    LoadPath

    The path to load the content directory from at runtime.

    SelectedPathPairIndex

    The selected path pair in use. Use this with care, as it could change when path pairs are added ore removed. It is generally more valid to lookup the path pair by Id for the current profile.

    Methods

    Name Description
    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.

    OnAfterDeserialize()

    Implementation of ISerializationCallbackReceiver. Used to set callbacks for ProfileValueReference changes and default provider types.

    OnBeforeSerialize()

    Implementation of ISerializationCallbackReceiver. Does nothing.

    OnGUI()

    Used to display the GUI of the schema.

    OnGUIMultiple(List<AddressableAssetGroupSchema>)

    Used to display the GUI of multiple selected groups.

    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)