PolygonComponent¶
The data behind a UI Polygon. In Lua, get it with polygon:getPolygonComponent().
Properties¶
Writing a component field
Some fields take effect only once the matching needUpdate… flag is set too. See
Writing components directly.
| Name | Languages |
|---|---|
points |
C++ | Lua |
needUpdatePolygon |
C++ | Lua |
points is a list of PolygonPoint. Set needUpdatePolygon after assigning it. In Lua, lists are copies: assign the changed table back.