Firstborn/Library/PackageCache/com.unity.scriptablebuildpi.../Editor/Interfaces/IAssetRepresentationData.cs
Schaken-Mods 7502018d20 Adding Mod Support
There is an asset in the store I grabbed. the coding is WAY above my head, I got about half of it and integrated and adapted what I can to it. im going as far as I can with it and ill come back in a few month when I understand t better.
2023-05-13 22:01:48 -05:00

38 lines
1.0 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; }
}
}