layer(name: string): LayerCompDetermines the layer for objects. Object will be drawn on top if the layer index is higher.