14 [CustomPropertyDrawer(typeof(StreamingFolder), useForChildren:
true)]
18 return EditorUtility.OpenFilePanel(
"Select File", currentPath,
"");
21 protected override bool ValidatePath(
string fullPath,
string relativePath, out
string errorMessage) {
22 if (!File.Exists(fullPath)) {
23 errorMessage =
"The specified file does not exist!";
27 if ((File.GetAttributes(fullPath) & FileAttributes.Directory) == FileAttributes.Directory) {
28 errorMessage =
"You must specify a file and not a directory!";
32 bool isValid = base.ValidatePath(fullPath, relativePath, out errorMessage);
34 errorMessage =
"The specified file is not a streaming asset. Streaming assets must be inside project's Assets/StreamingAssets directory.";
override string PromptUserForPath(string currentPath)
override bool ValidatePath(string fullPath, string relativePath, out string errorMessage)