2025-05-01 01:48:08 -07:00

29 lines
1.2 KiB
C#

using System;
using UnityEngine.Localization.Settings;
using UnityEngine.Localization.Tables;
namespace UnityEngine.Localization
{
/// <summary>
/// Provides a way to access an <see cref="AssetTable"/> at runtime.
/// </summary>
[Serializable]
public class LocalizedAssetTable : LocalizedTable<AssetTable, AssetTableEntry>
{
/// <inheritdoc/>
protected override LocalizedDatabase<AssetTable, AssetTableEntry> Database => LocalizationSettings.AssetDatabase;
/// <summary>
/// Initializes and returns an empty instance of a <see cref="LocalizedAssetTable"/>.
/// </summary>
public LocalizedAssetTable() {}
/// <summary>
/// Initializes and returns an instance of a <see cref="LocalizedAssetTable"/>.
/// </summary>
/// <param name="tableReference">Reference to the Asset Table Collection.
/// This can either be the name of the collection as a <see langword="string"/> or the Collection Guid as a [System.Guid](https://docs.microsoft.com/en-us/dotnet/api/system.guid).</param>
public LocalizedAssetTable(TableReference tableReference) => TableReference = tableReference;
}
}