Skip to content

Commit b6a7ee9

Browse files
authored
scale.xy fix (#535)
1 parent a388653 commit b6a7ee9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/en/manuals/properties.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,10 @@ All game objects, and some component types have properties that can be read and
5858
| *rotation* | Local rotation of game object, expressed as a quaternion. | `quaternion` | `get+set`{.mark} |
5959
| *euler* | Local rotation of game object, Euler angles. | `vector3` | `get+set`{.mark} |
6060
| *scale* | Local non uniform scale of the game object, expressed as a vector where each component contains a multiplier along each axis. To double the size in x and y, provide vmath.vector3(2.0, 2.0, 0) | `vector3` | `get+set`{.mark} |
61+
| *scale.xy* | Local non uniform scale of the game object, expressed as a vector where each component contains a multiplier along X and Y axis.| `vector3` | `get+set`{.mark} |
6162

6263
::: sidenote
63-
Specific functions for working with the game object transform also exist; they are `go.get_position()`, `go.set_position()`, `go.get_rotation()`, `go.set_rotation()`, `go.get_scale()` and `go.set_scale()`.
64+
Specific functions for working with the game object transform also exist; they are `go.get_position()`, `go.set_position()`, `go.get_rotation()`, `go.set_rotation()`, `go.get_scale()`, `go.set_scale()` and `go.set_scale_xy()`.
6465
:::
6566

6667
*SPRITE COMPONENT PROPERTIES*
@@ -69,7 +70,8 @@ Specific functions for working with the game object transform also exist; they a
6970
| ---------- | -------------------------------------- | --------------- | ---------------- |
7071
| *size* | The non scaled size of the sprite---its size as taken from the source atlas. | `vector3` | `get`{.mark} |
7172
| *image* | The texture path hash of the sprite. | `hash` | `get`{.mark}|
72-
| *scale* | Non uniform scale of the sprite. | `vector3` | `get+set`{.mark}|
73+
| *scale* | Non uniform scale of the sprite . | `vector3` | `get+set`{.mark}|
74+
| *scale.xy* | Non uniform scale of the sprite along X and Y axis. | `vector3` | `get+set`{.mark}|
7375
| *material* | The material used by the sprite. | `hash` | `get+set`{.mark}|
7476
| *cursor* | Position (between 0--1) of playback cursor. | `number` | `get+set`{.mark}|
7577
| *playback_rate* | The framerate of the flipbook animation. | `number` | `get+set`{.mark}|
@@ -99,6 +101,7 @@ Specific functions for working with the game object transform also exist; they a
99101
| property | description | type | |
100102
| ---------- | -------------------------------------- | --------------- | ---------------- |
101103
| *scale* | The scale of the label. | `vector3` | `get+set`{.mark} |
104+
| *scale.xy* | The scale of the label along X and Y axis. | `vector3` | `get+set`{.mark}|
102105
| *color* | The color of the label. | `vector4` | `get+set`{.mark} |
103106
| *outline* | The outline color of the label. | `vector4` | `get+set`{.mark} |
104107
| *shadow* | The shadow color of the label. | `vector4` | `get+set`{.mark} |

0 commit comments

Comments
 (0)