Author Topic: Camera issues  (Read 4237 times)

luggage

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Camera issues
« on: August 23, 2015, 03:34:04 PM »
Hello again.

So I've added a button and a couple of text labels, that's all working ok.  The button loads the game ok.  I want to set a background screen on my main menu scene (the one with NGUI).  I've dropped the asset on and it's created a Sprite Renderer, it all looks ok in the scene view but when I hit Play I don't see my background.  Is there a way to fix that?  Sorry, it's probably really obvious but I'm trying to learn Unity and NGUI at the same time.

My hierarchy looks like

UI Root
    +Camera
    +Button
    +Label
Background.

Doesn't seem to matter where in the hierarchy it goes I don't see it.  It's position is set to 0,0,0.

Any ideas? Thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Camera issues
« Reply #1 on: August 26, 2015, 12:04:37 PM »
Why is the background outside the UI root? Sprite Renderer implies Unity UI, not NGUI.

luggage

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: Camera issues
« Reply #2 on: September 05, 2015, 02:43:14 PM »
Thanks for the reply, sorry for the delay, have been away and only just got back to this.

I sorted it out, stupidly I hadn't added a normal camera to get the non-ngui elements rendering. 

Thanks!