MapObject::setClassName()
This works in a project you run on your own computer, but not in the examples you can start here in the browser. There is no file system, no video encoder and no OpenGL behind a web page, so calling it there tells you as much and does nothing.
Tiled 1.9 renamed an object's type to class; both end up in type (an explicit type wins).
Syntax
Java
.setClassName(className)
Parameters
| Name | Data Type | Description |
|---|---|---|
| className | String |
Return
void