{"id":13662583,"url":"https://github.com/kyubuns/Baum2","last_synced_at":"2025-04-25T10:32:31.443Z","repository":{"id":39184058,"uuid":"88358748","full_name":"kyubuns/Baum2","owner":"kyubuns","description":"Psd to Unity UI(uGUI)","archived":false,"fork":false,"pushed_at":"2022-11-01T03:58:40.000Z","size":21174,"stargazers_count":314,"open_issues_count":7,"forks_count":72,"subscribers_count":20,"default_branch":"master","last_synced_at":"2024-08-03T05:14:19.582Z","etag":null,"topics":["unity"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kyubuns.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["kyubuns"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2017-04-15T16:15:45.000Z","updated_at":"2024-07-12T18:44:00.000Z","dependencies_parsed_at":"2023-01-20T19:18:14.773Z","dependency_job_id":null,"html_url":"https://github.com/kyubuns/Baum2","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyubuns%2FBaum2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyubuns%2FBaum2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyubuns%2FBaum2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyubuns%2FBaum2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kyubuns","download_url":"https://codeload.github.com/kyubuns/Baum2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223996805,"owners_count":17238375,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["unity"],"created_at":"2024-08-02T05:02:02.685Z","updated_at":"2025-04-25T10:32:31.431Z","avatar_url":"https://github.com/kyubuns.png","language":"C#","funding_links":["https://github.com/sponsors/kyubuns"],"categories":["C\\#","Open Source Repositories","C#"],"sub_categories":["Art Tools"],"readme":"baum2\n=====\n\nPhotoshop(psd) to Unity(uGUI) Library!\n\nThere are no plans to update this library with additional features in the future.\nI am currently developing [AkyuiUnity(AdobeXD to Unity)](https://github.com/kyubuns/AkyuiUnity).\n\n- Photoshop\n\u003cimg src=\"https://user-images.githubusercontent.com/961165/50334464-b9d5e680-054b-11e9-90ce-bfe14518d079.png\" width=\"480\"\u003e\n\n- Unity\n\u003cimg src=\"https://user-images.githubusercontent.com/961165/50334465-bb071380-054b-11e9-8c13-e7ce1fbd8a29.png\" width=\"480\"\u003e\n\n## Setup ([Video](https://youtu.be/ugfyO0wRics))\n\n### Photoshop\n\n* Download [Baum.js](https://github.com/kyubuns/Baum2/releases)\n* Copy to Photoshop/Plugins directory Baum.js\n    - Mac OS: Applications\\Adobe Photoshop [Photoshop_version]\\Presets\\Scripts\n    - Windows 32 bit: Program Files (x86)\\Adobe\\Adobe Photoshop [Photoshop_version]\\Presets\\Scripts\n    - Windows 64 bit: Program Files\\Adobe\\Adobe Photoshop [Photoshop_version](64 Bit)\\Presets\\Scripts\n\n### Unity\n\n* Download \u0026 Import [baum2.unitypackage](https://github.com/kyubuns/Baum2/blob/master/Baum2.unitypackage?raw=true)\n* psd上で使用するFontは、BaumFontsファイルが置いてあるディレクトリに置いておいてください。\n* (Please import the font used on psd in the directory where \"BaumFonts\" file is located.)\n\n## How to use ([Video](https://youtu.be/2pIuC4MWT84))\n\n### Photoshop上での操作\n\n* psdを作ります。(psdの作り方参照)\n* File -\u003e Scripts -\u003e Baum2を選択し、中間ファイルの出力先を選択します。\n\n### Unity上での操作\n\n* 生成された中間ファイルをBaum2/Importディレクトリ以下に投げ込みます。\n* 自動的に「BaumPrefabs」を配置したディレクトリにprefabが出来上がります。\n* 後は、Sample/Sample.csを参考にスクリプトからBaumUI.Instantiateで実行時に生成してください。\n\n### psdの更新方法\n\n* 同じように中間ファイルを生成後、Baum2/Importディレクトリ以下に投げ込むと、prefabが上書き更新されます。\n    * この時、prefabのGUIDは変更されないためScriptに対する参照を張り直す必要はありません。\n\n## psdの作り方\n\n### 基本\n\n基本的にPhotoshop上の1レイヤー = Unity上の1GameObjectになります。  \nUIの一部をアニメーションさせたい場合などは、Photoshop上のレイヤーを分けておいてください。  \n\n### Text\n\n* Photoshop上の **Textレイヤー** は、Unity上でUnityEngine.UI.Textとして変換されます。\n* フォントやフォントサイズ、色などの情報も可能な限りUnity側も同じように設定されます。\n\n### Button\n\n* Photoshop上の **名前が\"Button\"で終わるグループ** は、Unity上でUnityEngine.UI.Buttonとして変換されます。\n* このグループ内で、最も奥に描画されるイメージレイヤーがクリック可能な範囲(UI.Button.TargetGraphic)に設定されます。\n\n### Slider\n\n* Photoshop上の **名前が\"Slider\"で終わるグループ** は、Unity上でUnityEngine.UI.Sliderとして変換されます。\n* このグループ内で、名前がFillになっているイメージレイヤーがスライドするイメージ(UI.Slider.FillRect)になります。\n\n### Scrollbar\n\n* Photoshop上の **名前が\"Scrollbar\"で終わるグループ** は、Unity上でUnityEngine.UI.Scrollbarとして変換されます。\n* このグループ内で、名前がHandleになっているイメージレイヤーがスライドするハンドル(UI.Scrollbar.HandleRect)になります。\n\n### List\n\n* Photoshop上の **名前が\"List\"で終わるグループ** は、Unity上でBaum2.Listとして変換されます。\n* このグループ内には、Itemグループと、Maskレイヤーが必須です。\n    * Itemグループ内の要素がリストの1アイテムになります。\n    * Maskレイヤーがそのリストにかかるマスクになります。\n* 詳しくはサンプルをご覧ください。\n\n### Pivot\n\n* Photoshop上のルート直下にあるグループにのみ使えます。\n* 名前の後ろに *@Pivot=TopRight* のようにPivotを指定できます。\n\n### コメントレイヤー\n\nレイヤー名の先頭に#をつけることで、出力されないレイヤーを作ることが出来ます。\n\n### 1334px以上を書き出す場合\n\n- Baum.jsのmaxLengthを適切な値に変更して使ってください。\n- デフォルトで1334に縮小している理由は、テクスチャのサイズを小さく抑えるためです。\n\n## Developed by\n\n* Unity: Unity2017, Unity2018, Unity2019\n* PhotoshopScript: Adobe Photoshop CC 2018, Adobe Photoshop CC 2019\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyubuns%2FBaum2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkyubuns%2FBaum2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyubuns%2FBaum2/lists"}