You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CameraManager.getVisibleChildren is a new method that is called internally by the CameraManager.render method. It filters the DisplayList, so that Game Objects that pass the willRender test for the given Camera are added to a sub-list, which is then passed to the renderer. This avoids the renderer having to do any checks on the children, it just renders each one in turn.
Copy file name to clipboardExpand all lines: src/cameras/2d/CameraManager.js
+35-4Lines changed: 35 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -583,7 +583,7 @@ var CameraManager = new Class({
583
583
* @since 3.0.0
584
584
*
585
585
* @param {(Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer)} renderer - The Renderer that will render the children to this camera.
586
-
* @param {Phaser.GameObjects.GameObject[]} children - An array of renderable Game Objects.
586
+
* @param {Phaser.GameObjects.DisplayList} children - The Display List for the Scene.
587
587
*/
588
588
render: function(renderer,children)
589
589
{
@@ -596,12 +596,43 @@ var CameraManager = new Class({
0 commit comments