using System;
using UnityEngine.Localization.Tables;
namespace UnityEngine.Localization.Metadata
{
///
/// Used when an is marked as [preload](../manual/AssetTables.html#preloading) to indicate if the assets within should all be preloaded when the table is loaded or should be loaded on demand.
/// If no is attached to a then the default behavior is .
///
[Metadata(AllowedTypes = MetadataType.AssetTable | MetadataType.SharedTableData, MenuItem = "Preload Assets")]
[Serializable]
public class PreloadAssetTableMetadata : IMetadata
{
///
/// The preload behavior to be applied to the .
///
public enum PreloadBehaviour
{
///
/// Override that will stop any preloading on this table including entries that have metadata.
///
NoPreload,
///
/// Preload all assets in the table.
///
PreloadAll,
}
[SerializeField]
PreloadBehaviour m_PreloadBehaviour;
///
///
///
public PreloadBehaviour Behaviour
{
get => m_PreloadBehaviour;
set => m_PreloadBehaviour = value;
}
}
}