public static string GetPrefabBuilderGUIName(IPrefabBuilder builder) { CustomPrefabBuilder attr = builder.GetType().GetCustomAttributes(typeof(CustomPrefabBuilder), false).FirstOrDefault() as CustomPrefabBuilder; return(attr.Name); }