指定したオブジェクトのプロパティ値を毎フレーム更新表示します。
Name | Type | Default | Description |
---|---|---|---|
options |
object | optional phina.ui.LabelAreaのoptionsと一緒 | |
updateEveryFrame |
boolean | true | optional 毎フレーム表示の更新を行うかどうか |
Example
phina.globalize();
// プレイヤーの位置を常に画面上に表示したい
this.player = Sprite('player').addChildTo(this);
DebugLabel({fill: 'red'})
.subscribe(this.player, 'position')
.setPosition(100, 100)
.addChildTo(this);
Extends
- phina.ui.LabelArea