public UIComponentInfo(Transform prefabRoot, string memberName, string path, string type) { this.comType = type; this.memberName = memberName; this.path = path; uid = MD5Hashing.HashString(string.Format("{0}:{1}|{2}", prefabRoot.name, this.memberName, this.path)); }
public UIComponentInfo(GameObject go, Transform prefabRoot) { this.comType = "GameObject"; this.memberName = go.name; this.path = GameObjectExt.GetHierarchyWithRoot(go.transform, prefabRoot); uid = MD5Hashing.HashString(string.Format("{0}:{1}|{2}", prefabRoot.name, this.memberName, this.path)); }
public UIComponentInfo(Component component, Transform prefabRoot) { // this.com = component; this.comType = component.GetType().Name; this.memberName = string.Format("{0}_{1}", component.name, comType); this.path = GameObjectExt.GetHierarchyWithRoot(component.transform, prefabRoot); uid = MD5Hashing.HashString(string.Format("{0}:{1}|{2}", prefabRoot.name, this.memberName, this.path)); }
public static string GetRawConfigHash() { var files = Directory.GetFiles(RawDataDir, "*.xlsx"); string content = ""; foreach (var file in files) { if (file.Contains("~$")) { continue; } var modifyDate = File.GetLastWriteTime(file); content += modifyDate; //Debug.LogFormat("{0} {1}", file, modifyDate); } return(MD5Hashing.HashString(content)); }