Class World
IMPORTANT: this type is available as a preview. You can rely on it to update your importers, for when it will be officially available. A World contains multiple levels, and it has its own layout settings.
Properties
| Improve this Doc View SourceDefaultLevelHeight
Default new level height
| Type | Description |
|---|---|
| System.Int32 |
DefaultLevelWidth
Default new level width
| Type | Description |
|---|---|
| System.Int32 |
Identifier
User defined unique identifier
| Type | Description |
|---|---|
| System.String |
Iid
Unique instance identifer
| Type | Description |
|---|---|
| System.String |
Levels
All levels from this world. The order of this array is only relevant in
LinearHorizontal and linearVertical world layouts (see worldLayout value).
Otherwise, you should refer to the worldX,worldY coordinates of each Level.
| Type | Description |
|---|---|
| Level[] |
UnityDefaultLevelSize
| Type | Description |
|---|---|
| UnityEngine.Vector2Int | Default new level size. |
UnityWorldGridSize
| Type | Description |
|---|---|
| UnityEngine.Vector2Int | Size of the world grid in pixels. |
WorldGridHeight
Height of the world grid in pixels.
| Type | Description |
|---|---|
| System.Int32 |
WorldGridWidth
Width of the world grid in pixels.
| Type | Description |
|---|---|
| System.Int32 |
WorldLayout
An enum that describes how levels are organized in this project (ie. linearly or in a 2D
space). Possible values: Free, GridVania, LinearHorizontal, LinearVertical, null
| Type | Description |
|---|---|
| System.Nullable<LDtkUnity.WorldLayout> |