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 function property has the same effect as [Entity::setVariable]. | |||
==Getter== | ==Getter== | ||
| Line 10: | Line 12: | ||
<div style="margin: 10px 10px 10px 10px;"><b>Server-Side</b></div> | <div style="margin: 10px 10px 10px 10px;"><b>Server-Side</b></div> | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
entity.data.foo = bar; | |||
</syntaxhighlight> | </syntaxhighlight> | ||
</div> | </div> | ||
Revision as of 20:24, 4 February 2018
This property is used to get or set entity data.
Note: Changing this function property has the same effect as [Entity::setVariable].
Getter
- any
Setter
- any
Example
Server-Side
entity.data.foo = bar;