Пример #1
0
    /// <summary>
    /// asmdefファイルにJson文字列を書き込む
    /// </summary>
    /// <param name="asmName"></param>
    /// <returns></returns>
    static void WriteAsmdefStr(StreamWriter sw, string asmName)
    {
        var str = new AsmdefJson();

        str.name = asmName;
        sw.Write(str.ToString());
        sw.Flush();
        sw.Close();
        count++;
    }
Пример #2
0
    /// <summary>
    /// asmdefファイルにJson文字列を書き込む
    /// </summary>
    /// <param name="asmName"></param>
    /// <param name="rootAsmdefGuid"></param>
    /// <returns></returns>
    static void WriteAsmdefStr(StreamWriter sw, string asmName, string rootAsmdefGuid)
    {
        var json = new AsmdefJson();

        json.name = asmName;
        json.references.Add($"GUID:{rootAsmdefGuid}");
        json.includePlatforms.Add("Editor");
        sw.Write(json.ToString());
        sw.Flush();
        sw.Close();
        count++;
    }