RenderTextureProvider
APJS Script API reference for the RenderTextureProvider class.
| Type | Name | Interface Description |
|---|---|---|
| Variables | clearColor: Color | • Function: Gets the color used to clear the render texture when inputTexture is null. Returns The clear color for the render texture. |
| Variables | clearType: CameraClearType | • Function: Gets the clear type for the render texture. Returns The camera clear type used for this render texture. |
| Variables | inputTexture: Texture | undefined | • Function: Gets the input texture for this render texture. Returns The input texture or undefined if none is set. |
| Functions | constructor() | |
| Functions | setHeight(value: number): void | • Function: Sets the height of the render texture. Parameters • |
| Functions | setWidth(value: number): void | • Function: Sets the width of the render texture. Parameters • |
Examples
constructor()
let obj = new APJS.RenderTextureProvider();
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use RenderTextureProvider here
}
onUpdate(deltaTime: number) {
}
}