1using System; 2 3namespace UnityEditor.ShaderGraph 4{ 5 static class GuidEncoder 6 { 7 public static string Encode(Guid guid) 8 { 9 string enc = Convert.ToBase64String(guid.ToByteArray()); 10 return String.Format("{0:X}", enc.GetHashCode()); 11 } 12 } 13}