C# Class RenderImage, FairyGUI-unity

Inheritance: MonoBehaviour
Exibir arquivo Open project: fairygui/FairyGUI-unity Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
LoadModel ( string model ) : void
RenderImage ( GGraph holder ) : System.Collections
SetBackground ( GObject, image ) : void

The rendertexture is not transparent. So if you want to the UI elements can be seen in the back of the models/particles in rendertexture, you can set a maximunm two images for background. Be careful if your image is 9 grid scaling, you must make sure the place holder is inside the middle box(dont cover from border to middle).

SetBackground ( GObject, image1, GObject, image2 ) : void

The rendertexture is not transparent. So if you want to the UI elements can be seen in the back of the models/particles in rendertexture, you can set a maximunm two images for background.

StartRotate ( float delta ) : void
StopRotate ( ) : void
UnloadModel ( ) : void

Private Methods

Method Description
CreateTexture ( ) : void
DestroyTexture ( ) : void
OnAddedToStage ( ) : void
OnRemoveFromStage ( ) : void
Render ( object param = null ) : void
SetLayer ( GameObject go, int layer ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

LoadModel() public method

public LoadModel ( string model ) : void
model string
return void

RenderImage() public method

public RenderImage ( GGraph holder ) : System.Collections
holder GGraph
return System.Collections

SetBackground() public method

The rendertexture is not transparent. So if you want to the UI elements can be seen in the back of the models/particles in rendertexture, you can set a maximunm two images for background. Be careful if your image is 9 grid scaling, you must make sure the place holder is inside the middle box(dont cover from border to middle).
public SetBackground ( GObject, image ) : void
image GObject,
return void

SetBackground() public method

The rendertexture is not transparent. So if you want to the UI elements can be seen in the back of the models/particles in rendertexture, you can set a maximunm two images for background.
public SetBackground ( GObject, image1, GObject, image2 ) : void
image1 GObject,
image2 GObject,
return void

StartRotate() public method

public StartRotate ( float delta ) : void
delta float
return void

StopRotate() public method

public StopRotate ( ) : void
return void

UnloadModel() public method

public UnloadModel ( ) : void
return void