Show / Hide Table of Contents

Class LDtkIidBank

Responsible for holding onto LDtk iid references so that they are easily accessible by instance classes.

Methods

| Improve this Doc View Source

CacheIidData(LdtkJson, Level)

Call this to statically load all iid json data. This is automatic during the import process, but call this if accessing iid data is required in runtime or otherwise.
The LDtkReferenceToAnEntityInstance class has iid properties, so call this before trying to access them.

Parameters
Type Name Description
LdtkJson project

The json project to cache the iid data of.

Level separateLevel

The optional level. If the project is using separate level files, then it's not possible to access iids from any other levels.

| Improve this Doc View Source

Release()

Call this when all iid data is no longer needed in memory.

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