コガネブログ

平日更新を目標に Unity や C#、Visual Studio、ReSharper などのゲーム開発アレコレを書いていきます

【Unity】Trello と連携できる「UniTrello」紹介

はじめに

「UniTrello」を Unity プロジェクトに導入することで
Trello と連携できるようになります

注意

  • UniTrello を使用するためには「LitJson」が必要です

使用例

サンプルコード

using System.Collections;
using UniTrello;
using UnityEngine;

public class Example : MonoBehaviour
{
    private Trello trello = new Trello( "【Trello のキー】", "【Trello のトークン】" );

    private IEnumerator Start()
    {
        yield return trello.populateBoards();

        trello.setCurrentBoard( "【ボードの名前】" );

        yield return trello.populateLists();

        trello.setCurrentList( "【リストの名前】" );

        var card = new TrelloCard
        {
            pos = "【位置】",
            name = "【カードの名前】",
            desc = "【カードの説明文】",
        };

        yield return trello.uploadCard( card );
    }
}

関連記事