TMXObject Class
Module: cc
Renders the TMX object.
Index
Methods
getObjectNameGet the name of objectgetPropertyGet the property of objectgetPropertiesGet the properties of objectsetObjectNameSet the object namesetPropertiesSet 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 |
getProperties
Get the properties of object
| meta | description |
|---|---|
| Returns | Object |
| Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/tilemap/CCSGTMXObject.js:91 |
setObjectName
Set the object name
| meta | description |
|---|---|
| Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/tilemap/CCSGTMXObject.js:101 |
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:111 |
Parameters
- props Object