Table of Contents

Enum PathType

Namespace
Glitch9

Specifies different types of paths used in Unity projects.

public enum PathType
Extension Methods

Fields

Absolute = 1

The path is an absolute path on the local file system. This is the only path that File can use to load files.

Assets = 2

The path is relative to the project's Application.dataPath. This is the only path that UnityEditor.AssetDatabase can use to load assets.

ConsoleLog = 8

The path is relative to the project's 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 = 5

The path is relative to the project's 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.

Resources = 3

The path is relative to the project's Application.dataPath + "/Resources". This is the only path that Resources.Load can use to load assets.

StreamingAssets = 4

The path is relative to the project's Application.streamingAssetsPath. If a file is in this folder, you will have to use UnityEngine.Networking.UnityWebRequest to load it.

TemporaryCache = 7

The path is relative to the project's 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 = 0

The path is not set. Error will be thrown if you try to use this path.

Url = 6

The path is a URL to a resource on the internet. Use UnityEngine.Networking.UnityWebRequest to load the files.