NGUI: Next-Gen UI kit  3.7.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
NGUIEditorExtensions Class Reference

This class contains NGUI's extensions to Unity Editor's functionality. More...

Static Public Member Functions

static RenderTexture RenderToTexture (this Camera cam, int width, int height)
 Render the camera into a render texture. If the camera has a render texture assigned, it will be re-used. If it doesn't, a new render texture will be created. More...
 
static bool SaveRenderTextureAsPNG (this Camera cam, string filename)
 If the camera has a render texture, save its contents into the specified file using PNG image format. More...
 

Detailed Description

This class contains NGUI's extensions to Unity Editor's functionality.

Member Function Documentation

static RenderTexture NGUIEditorExtensions.RenderToTexture ( this Camera  cam,
int  width,
int  height 
)
static

Render the camera into a render texture. If the camera has a render texture assigned, it will be re-used. If it doesn't, a new render texture will be created.

static bool NGUIEditorExtensions.SaveRenderTextureAsPNG ( this Camera  cam,
string  filename 
)
static

If the camera has a render texture, save its contents into the specified file using PNG image format.


The documentation for this class was generated from the following file: