mirror of
https://github.com/wassname/phaser.git
synced 2026-08-08 11:23:41 +08:00
Fixed bug where children of Groups wouldn't have their preUpdate methods called.
This commit is contained in:
@@ -217,6 +217,12 @@ module Phaser {
|
||||
|
||||
}
|
||||
|
||||
static renderSpriteWorldViewBounds(sprite: Phaser.Sprite, color: string = 'rgba(0,255,0,0.3)') {
|
||||
|
||||
Phaser.DebugUtils.renderRectangle(sprite.worldView, color);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Render debug infos. (including name, bounds info, position and some other properties)
|
||||
* @param x {number} X position of the debug info to be rendered.
|
||||
|
||||
Reference in New Issue
Block a user