Firstborn/Library/PackageCache/com.unity.shadergraph@12.1.8/Editor/Data/Nodes/GuidEncoder.cs
Schaken-Mods b486678290 Library -Artifacts
Library -Artifacts
2023-03-28 12:24:16 -05: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());
}
}
}