gewentao 7 年前
当前提交
9919eef6
共有 1 个文件被更改,包括 5 次插入13 次删除
  1. 18
      Assets/UIWidgets/Tests/CanvasAndLayers.cs

18
Assets/UIWidgets/Tests/CanvasAndLayers.cs


{
if (GUI.Button(new UnityEngine.Rect(20, 50, 100, 20), "Image 1"))
{
_stream =
LoadImage(
LoadImage(
_stream =
LoadImage(
LoadImage(
_stream =
LoadImage(
LoadImage(
"http://a.hiphotos.baidu.com/image/pic/item/2f738bd4b31c8701c1e721dd2a7f9e2f0708ffbc.jpg");
}
}

}
Debug.Log("currentSize: " + PaintingBinding.instance.imageCache.currentSize);
Debug.Log("currentSizeBytes: " + PaintingBinding.instance.imageCache.currentSizeBytes);
Debug.Log("maxSizeBytes: " + PaintingBinding.instance.imageCache.maximumSizeBytes);
}
private void OnEnable() {

private ImageStream LoadImage(string url)
private void LoadImage(string url)
var stream = networkImage.resolve(imageConfig);
return stream;
_stream = networkImage.resolve(imageConfig);
}
void drawPloygon4() {

正在加载...
取消
保存