layer(layer_index)
Class: UIComponent.
Description:
Sets or gets a layer at which this component resides in Panel container. This is separate from z-index.
This applies only to components that are added to Panel or Window components.
For example components in layer 2 are always on top of components in layer 1, regardless on their z-index.
Larger value brings component forward, smaller to the back, like width z-index.
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
number |
Returns:
If value is provided, then this is returned, otherwise number value is returned.
Type: number | this
