Guest User

Untitled

a guest
Sep 23rd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. if (GUILayout.Button(new GUIContent("", btnImage_importpackage, "Import Package..."), GUILayout.Width(32), GUILayout.Height(32)))
  2. {
  3. sPath = EditorUtility.OpenPanel("Import Package...", Application.dataPath, "unitypackage");
  4. if (sPath != "")
  5. {
  6. AsseetDatabase.ImportPackage(sPath, true);
  7. }
  8. }
Add Comment
Please, Sign In to add comment