Skip to content

parallax-layer-2d.entity overview


Table of contents


utils

ParallaxLayer2dEntity (class)

Wraps a parallax layer component (VTypeDoc['parallaxLayer'], see IParallaxLayer2dComponent) so it can be added to a world, found by name and removed with its level. Created by Gg2dWorld.addParallaxLayer or the "ParallaxLayer" level-JSON class. The layer positions itself from each renderer's camera, so this entity has nothing to do per tick.

Signature

export declare class ParallaxLayer2dEntity<VTypeDoc> {
  constructor(public readonly layer: VTypeDoc['parallaxLayer'])
}

tickOrder (property)

Signature

readonly tickOrder: TickOrder.OBJECTS_BINDING