Name | Type | Default | Description |
---|---|---|---|
group |
PIXI.layers.Group | undefined |
The group of DisplayObjects to be rendered by this layer. |
Extends
- Container
Members
The background color to clear the layer.
This should be used when Layer#useRenderTexture is enabled.
group PIXI.layers.Group
The group of DisplayObjects that are rendered within this layer
- Default Value:
- undefined
Flags that this container is a layer!
- Default Value:
- true
textureCache PIXI.layers.LayerTextureCache
The texture manager used when rendering into a layer render-texture.
This will enable double buffering for this layer.
This layer will keep two render-textures to render into - choosing one each frame on a flip-flop basis. This is useful when you
Caveat: You must enable Layer#useRenderTexture to prevent framebuffer errors in rendering.
Flags whether this layer should render into a render-texture.
This is useful if you want to use the layer as a texture elsewhere - for example, in sprites or to apply filters. The layer's render-texture is resized to the size of the renderer's screen.
Methods
Name | Type | Attributes | Description |
---|---|---|---|
options |
IDestroyOptions |
<optional> |
you can override this method for this particular layer, if you want
The rendering into a render-texture is enabled, this will return the render-texture used by this layer.
Returns:
Type | Description |
---|---|
RenderTexture |
renderCanvas named this way because of some TS mixin problem
Name | Type | Description |
---|---|---|
renderer |
any |
Name | Type | Description |
---|---|---|
renderer |
Renderer |
Cleans up the renderer after this layer is rendered.
It restores Renderer#_activeLayer to the parent layer and restores the canonical order of children.
Name | Type | Description |
---|---|---|
renderer |
ILayeredRenderer |
Prepares the renderer for this layer.
It will assign PIXI.Renderer#_activeLayer to this
, and set the active layer before
this to _activeParentLayer. It will also temporarily sort the
children by z-order.
Name | Type | Description |
---|---|---|
renderer |
ILayeredRenderer |
Returns:
Type | Description |
---|---|
boolean | true , if the layer needs to be rendered; false , when the layer is invisible or has
zero alpha. |