Skip to content

Instantly share code, notes, and snippets.

@shimiu
shimiu / GitkeepMaker.cs
Last active January 31, 2024 00:19
Unity Editorで新規フォルダが作られたときに自動で.gitkeepを作成する。 Editorフォルダに入れて使う。 プロジェクトルートに.gitフォルダが無かったらスルー。
using UnityEditor;
using UnityEngine;
using System.Collections;
using System.IO;
/// <summary>
/// 新規フォルダ作成時に.gitkeepを自動作成
/// </summary>
public class GitkeepMaker : AssetPostprocessor
{