|
|
|
|
|
|
{ |
|
|
|
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() { |
|
|
|