Entity::data: Difference between revisions
No edit summary |
No edit summary |
||
| Line 9: | Line 9: | ||
== Example == | == Example == | ||
{{ServerSide}} | |||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
entity.data.foo = bar; | entity.data.foo = bar; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 20:28, 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.
Getter
- any
Setter
- any
Example
Server-Side
entity.data.foo = bar;