Skip to content

Instantly share code, notes, and snippets.

@uchidama
Last active April 16, 2024 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uchidama/4326951aa7ee2a1ef17a366cff451394 to your computer and use it in GitHub Desktop.
Save uchidama/4326951aa7ee2a1ef17a366cff451394 to your computer and use it in GitHub Desktop.
# Unityフォルダ構成のルールについて # https://qiita.com/takish/items/8608ba9070755da3ae6d # ここで書かれたフォルダ構成をUnityの空のプロジェクトを作ったあとに作成するスクリプト # 空のプロジェクトのルートフォルダにおいて実行
#!/bin/bash
#
# Unityフォルダ構成のルールについて
# https://qiita.com/takish/items/8608ba9070755da3ae6d
# ここで書かれたフォルダ構成をUnityの空のプロジェクトを作ったあとに作成するスクリプト
# 空のプロジェクトのルートフォルダにおいて実行
# Base directory for Unity project Assets
base_dir="./Assets"
# List of directories to create
directories=(
"Scenes"
"Prefabs"
"Scripts"
"Animations"
"Materials"
"PhysicsMaterials"
"Fonts"
"Textures"
"Audio"
"Resources"
"Editor"
"Plugins"
)
# Create each directory
for dir in "${directories[@]}"; do
mkdir -p "$base_dir/$dir"
done
echo "Directory structure created successfully in $base_dir."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment