Enum UnityPathType
Specifies different types of paths used in Unity projects.
Namespace: Glitch9
Assembly: Glitch9.dll
Syntax
public enum UnityPathType
Fields
| Name | Description |
|---|---|
| Absolute | The path is an absolute path on the local file system. This is the only path that File can use to load files. |
| AssetDatabase | The path is relative to the project's UnityEngine.Application.dataPath. This is the only path that UnityEditor.AssetDatabase can use to load assets. |
| ConsoleLog | The path is relative to the project's UnityEngine.Application.consoleLogPath. This path is used to store log files that are generated by Unity. If a file is in this folder, you will have to use UnityEngine.Networking.UnityWebRequest to load it. |
| PersistentData | The path is relative to the project's UnityEngine.Application.persistentDataPath. This path is used to store data that should persist between app launches. If a file is in this folder, you will have to use UnityEngine.Networking.UnityWebRequest to load it. |
| ResourcesLoad | The path is relative to the project's UnityEngine.Application.dataPath + |
| StreamingAssets | The path is relative to the project's UnityEngine.Application.streamingAssetsPath. If a file is in this folder, you will have to use UnityEngine.Networking.UnityWebRequest to load it. |
| TemporaryCache | The path is relative to the project's UnityEngine.Application.temporaryCachePath. This path is used to store temporary data that does not need to persist between app launches. If a file is in this folder, you will have to use UnityEngine.Networking.UnityWebRequest to load it. |
| Unknown | The path is not set. Error will be thrown if you try to use this path. |
| Url | The path is a URL to a resource on the internet. Use UnityEngine.Networking.UnityWebRequest to load the files. |