Custom properties JS API is non-functional
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 12.9k
- Forks
- 2k
- Avg merge
- 4h 27m
- Merged PRs (30d)
- 8
Description
The following APIs are supposed to allow you to work with custom property types:
```
tiled.project.findTypeByName
tiled.project.addClassType
tiled.project.addEnumType
```
However, they all fail in 1.12.0 with the following error:
```
Error: Unknown method return type: ScriptPropertyType*
```
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the error in version 1.12.0 with tiled.project.findTypeByName, tiled.project.addClassType, and tiled.project.addEnumType. Trace how these entry points expose custom property types; done means all three APIs work without the “Unknown method return type: ScriptPropertyType*” error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, javascript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100