Class LDtkUidBank
Responsible for holding onto LDtk definitions so that they are easily accessible by instance classes.
Methods
| Improve this Doc View SourceCacheUidData(LdtkJson)
Call this to statically load all definition data. This is automatic during the import process, but call this if accessing definitions is required in runtime or otherwise.
Most LDtk json instances have a definition property, so call this before trying to access definitions.
Parameters
Type | Name | Description |
---|---|---|
LdtkJson | project | The json project to cache the definitions of. |
ReleaseDefinitions()
Call this when all definition data is no longer needed in memory.