Skip to content

Instantly share code, notes, and snippets.

@IJEMIN
Created December 3, 2017 10:08
Show Gist options
  • Save IJEMIN/8a75c51595efbb6885c5b4da90562348 to your computer and use it in GitHub Desktop.
Save IJEMIN/8a75c51595efbb6885c5b4da90562348 to your computer and use it in GitHub Desktop.
Unity Export Package with Tag and Layers and Input Settings
// 단순 유니티 패키지 제작용 스크립트
using UnityEngine;
using System.Collections;
using UnityEditor;
public static class ExportPackage {
[MenuItem("Export/Export with tags and layers, Input settings")]
public static void export()
{
string[] projectContent = new string[] {"Assets", "ProjectSettings/TagManager.asset","ProjectSettings/InputManager.asset","ProjectSettings/ProjectSettings.asset"};
AssetDatabase.ExportPackage(projectContent, "Done.unitypackage",ExportPackageOptions.Interactive | ExportPackageOptions.Recurse |ExportPackageOptions.IncludeDependencies);
Debug.Log("Project Exported");
}
}
@vmadien
Copy link

vmadien commented Nov 17, 2020

Thank you very much for this script. Who was very useful to me

@mgrugl
Copy link

mgrugl commented May 9, 2021

Super useful. Works in 2020.3

@hectorgomex
Copy link

God bless you good man

@jimmybeany
Copy link

Working on 2021.3. What a time to be alive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment