Entity::data: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
This property is used to get or set entity data. | This property is used to get or set entity data. | ||
'''Note''': Changing this property has the same effect as using [[Entity::setVariable]] function. | '''Note''': Changing this property has the same effect as using [[Entity::setVariable|entity.setVariable]] function. | ||
== | == Property Type(s) == | ||
* | * Getter | ||
* Setter | |||
== Example == | == Example(s) == | ||
{{ServerSide}} | {{ServerSide}} | ||
The code below is an example about how to set a entity data by directly manipulating its "data" attribute. | |||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
entity.data.foo = bar; | entity.data.foo = bar; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 20:32, 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)
- Getter
- Setter
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;