Created
December 3, 2017 10:08
-
-
Save IJEMIN/8a75c51595efbb6885c5b4da90562348 to your computer and use it in GitHub Desktop.
Unity Export Package with Tag and Layers and Input Settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 단순 유니티 패키지 제작용 스크립트 | |
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"); | |
} | |
} |
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
God bless you good man