API Reference › Tiled › Tiled.template
method

Tiled.template

Tiled.template(path: string) -> value

Reads a .tx/.tj template file and returns its object Value — the reusable object definition an instance inherits. Tiled.load resolves each object's template reference automatically, merging the template's fields under the instance's overrides.

← All symbols