LdtkEntityInstance
ceramic.LdtkEntityInstance (Class)
An instance of an entity placed in a level.
Contains the entity's position, size, field values, and tile information. This is the actual game object data as opposed to the entity definition.
Instance Members
The related entity definition
The layer instance this entity instance belongs to
Grid-based X coordinate
Grid-based Y coordinate
Pixel X coordinate
Pixel Y coordinate
An array of all custom fields and their values.
Entity width in pixels. For non-resizable entities, it will be the same as Entity definition.
Entity height in pixels. For non-resizable entities, it will be the same as Entity definition.
Unique instance identifier
Name | Type |
---|---|
identifier |
String |
Returns |
---|
Null<LdtkFieldInstance> |
Returns |
---|
String |
ldtk
new(?ldtkData: LdtkData, ?ldtkWorld: LdtkWorld, ?json: haxe.DynamicAccess<Dynamic>, ?register: Function): Void
Name | Type | Default |
---|---|---|
ldtkData |
LdtkData | (optional) |
ldtkWorld |
LdtkWorld | (optional) |
json |
haxe.DynamicAccess<Dynamic> | (optional) |
register |
Function | (optional) |