Skip to content

Commit 50821c2

Browse files
committed
Updated jsdocs
1 parent cb6a6d2 commit 50821c2

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ Setting the `resolution` property in the Game Config to a value other than 1 wou
179179

180180
My thanks to the following for helping with the Phaser 3 Examples, Docs and TypeScript definitions, either by reporting errors, fixing them or helping author the docs:
181181

182-
@SBCGames @rgk @rook2pawn @robbintt @bguyl @halilcakarr @PhaserEditor2D @Edwin222 @tfelix @Yudikubota @hexus @guzmonne @ampled
182+
@SBCGames @rgk @rook2pawn @robbintt @bguyl @halilcakarr @PhaserEditor2D @Edwin222 @tfelix @Yudikubota @hexus @guzmonne @ampled @thanh-taro
183183

184184
Thanks to @khaleb85 for fixing the super-annoying lag on the API Docs pages when it hung the browser while indexing the search field.
185185

src/gameobjects/components/Size.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,12 @@ var Size = {
107107
},
108108

109109
/**
110-
* Sets the size of this Game Object.
110+
* Sets the internal size of this Game Object, as used for frame or physics body creation.
111+
*
112+
* This will not change the size that the Game Object is rendered in-game.
113+
* For that you need to either set the scale of the Game Object (`setScale`) or call the
114+
* `setDisplaySize` method, which is the same thing as changing the scale but allows you
115+
* to do so by giving pixel values.
111116
*
112117
* @method Phaser.GameObjects.Components.Size#setSize
113118
* @since 3.0.0
@@ -127,6 +132,7 @@ var Size = {
127132

128133
/**
129134
* Sets the display size of this Game Object.
135+
*
130136
* Calling this will adjust the scale.
131137
*
132138
* @method Phaser.GameObjects.Components.Size#setDisplaySize

0 commit comments

Comments
 (0)