Skip to content

Commit c83a0e8

Browse files
committed
Docs: Text#setResolution() description
1 parent b86920f commit c83a0e8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/gameobjects/text/Text.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,17 +1055,17 @@ var Text = new Class({
10551055
},
10561056

10571057
/**
1058-
* Set the resolution used by this Text object.
1058+
* Set the resolution of the Texture used by this Text object.
10591059
*
1060-
* It allows for much clearer text on High DPI devices, at the cost of memory because it uses larger
1061-
* internal Canvas textures for the Text.
1060+
* Setting resolution above 1 is useful only if you're scaling up this Text object (or an ancestor) or zooming a Camera on it.
1061+
* Otherwise, any extra detail in the Texture would just be lost during rendering.
10621062
*
1063-
* Therefore, please use with caution, as the more high res Text you have, the more memory it uses.
1063+
* Please use with caution, as the more high-resolution Text you have, the more memory it uses.
10641064
*
10651065
* @method Phaser.GameObjects.Text#setResolution
10661066
* @since 3.12.0
10671067
*
1068-
* @param {number} value - The resolution for this Text object to use.
1068+
* @param {number} value - The resolution for this Text object to use, relative to 1.
10691069
*
10701070
* @return {this} This Text object.
10711071
*/

0 commit comments

Comments
 (0)