C# Класс RenderImage, FairyGUI-unity

Наследование: MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
CreateTexture ( ) : void
DestroyTexture ( ) : void
OnAddedToStage ( ) : void
OnRemoveFromStage ( ) : void
Render ( object param = null ) : void
SetLayer ( GameObject go, int layer ) : void

Описание методов

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

LoadModel() публичный Метод

public LoadModel ( string model ) : void
model string
Результат void

RenderImage() публичный Метод

public RenderImage ( GGraph holder ) : System.Collections
holder GGraph
Результат System.Collections

SetBackground() публичный Метод

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,
Результат void

SetBackground() публичный Метод

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,
Результат void

StartRotate() публичный Метод

public StartRotate ( float delta ) : void
delta float
Результат void

StopRotate() публичный Метод

public StopRotate ( ) : void
Результат void

UnloadModel() публичный Метод

public UnloadModel ( ) : void
Результат void