Author Topic: I wonder. When the panel is actually being drawn.  (Read 3204 times)

zzangbaba

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
I wonder. When the panel is actually being drawn.
« on: June 27, 2013, 06:26:16 AM »
I am a novice in unity3d.

And Ngui Use

I have one problem.

UIPanel is drawn in immediately.

I turn off the GameCamera, UICamera only on.

I GameCamera UIPanel in the LateInit off.

Then, before drawing UIPanel GameCamera is turned off.

What is problem?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: I wonder. When the panel is actually being drawn.
« Reply #1 on: June 27, 2013, 01:50:41 PM »
I am not sure what you're asking.

zzangbaba

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: I wonder. When the panel is actually being drawn.
« Reply #2 on: June 28, 2013, 12:22:50 AM »
I'm sorry. English not skilled.

I'm using two cameras.
1. GameCamera
2. UICamera

This is my coding step.
1. UIPanel is created to MainScene.
2. GameCamera[enabled=false] of UIPanel to LateInit().
3. GameCamera[enabled=true] of UIPanel to OnDestory().

My problem is build on mobile.
Why before showing panel turned off GameCamera?
I can't understanding.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: I wonder. When the panel is actually being drawn.
« Reply #3 on: June 28, 2013, 04:14:14 PM »
It might be easier if you asked in your native language. Perhaps someone can answer who speaks the same language.