Caching.enabled 启用

static var enabled : bool

Description描述

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.

在Unity,用户可以选择完全禁用缓存。通过在内容上右键点击并选择“Setup...”。如果缓存被禁用,所有缓存功能将失败,并且可能已经载入带有标准WWW类的内容,或显示错误并拒绝执行。默认,缓存是开启的。

if (!Caching.enabled)

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