core.rendertarget.create
Client
Creates a new rendertarget instance
Syntax
local instance = core.rendertarget.create(
size,
transparent = false
)Parameters
| Type | Name | Description |
|---|---|---|
vector2 | size | Size of the rendertarget as {width, height} |
bool | transparent | Determines whether the rendertarget has a transparent background: • When true - the background is transparent• When false - the background is opaque |
Returns
| Type | Name | Description |
|---|---|---|
rendertarget | instance | Created rendertarget instance |
Examples
local entity = core.rendertarget.create({1920, 1080}, false)
entity:set_active()