Firstborn/Library/PackageCache/com.unity.scriptablebuildpi.../Editor/Interfaces/IDeterministicIdentifiers.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

25 lines
999 B
C#

using UnityEditor.Build.Content;
namespace UnityEditor.Build.Pipeline.Interfaces
{
/// <summary>
/// Base interface for the generating deterministic identifiers for different parts of the build pipeline.
/// </summary>
public interface IDeterministicIdentifiers : IContextObject
{
/// <summary>
/// Generates a deterministic internal file name from the passed in name.
/// </summary>
/// <param name="name">Name identifier for internal file name generation</param>
/// <returns>Deterministic file name.</returns>
string GenerateInternalFileName(string name);
/// <summary>
/// Generates a deterministic id for a given object in the build.
/// </summary>
/// <param name="objectID">Object identifier to for id generation.</param>
/// <returns><c>long</c> representing the id of the objectID.</returns>
long SerializationIndexFromObjectIdentifier(ObjectIdentifier objectID);
}
}