Scratch for Java

MapObject::setClassName()

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

setClassName()

Create Shareable URL

Select Sections