Class LDtkIidBank
Responsible for holding onto LDtk iid references so that they are easily accessible by instance classes.
Methods
| Improve this Doc View SourceCacheIidData(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. |
Release()
Call this when all iid data is no longer needed in memory.