Cache Protocol
From PowerUI
Revision as of 21:05, 13 January 2017 by 151.229.186.156 (talk) (Created page with "The cache:// protocol is used with the static ImageCache class (scripting). It lets you name a Texture (either a RenderTexture or a Texture2D) and display it on the UI: <synt...")
The cache:// protocol is used with the static ImageCache class (scripting). It lets you name a Texture (either a RenderTexture or a Texture2D) and display it on the UI:
// Texture2D aTexture;
ImageCache.Add("myTexture",aTexture);
<!-- Here's how you display it -->
<img src='cache://myTexture'/>