StorageType Class

Description

StorageType represents where the images, jsons, videos or other files are located.

StorageType specifies the root path, in all interfaces, you can use relative path relative to the root path.

enum StorageType

Constant

Value

Description

App

0

The app path.

  • Android: the application’s persistent data directory. This directory may be different from Unity's Application.persistentDataPath

  • iOS: the application’s sandbox directory

  • Windows: the application’s executable directory

  • Mac: the application’s executable directory (if app is a bundle, this path is inside the bundle)

Assets

1

The StreamingAssets path.

Absolute

2

The absolute path (json/image path or video path) or url (video only).

Json

256

The flag for json string, used in Target.Load