Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (GUILayout.Button(new GUIContent("", btnImage_importpackage, "Import Package..."), GUILayout.Width(32), GUILayout.Height(32)))
- {
- sPath = EditorUtility.OpenPanel("Import Package...", Application.dataPath, "unitypackage");
- if (sPath != "")
- {
- AsseetDatabase.ImportPackage(sPath, true);
- }
- }
Add Comment
Please, Sign In to add comment