Show / Hide Table of Contents

Class LDtkTilesetDefinitionWrapper

A wrapper on the TilesetDefinition that contains some additional data in order to independently import certain tiles related to this tileset definition. We're making this because it's harder to generate an asset and additionally set it's importer's bonus metadata in the same pass. So we're writing our own text instead to provide that data.

Fields

| Improve this Doc View Source

Def

The tileset definition.

Field Value
Type Description
TilesetDefinition
| Improve this Doc View Source

Rects

AdditionalRects; Contains all malformed tile rects (tiles that aren't equal in width nor height to the tilesets gridSize). These are not included with the sprite editor window integration, as not only do they overlap when trying to click on a sprite to edit, but also aren't gonna have tilemap assets generated for them anyways, as they wouldn't fit. These could be extra rects that are shaped like rectangles to slice, from tile field definitions, or icons maybe.

Field Value
Type Description
System.Collections.Generic.List<LDtkTilesetDefinitionWrapper.TilesetRect>

Methods

| Improve this Doc View Source

FromJson(Byte[])

Parameters
Type Name Description
System.Byte[] json
Returns
Type Description
LDtkTilesetDefinitionWrapper
| Improve this Doc View Source

ToJson()

Returns
Type Description
System.Byte[]
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX