public static string GetConfigDataPath(ConfigUtilityAttribute attr) { string streamingPath = Application.streamingAssetsPath; #if UNITY_EDITOR if (!Directory.Exists(streamingPath)) { Directory.CreateDirectory(streamingPath); } #endif System.Text.StringBuilder sb = new System.Text.StringBuilder(streamingPath.Length + attr.filename.Length + 7); sb.Append(streamingPath).Append('/').Append(attr.filename).Append(".json"); return(sb.ToString()); }
public TypeAndAttr(System.Type t, ConfigUtilityAttribute a) { this.type = t; this.attr = a; }