Caching.enabled 启用

static var enabled : bool


Is caching enabled?


The user has the option to completely disable caching in Unity, by right clicking on the content, and selecting "Setup...". If caching is disabled, all caching functions will fail, and you either have to load your content with the normal WWW class, or display an error and refuse to run. By default, caching is enabled.


if (!Caching.enabled)

	GUILayout.Label ("Please turn on caching to run this game.");
Page last updated: 2011-4-5