22 private string _relativePath;
30 public override string Path {
32 if (_relativePath ==
null) { _relativePath =
""; }
33 return System.IO.Path.Combine(Application.streamingAssetsPath, _relativePath);
36 throw new InvalidOperationException();
44 string assetPath = AssetDatabase.GetAssetPath(
_assetFolder);
45 if (
string.IsNullOrEmpty(assetPath)) {
48 string fullFolder = System.IO.Path.GetFullPath(assetPath);
49 _relativePath = Utils.MakeRelativePath(Application.streamingAssetsPath, fullFolder);
50 _relativePath =
string.Join(System.IO.Path.DirectorySeparatorChar.ToString(),
51 _relativePath.Split(System.IO.Path.DirectorySeparatorChar).Skip(1).ToArray());
A convenient serializable representation of an asset folder. Only useful for editor scripts since ass...
override string Path
Gets the full path to the streaming folder. This operation is safe to be called from within a build o...
void OnAfterDeserialize()