0
\$\begingroup\$

I am new to Game Development. I made a menu with NGUI plugin. I have a background image in the behind of this menu. Now, I want to place my Game Scene in place of the background image. I have tried in several ways. But, Failed. Any suggestions will be highly appreciated. Thanks

\$\endgroup\$

1 Answer 1

0
\$\begingroup\$

You'll have to load your scene as normal, so that your menu objects and scene objects are in the same area. You'll then use culling to separate out which camera displays what objects.

So you'll want to use two cameras - one for GUI objects and another for everything else.

  1. Set all of your GUI objects' layer to "UI", and your GUI camera's Culling Mask to UI only.
  2. The GUI camera's Clear Flags should be set to Depth Only.
  3. The scene camera's Culling Mask should be set to everything but UI.
  4. UI Camera's Depth should be set to 1, Scene Camera's Depth should be set to 0.
\$\endgroup\$
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .