Class LDtkPostprocessor
LDtkPostprocessor lets you hook into the import pipeline and run scripts after importing LDtk projects.
Inherit from this class to postprocess an import of a LDtk project.
Properties
| Improve this Doc View SourceImportContext
The AssetImportContext of the current importing project file or level file.
Type | Description |
---|---|
Asset |
Methods
| Improve this Doc View SourceGetPostprocessOrder()
Override the order in which postprocessors and import interfaces are processed. This is also ordered alongside the import interfaces: Get
Returns
Type | Description |
---|---|
System. |
The order value. Default value is 1. |
OnPostprocessLevel(GameObject, LdtkJson)
Use to perform operations after a level is created.
This is called when importing a separate level file, or called on every level gameobject in a project that doesn't use separate level files.
Parameters
Type | Name | Description |
---|---|---|
Unity |
root | The root GameObject of the imported LDtk level. |
Ldtk |
projectJson | The Json data of the project this level is referenced by. |
OnPostprocessProject(GameObject)
Use to perform operations after a project is created.
This would primarily be used with a project that does not use separate level files.
Parameters
Type | Name | Description |
---|---|---|
Unity |
root | The root GameObject of the imported LDtk project.
This GameObject has a LDtk |