2using System.Collections;
3using System.Collections.Generic;
13 public override string tooltip {
get {
return "Load License"; } }
21 dlog.
SetDirectory(System.IO.Directory.GetCurrentDirectory());
31 private void OnOpen(
string path)
36 public void Open(
string path)
38 string san = pb_FileUtility.SanitizePath(path);
39 if (path.StartsWith(
"\\\\"))
44 if(!pb_FileUtility.IsValidPath(san,
".bin"))
46 PopupManager.
instance.ShowPopup(
"Can't open license",
"The selected file is in a not accessable location.");
47 Debug.LogWarning(san +
" not found, or file is not a License file.");
58 File.Copy(san, Path.Combine(Application.persistentDataPath,
"License.bin"));
64 PopupManager.
instance.ShowPopup(
"Invalid License",
"The selected license file is invalid, or it's not issued for this computer.");
string filePattern
If isFileBrowser is true, this string my be used to filter file results (see https://msdn....
void AddOnSaveListener(Callback< string > listener)
void SetDirectory(string directory)
static void SetTitle(string title)
static void SetContent(GameObject prefab)