WuhuIslandTesting/Library/PackageCache/com.unity.scriptablebuildpipeline@1.21.5/Editor/Interfaces/IAssetRepresentationData.cs
2025-01-07 02:06:59 +01:00

37 lines
1 KiB
C#

using System;
using System.Collections.Generic;
using UnityEditor.Build.Content;
namespace UnityEditor.Build.Pipeline.Interfaces
{
/// <summary>
/// The extended data about an asset.
/// </summary>
[Serializable]
public class ExtendedAssetData
{
/// <summary>
/// List of object identifiers that are classified as asset representations (sub assets).
/// </summary>
public List<ObjectIdentifier> Representations { get; set; }
/// <summary>
/// Default constructor, initializes properties to defaults
/// </summary>
public ExtendedAssetData()
{
Representations = new List<ObjectIdentifier>();
}
}
/// <summary>
/// Base interface for the storing extended data about an asset.
/// </summary>
public interface IBuildExtendedAssetData : IContextObject
{
/// <summary>
/// Map of asset to extended data about an asset.
/// </summary>
Dictionary<GUID, ExtendedAssetData> ExtendedData { get; }
}
}