Options
All
  • Public
  • Public/Protected
  • All
Menu

This component tags a node with two additional values that allow sorting by layer and order. The default value for both is 0. The entity you add this component to must have a Transform component.

Entities with a higher layer value overlay entities with a lower layer value. The order value defines how entities with the same layer value are ordered. As with layers, entities with a higher order value overlay those with a lower order value.

Layer sorting happens before order sorting, and both happen before axis sorting. Axis sorting only happens when entitied shave the same layer and order values.

LayerSorting values are not propagated through the hierarchy.

Hierarchy

Index

Constructors

constructor

  • new LayerSorting(layer?: number, order?: number): LayerSorting
  • Parameters

    • Optional layer: number
    • Optional order: number

    Returns LayerSorting

Properties

layer

layer: number

First, sort by layer.

order

order: number

If layer values are equal, sort by order.

Static _isSharedComp

_isSharedComp: boolean

Static _size

_size: number

Static _view

_view: any

Static cid

cid: number

Methods

Static _dtorFn

  • Parameters

    Returns void

Static _fromPtr

Static _tempHeapPtr

  • Parameters

    Returns number

Static _toPtr

  • Parameters

    Returns void

Generated using TypeDoc