TMXObject
Class
Module: cc
Renders the TMX object.
Index
Methods
getObjectName
Get the name of objectgetProperty
Get the property of objectgetProperties
Get the properties of objectsetObjectName
Set the object namesetProperties
Set the properties of the object
Details
Methods
getObjectName
Get the name of object
meta | description |
---|---|
Returns | String |
Defined in | cocos2d/tilemap/CCSGTMXObject.js:72 |
getProperty
Get the property of object
meta | description |
---|---|
Returns | Object |
Defined in | cocos2d/tilemap/CCSGTMXObject.js:82 |
Parameters
propertyName
String
getProperties
Get the properties of object
meta | description |
---|---|
Returns | Object |
Defined in | cocos2d/tilemap/CCSGTMXObject.js:93 |
setObjectName
Set the object name
meta | description |
---|---|
Defined in | cocos2d/tilemap/CCSGTMXObject.js:103 |
Parameters
name
String
setProperties
Set the properties of the object
meta | description |
---|---|
Defined in | cocos2d/tilemap/CCSGTMXObject.js:113 |
Parameters
props
Object