Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TMXLayerInfo

cc.TMXLayerInfo contains the information about the layers like:

  • Layer name
  • Layer size
  • Layer opacity at creation time (it can be modified at runtime)
  • Whether the layer is visible (if it's not visible, then the CocosNode won't be created) This information is obtained from the TMX file.

Hierarchy

  • TMXLayerInfo

Index

Properties

layerSize

layerSize: Size | null = null

maxGID

maxGID: GID = 0 as unknown as GID

minGID

minGID: GID = 100000 as unknown as GID

name

name: string = ""

offset

offset: Vec2 = new Vec2(0, 0)

opacity

opacity: number = 0

ownTiles

ownTiles: boolean = true

properties

properties: PropertiesInfo = {} as any

Properties of the layer info.

property

{Object} properties

tiles

tiles: number[] | Uint32Array = []

tintColor

tintColor: Color | null = null

visible

visible: boolean = true

Static ATTRIB_BASE64

ATTRIB_BASE64: number = 1 << 1
property

ATTRIB_BASE64

constant
static
default

2

Static ATTRIB_GZIP

ATTRIB_GZIP: number = 1 << 2
property

ATTRIB_GZIP

constant
static
default

4

Static ATTRIB_NONE

ATTRIB_NONE: number = 1 << 0
property

ATTRIB_NONE

constant
static
default

1

Static ATTRIB_ZLIB

ATTRIB_ZLIB: number = 1 << 3
property

ATTRIB_ZLIB

constant
static
default

8

Methods

getProperties

  • getProperties(): {}

setProperties

Generated using TypeDoc