Singularity/Library/PackageCache/com.unity.shadergraph@12.1.11/Editor/Data/Nodes/GuidEncoder.cs

14 lines
292 B
C#
Raw Permalink Normal View History

2024-05-06 14:45:45 -04:00
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());
}
}
}