Entity::data: Difference between revisions
No edit summary |
No edit summary |
||
| Line 3: | Line 3: | ||
'''Note''': Changing this property has the same effect as using [[Entity::setVariable|entity.setVariable]] function. | '''Note''': Changing this property has the same effect as using [[Entity::setVariable|entity.setVariable]] function. | ||
== Property Type(s) == | == Property Type(s) & Attribute(s) == | ||
* Getter | * Getter - attribute should be in '''any''' format. | ||
* Setter | * Setter - attribute should be in '''any''' format. | ||
== Example(s) == | == Example(s) == | ||
Revision as of 20:46, 4 February 2018
This property is used to get or set entity data.
Note: Changing this property has the same effect as using entity.setVariable function.
Property Type(s) & Attribute(s)
- Getter - attribute should be in any format.
- Setter - attribute should be in any format.
Example(s)
Server-Side
The code below is an example about how to set a entity data by directly manipulating its "data" attribute.
entity.data.foo = bar;