Skip to content

Instantly share code, notes, and snippets.

@yuna0x0
Last active January 13, 2023 06:38
Show Gist options
  • Save yuna0x0/06cd24101d3de4882b823a95fa96511a to your computer and use it in GitHub Desktop.
Save yuna0x0/06cd24101d3de4882b823a95fa96511a to your computer and use it in GitHub Desktop.
Unity project ignore config for Git and Perforce (P4)
$ p4 set P4IGNORE=.p4ignore
# This .gitignore file should be placed at the root of your Unity project directory
#
# Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore
#
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/[Ll]ogs/
/[Uu]ser[Ss]ettings/
# MemoryCaptures can get excessive in size.
# They also could contain extremely sensitive data
/[Mm]emoryCaptures/
# Asset meta data should only be ignored when the corresponding asset is also ignored
!/[Aa]ssets/**/*.meta
# Uncomment this line if you wish to ignore the asset store tools plugin
# /[Aa]ssets/AssetStoreTools*
# Autogenerated Jetbrains Rider plugin
/[Aa]ssets/Plugins/Editor/JetBrains*
# Visual Studio cache directory
.vs/
# Gradle cache directory
.gradle/
# Autogenerated VS/MD/Consulo solution and project files
ExportedObj/
.consulo/
*.csproj
*.unityproj
*.sln
*.suo
*.tmp
*.user
*.userprefs
*.pidb
*.booproj
*.svd
*.pdb
*.mdb
*.opendb
*.VC.db
# Unity3D generated meta files
*.pidb.meta
*.pdb.meta
*.mdb.meta
# Unity3D generated file on crash reports
sysinfo.txt
# Builds
*.apk
*.aab
# *.unitypackage
# Crashlytics generated file
crashlytics-build.properties
# Packed Addressables
/[Aa]ssets/[Aa]ddressable[Aa]ssets[Dd]ata/*/*.bin*
# Temporary auto-generated Android Assets
/[Aa]ssets/[Ss]treamingAssets/aa.meta
/[Aa]ssets/[Ss]treamingAssets/aa/*
.idea/
.DS_Store
*.log
# VRoid SDK Credential File
# credential.json.bytes
# This .p4ignore file should be placed at the root of your Unity project directory
#
# Get latest .gitignore from https://github.com/github/gitignore/blob/master/Unity.gitignore
#
/Library/
/library/
/Temp/
/temp/
/Obj/
/obj/
/Build/
/build/
/Builds/
/builds/
/Logs/
/logs/
/UserSettings/
/Usersettings/
/usersettings/
/userSettings/
# MemoryCaptures can get excessive in size.
# They also could contain extremely sensitive data
/MemoryCaptures/
/memoryCaptures/
# Asset meta data should only be ignored when the corresponding asset is also ignored
!/Assets/**/*.meta
!/assets/**/*.meta
# Uncomment these lines if you wish to ignore the asset store tools plugin
# /Assets/AssetStoreTools*
# /assets/AssetStoreTools*
# Autogenerated Jetbrains Rider plugin
/Assets/Plugins/Editor/JetBrains*
/assets/Plugins/Editor/JetBrains*
# Visual Studio cache directory
.vs/
# Gradle cache directory
.gradle/
# Autogenerated VS/MD/Consulo solution and project files
ExportedObj/
.consulo/
*.csproj
*.unityproj
*.sln
*.suo
*.tmp
*.user
*.userprefs
*.pidb
*.booproj
*.svd
*.pdb
*.mdb
*.opendb
*.VC.db
# Unity3D generated meta files
*.pidb.meta
*.pdb.meta
*.mdb.meta
# Unity3D generated file on crash reports
sysinfo.txt
# Builds
*.apk
*.aab
# *.unitypackage
# Crashlytics generated file
crashlytics-build.properties
# Packed Addressables
/Assets/AddressableAssetsData/*/*.bin*
/Assets/AddressableAssetsdata/*/*.bin*
/Assets/AaddressableassetsData/*/*.bin*
/Assets/addressableAssetsData/*/*.bin*
/assets/AddressableAssetsData/*/*.bin*
/assets/addressableassetsdata/*/*.bin*
/Assets/Addressableassetsdata/*/*.bin*
/assets/addressableAssetsData/*/*.bin*
/Assets/addressableAssetsdata/*/*.bin*
/assets/AddressableassetsData/*/*.bin*
/Assets/addressableassetsData/*/*.bin*
/assets/AddressableAssetsdata/*/*.bin*
/Assets/addressableassetsdata/*/*.bin*
/assets/Addressableassetsdata/*/*.bin*
/assets/addressableAssetsdata/*/*.bin*
/assets/addressableassetsData/*/*.bin*
# Temporary auto-generated Android Assets
/Assets/StreamingAssets/aa.meta
/Assets/streamingAssets/aa.meta
/assets/StreamingAssets/aa.meta
/assets/streamingAssets/aa.meta
/Assets/StreamingAssets/aa/*
/Assets/streamingAssets/aa/*
/assets/StreamingAssets/aa/*
/assets/streamingAssets/aa/*
# --------------------------------------------------------------
# ignore P4CONFIG files
# The P4CONFIG file is unlikely to apply to other users
# --------------------------------------------------------------
p4config.txt
.p4config
.idea/
.DS_Store
*.log
# VRoid SDK Credential File
# credential.json.bytes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment