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 | https:/github.com/cocos-creator/engine/blob/master/cocos2d/tilemap/CCSGTMXObject.js:71 |
getProperty
Get the property of object
meta | description |
---|---|
Returns | Object |
Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/tilemap/CCSGTMXObject.js:81 |
Parameters
propertyName
String
getProperties
Get the properties of object
meta | description |
---|---|
Returns | Object |
Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/tilemap/CCSGTMXObject.js:92 |
setObjectName
Set the object name
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/tilemap/CCSGTMXObject.js:102 |
Parameters
name
String
setProperties
Set the properties of the object
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/tilemap/CCSGTMXObject.js:112 |
Parameters
props
Object