How do I order display groups?

I am using the perspective library and composer in the same project. The problem is I want all the scene group object on top and every thing in the camera group on the bottom z wise. I wrote it like this.

[lua] local camera =perspective.createView() local sceneGroup = self.view [/lua] 

Shouldn’t everything in sceneGroup go first since i called it last?

You could either make sure to insert camera into sceneGroup (after you do sceneGroup = self.view).  Or you can always do:

camera:toBack()

See: https://docs.coronalabs.com/api/type/DisplayObject/toBack.html

Rob

You could either make sure to insert camera into sceneGroup (after you do sceneGroup = self.view).  Or you can always do:

camera:toBack()

See: https://docs.coronalabs.com/api/type/DisplayObject/toBack.html

Rob