Show / Hide Table of Contents

Class LDtkPreprocessor

LDtkPreprocessor lets you hook into the import pipeline to modify any json data before the GameObject structure is created.
Do note that if any json data is modified, it can risk breaking the import process, so modify with care.

Methods

| Improve this Doc View Source

GetPreprocessOrder()

Override the order in which preprocessors are processed. All levels will only process after all projects. This is due to the way that Unity's import pipeline is structured.

Returns
Type Description
System.Int32

The order value. Default value is 1.

| Improve this Doc View Source

OnPreprocessLevel(Level, LdtkJson, String)

Use to perform operations before the level hierarchy is created.
This is only called for separate level files, not project files.

Parameters
Type Name Description
Level level

The level json.

LdtkJson projectJson

The project data of this level.

System.String projectName

Name of the project file.

| Improve this Doc View Source

OnPreprocessProject(LdtkJson, String)

Use to perform operations before the project hierarchy is created.
This is only called for project files, not separate level files.

Parameters
Type Name Description
LdtkJson projectJson

The project json.

System.String projectName

Name of the project file.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX