Welcome,
Guest
. Please
login
or
register
.
June 11, 2026, 09:25:48 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
how to: Transitioning from one panel to another with a camera
« previous
next »
Print
Pages: [
1
]
Author
Topic: how to: Transitioning from one panel to another with a camera (Read 3079 times)
dobe
Guest
how to: Transitioning from one panel to another with a camera
«
on:
September 25, 2012, 09:58:54 AM »
Hello,
I'm trying to find out what the best way to transition from a main menu panel to an options panel would be.
I'd like to have the camera pan from the main menu to the options panel once the options button is released.
Currently I have one camera that appears to be embedded in my main menu;
Should I create an additional camera? Should I create a second UI root? or just use a sliced sprite for the options menu?
Any advice or links to tutorials would be super helpful.
Thanks
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: how to: Transitioning from one panel to another with a camera
«
Reply #1 on:
September 25, 2012, 11:51:41 AM »
How is it different from
http://www.tasharen.com/forum/index.php?topic=1779.0
?
Logged
dobe
Guest
Re: how to: Transitioning from one panel to another with a camera
«
Reply #2 on:
September 25, 2012, 12:54:40 PM »
I understand how to technically pan the camera, I'm wondering what the best way to handle the situation is.
I realized that my initial post wasn't asking the question I wanted to. I attempted to remove it, but failed.
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: how to: Transitioning from one panel to another with a camera
«
Reply #3 on:
September 25, 2012, 06:42:12 PM »
My answer doesn't change. Start your Tween in OnPress(false).
Logged
dobe
Guest
Re: how to: Transitioning from one panel to another with a camera
«
Reply #4 on:
October 01, 2012, 08:08:27 AM »
Do I add this component to the camera itself or to the button I want to rotate the camera?
I can't locate this function in either unity or NGUI API. Is there any reference to this function anywhere?
«
Last Edit: October 01, 2012, 09:22:04 AM by dobe
»
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: how to: Transitioning from one panel to another with a camera
«
Reply #5 on:
October 01, 2012, 04:46:44 PM »
Add it to the button.
using
UnityEngine
;
public
class
Test
:
MonoBehaviour
{
public
Camera cam
;
public
Transform to
;
void
OnClick
(
)
{
TweenTransform
.
Begin
(
cam
.
gameObject
, 1f, to
)
;
}
}
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
how to: Transitioning from one panel to another with a camera