From 02c8363df3466e923508d1845f319d20ef53495c Mon Sep 17 00:00:00 2001 From: AGulev Date: Wed, 16 Apr 2025 12:47:18 +0200 Subject: [PATCH] scale.xy fix --- docs/en/manuals/properties.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/en/manuals/properties.md b/docs/en/manuals/properties.md index ab5de22e..d527c4d8 100644 --- a/docs/en/manuals/properties.md +++ b/docs/en/manuals/properties.md @@ -56,9 +56,10 @@ All game objects, and some component types have properties that can be read and | *rotation* | Local rotation of game object, expressed as a quaternion. | `quaternion` | `get+set`{.mark} | | *euler* | Local rotation of game object, Euler angles. | `vector3` | `get+set`{.mark} | | *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} | +| *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} | ::: sidenote -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()`. +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()`. ::: *SPRITE COMPONENT PROPERTIES* @@ -67,7 +68,8 @@ Specific functions for working with the game object transform also exist; they a | ---------- | -------------------------------------- | --------------- | ---------------- | | *size* | The non scaled size of the sprite---its size as taken from the source atlas. | `vector3` | `get`{.mark} | | *image* | The texture path hash of the sprite. | `hash` | `get`{.mark}| -| *scale* | Non uniform scale of the sprite. | `vector3` | `get+set`{.mark}| +| *scale* | Non uniform scale of the sprite . | `vector3` | `get+set`{.mark}| +| *scale.xy* | Non uniform scale of the sprite along X and Y axis. | `vector3` | `get+set`{.mark}| | *material* | The material used by the sprite. | `hash` | `get+set`{.mark}| | *cursor* | Position (between 0--1) of playback cursor. | `number` | `get+set`{.mark}| | *playback_rate* | The framerate of the flipbook animation. | `number` | `get+set`{.mark}| @@ -97,6 +99,7 @@ Specific functions for working with the game object transform also exist; they a | property | description | type | | | ---------- | -------------------------------------- | --------------- | ---------------- | | *scale* | The scale of the label. | `vector3` | `get+set`{.mark} | +| *scale.xy* | The scale of the label along X and Y axis. | `vector3` | `get+set`{.mark}| | *color* | The color of the label. | `vector4` | `get+set`{.mark} | | *outline* | The outline color of the label. | `vector4` | `get+set`{.mark} | | *shadow* | The shadow color of the label. | `vector4` | `get+set`{.mark} |