mathe/Library/PackageCache/com.unity.shadergraph@14.0.8/Editor/Data/Nodes/GuidEncoder.cs
2024-09-20 20:30:10 +02:00

14 lines
292 B
C#

using System;
namespace UnityEditor.ShaderGraph
{
static class GuidEncoder
{
public static string Encode(Guid guid)
{
string enc = Convert.ToBase64String(guid.ToByteArray());
return String.Format("{0:X}", enc.GetHashCode());
}
}
}